On Tue, Feb 26, 2008 at 6:09 PM, Koree A. Smith <
koree@ameth.org> wrote:
(My LVM knowledge is limited, so bear with me)
Okay, I've been tasked to figure something out, so I thought I'd run this past you guys. The requirements of the project are as follows:
1. Be able to dd an image of an entire disk (sda) to a second disk in the system (sdb).
2. Be able to make grub boot this disk (I know how to do this, and it works, when not using LVM)
That doesn't sound difficult...
3. Be able to do this even if / is an LVM partition
So, as many may have guessed, I'm having an issue because the system thinks there are two PVs with the same UUID. I edited the lvm.conf file to ignore /dev/sdb, and it seems to have, but still reports the same error (duplicate PVs) and will not boot.
First question: What is the best command line to dd the image to the new drive? I've been doing "dd if=/dev/sda of=/dev/sdb bs=1024".
Second question: is there a way to change the UUID without blowing away the data?
I'm still wrapping my head around this entire project, so I may be overlooking something.
Any help is greatly appreciated!
--
Koree A. Smith, RHCE
--
koreesmith@gmail.com
koree@ameth.org
Koree A. Smith, RHCE