Wednesday, January 11, 2023

Why is my droplet consuming a lot of disk space?

by Joseph Anthony C. Hermocilla, Principal Consultant


I've been using Digital Ocean to provision web servers through Droplets. However, I noticed that a server's available disk space is reduced after some time. I found out that the culprit is Systemd's Journald service.

Having worked on Linux servers for a time, I know the most likely directory containing large files is /var. I started looking for large files there using the following command line:

$sudo du -h --max-depth=1 /var

The result is that /var/log is occupying GB of space! I rerun the command line:

$sudo du -h --max-depth=1 /var/log

This time, the largest folder is /var/log/journal

To reclaim the disk space occupied by the logs, I used the command line below:

$sudo journalctl --vacuum-size=50M

The above fix is only temporary. To make it permanent, I set the following parameter in /etc/systemd/journald.conf:

SystemMaxUse=50M

I then restarted the service:

$sudo systemctl restart systemd-journald

Hopefully, next time my web servers will not run out of disk space. 


Contact us if you want need help in setting up your Linux servers. We'd be glad to help.

(Image: Gabriel Heinzer on Unsplash)


Wednesday, November 23, 2022

Basic Cybersecurity Tips

by Joseph Anthony C. Hermocilla, Principal Consultant



Here are 13 basic cybersecurity tips that you can follow to protect yourself from being hacked or scammed:

  1. Update your devices and apps regularly.
  2. Maintain an inventory of your accounts. Use a password manager for this.
  3. Check privacy and security settings of your accounts regularly.
  4. Enable multi-factor authentication in your accounts. 
  5. Don’t forget physical security. Don't leave your devices unattended and their screens unlocked.
  6. Encrypt your data and communications. Use messaging apps that support end-to-end encryption.
  7. Don’t trust all browser plugins/add-ons/apps. Clear your browsing history regularly. Use incognito/private mode.
  8. Don’t use pirated software, key generators, or game cheats. Most of them contain malware.
  9. Be careful when opening/sharing/forwarding sms, links, photos, videos, files.
  10. Inform the community if your account or device was compromised/lost/stolen. Report to authorities.
  11. Do not overshare on social media. Don't believe everything on social media.
  12. Monitor device use of your children.
  13. Make sure that a website or app is legitimate and encrypts data before you enter any PII or other sensitive information.

Contact us if you want to know more tips on how you can protect yourself or your organization from cybersecurity attacks and data breaches.

(Image: https://twitter.com/Xylit0l/status/1601614284274163712/photo/1)