[sllug-members]: Hi cloning question on linux LVM

Remo Mattei remo at italy1.com
Mon Aug 18 12:51:52 MDT 2008


Thanks I will look into the LV options to do a one backup snapshot.
If you do have any other suggestions I will take it.

Remo


On 8/18/08 12:27 PM, "Andrew Johnson" <tehlaser at gmail.com> wrote:

>> Hi guys I wonder if anyone has done this yet. I have a server with two
>> drives into an LVM total of 170gig (one drive is 70 the other is 100) using
>> a LVM volume with Linux centos 5. I want to create an image (cloning the
>> drive in case somethings goes wrong) wonder if you guys have any
>> suggestions..
> 
> I'm not sure exactly what you're trying to do.  It's been a while
> since I've used LVM, so I lack specifics, but here are some general
> ideas.
> 
> If you want a one-shot backup, you can boot from a livecd or a
> recovery partition of some kind that is LVM-aware and use dd to copy
> the entire LVs elsewhere.  If you don't want to shut down for the
> length of the backup, you could get creative and do something with the
> snapshot feature of LVM and then dd from the snapshot.  Restoring the
> server from a catastrophic drive failure would then involve setting up
> a VG and PVs on the new drive(s), recreating the LVs, and using dd to
> restore the image files to the LVs.
> 
> You might be able to clone the underlying PVs (or even the entire hard
> drives) directly with dd as well.  This might result in an easier
> recovery procedure, but I'm not sure how LVM would react to finding
> cloned PVs residing on a different drive in the event of a restore, so
> you would have to test it and see what happens.
> 
> If, on the other hand, you're looking to maintain a mirror for better
> reliability, you should probably be using RAID underneath LVM.
> Linux's software RAID block devices can be used to store PVs easily
> enough, if you don't have access to hardware RAID.
> 
> Or you might have had something else entirely in mind.  ;)
> ______________________________________________________________________
> See http://www.sllug.org/ for latest SLLUG news, information, links.
> Join SLLUG and other UT LUG members on irc.FreeNode.net channel #Utah
> sllug-members at sllug.org
> http://www.sllug.org/cgi-bin/mailman/listinfo/sllug-members
> 
> !DSPAM:48a9c119164271792581680!
> 



More information about the sllug-members mailing list