RE: mdadm create error

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

 



It works for me with RAID5.  Maybe RAID6 does not support all of the parity
options.  My version of md does not support RAID6, so I can't even try it.

Oh!  When I "play" with md and mdadm I use the ram disks.  But don't expect
the data to be there after a re-boot!  You can fail a drive and hot add and
remove.

Guy

root]# mdadm --create /dev/md3 --chunk=64 --level=5 --raid-devices=4
--parity=right-asymmetric --spare-devices=2 /dev/ram0 /dev/ram1 /dev/ram2
/dev/ram3 /dev/ram4 /dev/ram5
mdadm: array /dev/md3 started.
[root@watkins-home root]# cat /proc/mdstat
Personalities : [raid1] [raid5]
read_ahead 1024 sectors
md3 : active raid5 [dev 01:03][3] [dev 01:05][5] [dev 01:04][4] [dev
01:02][2] [dev 01:01][1] [dev 01:00][0]
      12096 blocks level 5, 64k chunk, algorithm 1 [4/4] [UUUU]

-----Original Message-----
From: linux-raid-owner@xxxxxxxxxxxxxxx
[mailto:linux-raid-owner@xxxxxxxxxxxxxxx] On Behalf Of rich turner
Sent: Thursday, September 23, 2004 1:42 PM
To: linux-raid@xxxxxxxxxxxxxxx
Subject: mdadm create error

i cant figure out what is wrong with the following command. when i
remove the "parity=right-asymmetric" command option it does not fail.
but i need to be able to create the raid device with different parity
algorithms. it also fails on --level=5 and using the short forms of the
flags.

mdadm --create /dev/md2 --chunk=64 --level=6 --raid-devices=4 
--parity=right-asymmetric --spare-devices=2 /dev/vg0/turnerlv1
/dev/vg0/turnerlv2 /dev/vg0/turnerlv3 /dev/vg0/turnerlv4
/dev/vg0/turnerlv5 /dev/vg0/turnerlv6

mdadm: layout may only be sent once.  Second value was right-asymmetric

rich:/tmp # mdadm --version
mdadm - v1.5.0 - 22 Jan 2004

-
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

-
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux