Report this

What is the reason for this report?

Merging disks? Convert root partition to lvm?

Posted on March 25, 2017
uter

By uter

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!



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.

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.

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.

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.