View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 3 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Wed Jun 24, 2009 4:46 am 
Offline
Joined: Sat Mar 18, 2006 6:23 am
Posts: 70
Using r5.5, I'd like to convert my file system from lvm to storage groups.

I have a 80G (primary) and 250G (2ndary) HD in a single LVM group.
There is about 200G of content with 100G free on the LVM group.

If I cannot backup the 200G to another drive, how can I convert to Storage groups? Can I use lvm to copy all the data to the big drive, break up the lvm and then convert it?

If I can backup the 200G, how would I do the conversion?

I did read in the wiki how to add a new disk if storage groups are already on.

Thanks!


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jun 24, 2009 7:42 pm 
Offline
Joined: Wed Mar 07, 2007 9:51 am
Posts: 173
Location: Uniontown, PA
I had a LVM of two 320G drives and I found that moving it to a 1TB drive to be a royal PITA.

You NEED a single drive LARGER than your LVM to move all that data. Preferally TWICE as big or bigger!

What I did:

Stop mythfrontend and mythbackend. They should not be running while this is going on.

Add the 1TB drive to system
cfdisk
mkfs (whatever FS you choose)
manually mount the drive somewhere, like /mnt/hd

tar the contents of the LVM to the mounted drive

(the files can be "cp'ed" to the new drive, but I'm no linux wizard, and I know that tar is easy and works.) The script wizards can enlighten the masses about this. ;)

After that's done:

untar the tar file to the root directory of the new drive and verify that all is intact.
delete the tar file
edit /etc/fstab to mount the new drive into the original place, and NOT mount the LVM
restart to check the mount

If all is ok:

Remove the lvm and enjoy.

Is it easy? NO. Can it be done? YES.

LVM's were nice back when the TB drives were about $400, but these days, storage groups are the way to go.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jul 23, 2009 10:20 am 
Offline
Joined: Fri Sep 15, 2006 12:16 pm
Posts: 292
Yea, tar will work, but you wind up at one time with the data stored twice on your new hd and that means that your new hd needs to be twice as big as really required.

cp is really easy

something like:
Code:
cp -av /myth/* /mnt/hd

(assumes new hd is mounted to /mnt/hd) instead of the tar should work to get everything off the old hd and onto the new one. Then just update your /etc/fstab (remove the old lvm and put in where where you new hd will be) and power off. Remove old lvm. Install new hd. Power up.


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 23 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu