Question

How do I expand my disk after doing a permanent resize?

Hi, I recently upgraded to the 40GB plan and I just realized that my hard drive space has not increased yet:

dev             999M     0  999M   0% /dev
run            1003M  368K 1003M   1% /run
/dev/vda3        20G   16G  2.7G  86% /
tmpfs          1003M     0 1003M   0% /dev/shm
tmpfs          1003M     0 1003M   0% /sys/fs/cgroup
tmpfs          1003M  2.3M 1001M   1% /tmp
tmpfs           201M     0  201M   0% /run/user/1000

How can I resolve this?


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.

If on Ubuntu:

To resize the partition, use the growpart command. In this command, /dev/vda is the name of the disk, separated by a space, and followed by the number of the partition to resize, 1.

growpart /dev/vda 1

For ext3/4 filesystems, use resize2fs to resize the filesystem.

resize2fs /dev/vda1

Check

df / -h

Hi @chenshuiluke Did you just upgrade CPU+RAM or did you upgrade CPU+RAM+Disk, where the process takes several minutes to complete? It should expand automatically unless you’ve modified the partitions manually. But I don’t know Arch, so maybe that process is manual. Can check the DigitalOcean control panel, click the droplet for more information, and it should state the amount of RAM, disk space and region right under the droplet name in the top.