[vox-tech] Re: mdadm failing to start RAID5 array [RESOLVED]

Ryan cjg5ehir02 at sneakemail.com
Sun Apr 17 14:27:06 PDT 2005


On Sunday 17 April 2005 11:35 am, Ryan Castellucci 
cjg5ehir02-at-sneakemail.com |lugod| wrote:
> On Sunday 17 April 2005 11:26 am, Ryan Castellucci wrote:
> > I'm trying to use RAID5 with 4 200gb SATA drives on mandrake 10.1, and
> > the array creates fine, but when I try to restart it, i get 'invalid
> > argument' errors from mdadm, adding devices to /dev/md0
> >
> > [root at media root]# cat /etc/mdadm.conf
> > DEVICE /dev/sd*1
> > ARRAY /dev/md0 level=raid5 num-devices=4
> > UUID=d9008623:c81eff0d:a8fc1629:4223b0b6
> > devices=/dev/sda1,/dev/sdb1,/dev/sdc1,/dev/sdd1
> >
> > [root at media root]# mdadm -v --assemble /dev/md0
> > mdadm: looking for devices for /dev/md0
> > mdadm: /dev/sdd1 is identified as a member of /dev/md0, slot 4.
> > mdadm: /dev/sdc1 is identified as a member of /dev/md0, slot 2.
> > mdadm: /dev/sdb1 is identified as a member of /dev/md0, slot 1.
> > mdadm: /dev/sda1 is identified as a member of /dev/md0, slot 0.
> > mdadm: failed to add /dev/sdb1 to /dev/md0: Invalid argument
> > mdadm: failed to add /dev/sdc1 to /dev/md0: Invalid argument
> > mdadm: no uptodate device for slot 3 of /dev/md0
> > mdadm: failed to add /dev/sdd1 to /dev/md0: Invalid argument
> > mdadm: failed to add /dev/sda1 to /dev/md0: Invalid argument
> > mdadm: /dev/md0 assembled from 1 drive and -1 spares - not enough to
> > start the array.
>
> output from dmesg....
>
> md: invalid superblock checksum on sdb1
> md: sdb1 has invalid sb, not importing!
> md: md_import_device returned -22
> md: invalid superblock checksum on sdc1
> md: sdc1 has invalid sb, not importing!
> md: md_import_device returned -22
> md: invalid superblock checksum on sdd1
> md: sdd1 has invalid sb, not importing!
> md: md_import_device returned -22
> md: invalid superblock checksum on sda1
> md: sda1 has invalid sb, not importing!
> md: md_import_device returned -22
> md: md0 stopped.

Fixed :)

I ran

mdadm --assemble --update summaries /dev/md0 /dev/sda1 /dev/sdb1 /dev/sdc1 
/dev/sdd1

and now it works fine.

-- 
Ryan Castellucci - http://ryanc.org/
GPG Key: http://ryanc.org/files/publickey.asc


More information about the vox-tech mailing list