LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (http://www.linuxquestions.org/questions/linux-general-1/)
-   -   Booting a Cloned Drive and booting with both drives plugged in. (http://www.linuxquestions.org/questions/linux-general-1/booting-a-cloned-drive-and-booting-with-both-drives-plugged-in-4175450168/)

NYCmitch25 02-14-2013 01:34 PM

Booting a Cloned Drive and booting with both drives plugged in.
 
I have a RHEL6 drive encrypted with LUKS (a rootvg and /boot). I want to clone it so dd seems promising or clonezilla. I dd the entire disk over and that drive works great in general. Swap the drive in, and it boots fine.

However, another scenario which I would like to account for is the delta of data not on the backed up drive. So my thought is to boot them both in the same system (say from ultra bay/USB) but it reads the wrong disk etc...

So I then go through the effort of trying to rename the LV PV update grub and fstab etc. to get it to see two separate drives (and properly see the other partition in Linux) , but I keep getting KPs. Not sure what I'm doing wrong.

Q: Has anyone done this before? Am I missing steps I wonder?
Q: OR Is there a better way?

jefro 02-14-2013 05:03 PM

It would be a neat trick to boot both at the same time. In the future we may be able to.

The way one normally keeps data in sync is with some rsync type of way or to mount the drive as a mirror as part of raid.

A clone would have the original settings for anything that deals with device naming/numbering. Remember that you can only have one SDA device. Also things that get uuid or such are off. Kind of a lot of stuff that you would only have to or may have to change back.

I understand that you want to keep a hard drive in case of total hard drive disaster.

jpollard 02-18-2013 10:49 AM

A clone also has problems with logical volumes ... the existence of duplicate labels prevents the proper assembly of the logical volumes.


All times are GMT -5. The time now is 03:16 PM.