Question

How to resize dev/sda disk space?

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/timer_list 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?


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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!