My website is crashing with no free disk space error, running command df -h, I got this

Filesystem Size Used Available Use% Mounted on
overlay 58.0G 54.0G 4.0G 93% /
tmpfs 64.0M 0 64.0M 0% /dev
tmpfs 996.7M 0 996.7M 0% /sys/fs/cgroup
/dev/sda 19.7G 18.7G 1.4M 100% /code
/dev/vda1 58.0G 54.0G 4.0G 93% /etc/resolv.conf
/dev/vda1 58.0G 54.0G 4.0G 93% /etc/hostname
/dev/vda1 58.0G 54.0G 4.0G 93% /etc/hosts
shm 64.0M 0 64.0M 0% /dev/shm
tmpfs 996.7M 0 996.7M 0% /proc/acpi
tmpfs 64.0M 0 64.0M 0% /proc/kcore
tmpfs 64.0M 0 64.0M 0% /proc/keys
tmpfs 64.0M 0 64.0M 0% /proc/timerlist
tmpfs 64.0M 0 64.0M 0% /proc/sched
debug
tmpfs 996.7M 0 996.7M 0% /proc/scsi
tmpfs 996.7M 0 996.7M 0% /sys/firmware

I need to resize /dev/sda? how to do this? Or Does upgrading droplet size will solve the issue?

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
Submit an Answer
1 answer

Hi @DriftingAquamarineRay,

Upgrading your Droplet’s disk size should indeed solve this issue for you. Having said that, before trying to upgrade your Droplet, I’ll suggest creating a backup just in case something goes wrong.

You can check articles on how to do backups/snapshots and what’s their difference here:

Snapshots

https://docs.digitalocean.com/products/images/snapshots/

Backups

https://docs.digitalocean.com/products/images/backups/

And if you are uncertain how to upgrade your droplet, you can follow this documentation:

https://docs.digitalocean.com/products/droplets/how-to/resize/

Hope this helps!

  • Thank you so much that is very helpful,
    but I tried to run commands as resize2fs and growpart but I get not found error in the command line

    • After resizing this is the output I get from command df -h, is the resizing done correctly? knowing that my code is in /dev/sda file system which is 99% used

      /dev/sda 20G 19G 206M 99% /mnt/volumefra101

      Filesystem Size Used Avail Use% Mounted on
      udev 1.9G 0 1.9G 0% /dev
      tmpfs 395M 1.2M 394M 1% /run
      /dev/vda1 78G 56G 22G 72% /
      tmpfs 2.0G 0 2.0G 0% /dev/shm
      tmpfs 5.0M 0 5.0M 0% /run/lock
      tmpfs 2.0G 0 2.0G 0% /sys/fs/cgroup
      /dev/vda15 105M 7.3M 98M 7% /boot/efi
      /dev/sda 20G 19G 206M 99% /mnt/volumefra101
      overlay 78G 56G 22G 72% /var/lib/docker/overlay2/ad1afe0fb654e03ba5b0f897124276783ea1a065cf4c22690198bb8c2135e2ed/merged
      overlay 78G 56G 22G 72% /var/lib/docker/overlay2/ef65a08fbf5d715854051bf88e5c33d1e969379b97b3b953a7ac30b2118b336c/merged
      overlay 78G 56G 22G 72% /var/lib/docker/overlay2/8ba2da85fb876b245f95cb5759157442259f65b07e7667581658fb8a6f80317e/merged
      overlay 78G 56G 22G 72% /var/lib/docker/overlay2/577a5495cb4bfea13873d74f0783252da9e2857f7204de881ab71500e0019f1b/merged
      shm 64M 0 64M 0% /var/lib/docker/containers/d77bb1f478ff05bcaff70814c9711ad8cbaedf49ad3484acfa45ca795603312b/mounts/shm
      shm 64M 0 64M 0% /var/lib/docker/containers/0ac546e3977af1c7fce561b68786384cb0aef179a79fcfbdcf6cfcbff8878700/mounts/shm
      shm 64M 0 64M 0% /var/lib/docker/containers/84d4a92cf68cf0febe9ce3395fb5d568078c65ff4f658ea3a9a0b5989f6b1f6f/mounts/shm
      shm 64M 0 64M 0% /var/lib/docker/containers/881619a13786196142fab52ec7b64596a13c607fb960f0fa3030a12981f72cac/mounts/shm
      overlay 78G 56G 22G 72% /var/lib/docker/overlay2/eeed0e3dc87b2898dbe6c17245fad218c1bbc3c799b780c120403bced58ca7fe/merged
      overlay 78G 56G 22G 72% /var/lib/docker/overlay2/17ce66a4b2a41ace7309658236f19871f97fe81ceb64aef7d9dcb706316b0801/merged
      overlay 78G 56G 22G 72% /var/lib/docker/overlay2/53ae2715a44d66509fe3ea7006d7cbefdd9ec515b47ca551d0d45b69ddc36549/merged
      shm 64M 0 64M 0% /var/lib/docker/containers/3af4fb4acc5e44ef24e274e6090b90a90ca9fe8205401d61ba6b5fd0a772d3d3/mounts/shm
      overlay 78G 56G 22G 72% /var/lib/docker/overlay2/aaa1a96fdfff7579637311ec2a145e684de72dab3ea6f2bc952fcc9add1b50a3/merged
      shm 64M 0 64M 0% /var/lib/docker/containers/82592e59191f0c0c493dbd4ea0d94ee7dc0e3079a31730ca40a861075eddc774/mounts/shm
      shm 64M 0 64M 0% /var/lib/docker/containers/b18edee516a851972b57925e363edfa90a5761bf765c69fdda20de7d17f1f891/mounts/shm
      shm 64M 0 64M 0% /var/lib/docker/containers/c2d8c98b5c11b838404d7466e38194707231d563c4d72978615d38c4d6c2044d/mounts/shm
      tmpfs 395M 0 395M 0% /run/user/0

    • Hi @DriftingAquamarineRay,

      What was the exact error you saw?