[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: dd and lvm question



Okay, so I believe I'm past my LVM issue, actually.  I'm now getting more errors.  I can't cut and paste, so I'll type a brief summary of the errors:

first, it says:

Buffer I/O error on device dm-0, logical block ########

it repeats the above several times, then says:

EXT3-fs error (device dm-0): ext3_get_inode_loc: unable to read inode block - inode=###### block =#####

It repeats that several times as well, and then:

Warning:  can't access (null)
umount /initrd/dev failed: 2
Kernel Panic - not syncing:  Attempted to kill init!

This looks to me like the ext3 is borked (bad dd), or for whatever reason, the kernel is having trouble reading it.

So, I've never tried to just dd and boot a drive like this before, but it is the requirement of this project.  Any help, once again, is greatly appreciated.

Thanks!

Koree

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
--
koreesmith@gmail.com
koree@ameth.org