Question

Disk size not enlarged after upgrade

Hi, I have upgraded from 25Gb to 50Gb on my server. Standard / 2 GB / 1 vCPU / 50Gb - I powered off, chose my selection and clicked Resize, when it finished I powered up and logged into ssh and its still only showing 25Gb. I have confirmed the selection in the web interface as 50Gb. I have powered off and rebooted, still 25Gb. Any help is appreciated.


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.

Sri Charan Madhavapeddi
DigitalOcean Employee
DigitalOcean Employee badge
August 26, 2020
Accepted Answer

Hello,

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 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: growpart /dev/vda 1

  3. Grow the filesystem on the partition: resize2fs /dev/vda1

  4. Re-check the filesystem size to ensure it is filling the disk:

df -h

You should now be fully utilizing the space.

Please let us know if you have any additional questions, and have a wonderful day!

Cheers, Sri Charan

alexdo
Site Moderator
Site Moderator badge
August 29, 2022

Hello,

In addition to what’s been already mentioned, I want to include our article on How to resize droplets

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

Regards

Hi I did this and it returned with a “The filesystem is already 83857659 (4k) blocks long. Nothing to do!” (resized to 900GB). But when I checked using “df -h” command it still has the previous storage size.

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Become a contributor for community

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

DigitalOcean Documentation

Full documentation for every DigitalOcean product.

Resources for startups and SMBs

The Wave has everything you need to know about building a business, from raising funding to marketing your product.

Get our newsletter

Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.

New accounts only. By submitting your email you agree to our Privacy Policy

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.