Question

How Increase The Volume size

I resize my droplet and after do that I followed the instructions in

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

but when I reach to step growpart /dev/vda 1

I faced error

NOCHANGE: partition 1 is size 20744159. it cannot be grown


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 @adorableaquamarineyacht,

When resizing the Droplet, the block device is increased when the resize uses the CPU, Memory and Disk option. In most cases, the next boot will detect this within the software running on the Droplet and kick off some steps to update this.

This can fail however at 100% disk usage ( as some space is still required for temporary files ) or when the particular release of software installed on the Droplet doesn’t accomplish this. The platform isn’t able to determine this, however, as we limit the access to the partition/data of the Droplet. You can however address this after clearing up sufficient space to operate with these steps:

  1. Check the current filesystem size of /dev/vda1: lsblk

  2. If you see the block device is larger than the partition, you will need to grow the primary partition of your Droplet:

  1. growpart /dev/vda1
  1. Grow the filesystem on the partition:
  1. resize2fs /dev/vda1
  1. Re-check the filesystem size to ensure it is filling the disk:
  1. df -h

You should now be fully utilizing the space.

Don’t forget to do a quick Snapshot of your current state just in case anything goes bad!