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

Re: dd and lvm question



lol, that will do it

On Thu, Feb 28, 2008 at 9:00 AM, Koree A. Smith <koreesmith@gmail.com> wrote:
Yeah, well, apparently I'm not so smart.  The dd was screwed up because I was dd'ing a 300GB drive to a 73GB drive without taking taht into consideration.  I was running on not much sleep that day :/  It's all working now.

Koree


On Wed, Feb 27, 2008 at 4:11 PM, Casey Boone <caseyboone@gmail.com> wrote:
might be better off creating a new physical volume, volume group, and logical partition, then dd from the old logical partition to the new one.  might require editing /etc/fstab to be aware of the changes and adjusting grub

i am rather surprised that a drive to drive dd didnt work for you though

Casey


On Tue, Feb 26, 2008 at 6:15 PM, Koree A. Smith <koree@ameth.org> wrote:
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




--
Koree A. Smith, RHCE
--
koreesmith@gmail.com
koree@ameth.org