Question

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

Posted January 23, 2020 154 views
CentOS

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?

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.

×
1 answer

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:

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

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

  • The documentation provided only assists for resizing your droplet(vda). I want to know how to combine a partition to the root partition after adding a volume block a.k.a just purchasing more storage space through the volume block option. Basically combining vda and sda to one ultimate partition, logically.

    • Hello, @data2j

      Yes the steps I’ve provided is for resizing your droplet, because I believe that this was your ultimate goal. May I ask why exactly you want to do the upgrade in the manner you’ve mentioned?

      As mentioned the block volume storage is usually used for adding additional storage. They’re like additional SSDs added like separate partitions and not to extend the available partition.

      Regards,
      Alex

Submit an Answer