How can you merge root partition to newly added volume block? (CENTOS 7)

I ran out of space on a droplet with 25GB on it. I added a 50GB volume block. When I attempt to add more data to the droplet it will not automatically go over to the next partition and tells me there is no space left. When I run the command. “fdisk -l” I have two partitions. /dev/vda1 & /dev/sda2. I select the auto-mount setting and set the format to XFS in the control panel. What can I do to expand the root partition to the volume block added to the droplet?

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.

Hello, @data2j

Block storage volumes are network-based block devices that provide additional data storage for Droplets. They’re usually used for adding additional storage for the default upload directory, to store backups to host personal file information and etc.

When you want to expand your droplet’s main partition you can follow this docs:

You need to select an option for the upgrade from the control panel:

CPU and RAM only or Disk, CPU, and RAM resizing,

Once the server is started you can make sure everything is working fine and then you can continue with the resizing. The resize command will depend from the file system in question so you can check the documentation to make sure what to use, or just let me know if you have any questions regarding this step from the process.

Let me know how it goes.

Regards, Alex