By Andre
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)
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!
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.
- 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:
- 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.
- resize2fs /dev/vda1
For XFS, use xfs_growfs to resize the filesystem.
- 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
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
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
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.