Question

Can block storage be merged with the main storage drive?

If I attach a block storage to a server, can I then merge the block storage to the main hard drive in order to have a single large volume?

For instance, if I have a server with 80GB and I add a block storage of 100GB, can I then merge the two volumes to create a single volume with 180GB?

Thanks!


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.

Bobby Iliev
Site Moderator
Site Moderator badge
August 4, 2023
Accepted Answer

Hi there,

I am afraid that you can not merge the root volume with the additional block storage volumes that you’ve added.

The block storage and the main hard drive are two separate physical devices. Even though it might seem like they could just be combined into a single volume because they’re both storing data, the data is actually being stored on different hardware. This means that there’s no way to just merge the two together without moving the data from one device to another.

However, you can make the additional block storage available to the system by mounting it to a specific directory. When a storage device is mounted to a directory, the file system of the device becomes accessible at that directory path. This means you can use the additional storage just like you would use any other directory on your system.

So while you can’t merge the two volumes into a single volume, you can still use the additional storage in a way that’s seamless and transparent to your applications.

https://docs.digitalocean.com/products/volumes/how-to/mount/

Hope that this helps!

Best,

Bobby

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.