Convert LVM to PV for Greyhole use

cpeddie
Posts: 39
Joined: Sat Mar 08, 2014 12:05 am

Convert LVM to PV for Greyhole use

Postby cpeddie » Fri Mar 14, 2014 11:37 pm

When I first installed Ubuntu on the 2TB hard drive, I followed the recommended settings from the Ubuntu installer and split the physical drive into logical volumes, using 500GB as the root partition. Installed amahi there and have spent days tweaking it and now seem to have amahi up and running. But now I'm ready to add the other 3 2TB drives into the system and put them into Greyhole, but it seems that greyhole wants partitions, not logical volumes. How can I reclaim this 1.5TB chunk of space on the first drive, convert it into a regualar partition so I can add it to the overall server greyhole pool? I really don't want to have to go back to square 1 and start the entire installation all over again. It's taken me a couple of weeks to finally get things running to the point I'm ready to copy all my data into the shares and actually start using the server.

Do I need to format another drive using partitions instead of logical volumes and then dd the root partition to the new drive? Will that retain the grub bootloader in the new drive if I switch the drives? This is a headless install so if it doesn't boot I have to pull the hard drive and take it back to work where I have a spare machine that I can use to get it booting again. Don't want to lose a weekend if I can avoid it....

Guidance is much appreciated!

Craig

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: Convert LVM to PV for Greyhole use

Postby bigfoot65 » Sun Mar 16, 2014 7:48 am

Not sure if this will help, but thought I would point it out.
https://wiki.amahi.org/index.php/How_to ... e_from_LVM

I am always leery of trying to copy an OS from one drive to another. Seems like something always goes wrong for me and I end up starting over.

You might be able to use gParted Live CD and resize things, then take the free space and make it a partition. I would probably make the new one mount as /var/hda/files and then keep the Greyhole drives separate.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

Who is online

Users browsing this forum: No registered users and 27 guests