On Thursday, February 14, 2013 14:28:56, Michael Quick wrote:
> Booting a Cloned Drive and booting with both drives plugged in.

By default that's an impossible situation.

If you look at the contents of /etc/fstab you're most likely going to find 
that your system is discovering the partitions to mount at boot time by using 
their UUIDs.  UUID = Universally /Unique/ IDentifier.

   https://en.wikipedia.org/wiki/UUID

When you clone the drive, the UUIDs of the clone is identical to the original.  
When you boot with both drives connected, you're trying to boot with two sets 
of filesystems that have /non-unique/ UUIDs, when each UUID /must/ be unique.

Run the 'blkid' command as root to see the UUIDs.

> 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...

Now you know why.

> 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?
> Q: OR Is there a better way?

You have two options as to how to fix this.

A) assign different UUIDs to the clone drive's filesystems ('blkid -U <uuid>')
B) boot by hard-coded device names rather than via UUIDs.  Doing this will
   require modification of both grub2 configuration and /etc/fstab.

  -- Chris

--
Chris Knadle
[email protected]
_______________________________________________
Mid-Hudson Valley Linux Users Group                  http://mhvlug.org
http://mhvlug.org/cgi-bin/mailman/listinfo/mhvlug

Upcoming Meetings (6pm - 8pm)                         Vassar College
  Feb 6 - Raspberry Pi
  Mar 6 - 10th Anniversary Meeting - Linux where you least expect it
  Apr 3 - Typography: Physical Art to Digital Art

Reply via email to