Question

Merging disks? Convert root partition to lvm?

I have a $5/Month Droplet, which has a 20 GB disk. Then I add a 10 GB block storage to it. Now my Droplet has 30 GB space. But these 30 GB are not continuous, when disk1 is full, system will not write data to disk2, instead, system throw a “No space left on device” error.

So I tried to merging disks. LVM seems to be a good choice, so I tried to convert root partition to lvm. I found some instruction on Google, but I just can’t make it work, I just keep crash the system since I am a noob.

Is there a detailed Instruction for convert root partition to lvm on Droplet? Thanks!

Show comments

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

I’m having the same issue as well. I wish to merge my root partition to my newly added volume block. When I run out of space on my first volume /dev/vda1 wont go over to /dev/sda1.

Hi Uter,

your question states my same exact problem. Did you find a solution in the meantime?

Thanks, khalid

Hi Uter,

I want to inform you that converting root partition is require a lot of effort and very complicated.What i can suggest you to move some of the bigger directory to some other new LVM partion like /var /home/ /opt. like which are the folder utilizing the most of the space and then move it to new partition.you can determine the space using below command. du -sh /var

Please format the partition as LVM and visit below post to mount any directory to new partition which utilizing most space.

http://blog.oshim.net/2011/10/how-to-move-var-folder-to-new-partition.html

If you want to go for converting root partition to LVM use below post.

http://thegeekdiary.com/centos-rhel-converting-an-existing-root-filesystem-to-lvm-partition/

Hope it will help.