mdadm - please re-open #500309

Toni Mueller support at oeko.net
Wed Jan 27 02:33:37 UTC 2010


Hello,

today I have a re-appearance of this bug in Lenny/i386 and Finnix 0.93
on an i386 machine.

I have two SATA drives, Seagate ES.2 500GB, in said computer, which are
partitioned as follows:

/dev/sda1 + /dev/sdb1 = /dev/md0  = /boot
/dev/sda2 + /dev/sdb2 = /dev/md1 = encrypted LVM for everything else

Now I had to replace /dev/sda. Running

# mdadm --add /dev/md1 /dev/sda2

resulted in some messages, then: mdadm: added /dev/sda2

The same thing for /dev/sda1 didn't work:

# mdadm --add /dev/md1 /dev/sda2
mdadm: /dev/sda1 not large enough to join array


I initialized /dev/sda by using this simple command:

# dd if=/dev/sdb of=/dev/sda count=1 bs=512

after which fdisk -l /dev/sda and fdisk -l /dev/sdb both showed exactly
the same partitioning for both disks.

I saw this error using mdadm version 2.6.9.x, as it is in Finnix, but
also using the mdadm from Lenny which I copied over using an USB stick.

I need to work around this problem, and am open to suggestions and/or
running code, but currently, the machine only boots from CD...


Kind regards,
--Toni++



More information about the pkg-mdadm-devel mailing list