Question

Resizing Droplet problems, no actual size increase

So, I resize my droplet from 80GB to 160GB because I ran out of space. However the system is still saying there is no space. I did a disk check (df / -h) from the command prompt and it still showing 80GB. When verifying disk size (gdisk -l /dev/vda) it shows 160GB.
Image Ubuntu plesk Size 4 vCPUs 8GB / 160GB Disk ($48/mo)


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.

Hello, @andrejellyfish

You can check our article on How to resize droplets

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

In certain cases, a disk resize fails to resize the Droplet’s partition or filesystem. If you rerun df -h after a disk resizes and the output is unchanged, this usually indicates a problem.

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.

  1. growpart /dev/vda 1

The command to resize the filesystem depends on the filesystem type. If you don’t know what filesystem you’re using, check with df:

  1. df -Th /dev/vda1

You can see the filesystem type in the second column of the output. The following example output shows the filesystem type is ext4.

Filesystem     Type  Size  Used Avail Use% Mounted on
/dev/vda1      ext4   50G  4.0G   45G  10% /

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

  1. resize2fs /dev/vda1

For XFS, use xfs_growfs to resize the filesystem.

  1. xfs_growfs /dev/vda1

If there is more than one partition on the disk, you may have to modify the above commands to more closely match the Droplet’s partition table. Partitions are numbered, so if you want to grow a specific partition, use its number in the growpart /dev/vda command, i.e. growpart /dev/vda 2 grows the second partition.

Regards