I have upgrade with 160GB disk and 8GB RAM but still disk space showing on ssh only 25GB.
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!
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.
Hello there,
Have you expanded the file system? 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 resize and the output is unchanged, this usually indicates a problem. Use
gdisk
to get more information:The output looks like this:
Some operating systems, like CentOS, don’t come with gdisk by default. You can either install
gdisk
using the package manager (e.g. sudo yum install gdisk) or use fdisk:The output looks like this:
In both of the above cases, the partition is still 25 GB even though the disk is 50 GB.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.The command to resize the filesystem depends on the filesystem type. If you don’t know what filesystem you’re using, check with df:
You can see the filesystem type in the second column of the output. The following example output shows the filesystem type is ext4.
For ext3/4 filesystems, use
resize2fs
to resize the filesystem.For XFS, use
xfs_growfs
to resize the filesystem.Hope that this helps!