raid mdadm
Dennis Gilmore
dennis at ausil.us
Wed Dec 22 05:43:47 UTC 2010
On Tuesday, December 21, 2010 11:30:16 pm xinyou yan wrote:
> First I add sdb sdc sde fdisk to sdb1 sdc1 sdd1 sde1
> then
> # mdadm --create --level=5 --raid-devices=4 /dev/sd{b,c,d,e}1
> #mkdir /mnt/raid
> #mkfs.ext4 /dev/md0
> #vi /etc/fstab
>
> add /dev/md0 /mnt/raid ext4 defaults 1 2
>
> after reboot
>
> fsck.ext4: Invalid argument while trying to open 0
> /dev/md0:
> The superblock could not be read or does not describe a correct ext2
> filesystem. If the device is valid and it really contains an ext2
> filesystem (and not swap or ufs or something else), then the superblock
> is corrupt, and you might try running e2fsck with an alternate superblock:
> e2fsck -b 8193
> * Fsck could not correct all errors, manual repair needed
> [ !! ]
> Give root password for maintenance
> (or type Control-D for normal startup):
>
>
> I try e2fsck .however it dostn't work
>
>
> How can i fix the problem ?
>
> thank you
you need to setup /etc/mdadm.conf
you want a line like bellow
ARRAY /dev/md0 level=raid5 num-devices=4 uuid=<uuid of your array>
to get your uuid run "mdadm --examine /dev/sdc1 |grep UUID"
Dennis
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
Url : http://lists.fedoraproject.org/pipermail/users/attachments/20101221/545553bc/attachment.bin
More information about the users
mailing list