linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* mdadm create error
@ 2004-09-23 17:42 rich turner
  2004-09-23 18:34 ` Guy
  2004-09-24  1:08 ` Neil Brown
  0 siblings, 2 replies; 3+ messages in thread
From: rich turner @ 2004-09-23 17:42 UTC (permalink / raw)
  To: linux-raid

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE: mdadm create error
  2004-09-23 17:42 mdadm create error rich turner
@ 2004-09-23 18:34 ` Guy
  2004-09-24  1:08 ` Neil Brown
  1 sibling, 0 replies; 3+ messages in thread
From: Guy @ 2004-09-23 18:34 UTC (permalink / raw)
  To: 'rich turner', linux-raid

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@vger.kernel.org
[mailto:linux-raid-owner@vger.kernel.org] On Behalf Of rich turner
Sent: Thursday, September 23, 2004 1:42 PM
To: linux-raid@vger.kernel.org
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@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: mdadm create error
  2004-09-23 17:42 mdadm create error rich turner
  2004-09-23 18:34 ` Guy
@ 2004-09-24  1:08 ` Neil Brown
  1 sibling, 0 replies; 3+ messages in thread
From: Neil Brown @ 2004-09-24  1:08 UTC (permalink / raw)
  To: rich turner; +Cc: linux-raid

On Thursday September 23, rich@storix.com wrote:
> 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

There is a bug in 1.5.0 and 1.6.0 that prevents the --parity option
from working.   It is fixed in 1.7.0.

NeilBrown

> 
> 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@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-09-24  1:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-09-23 17:42 mdadm create error rich turner
2004-09-23 18:34 ` Guy
2004-09-24  1:08 ` Neil Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).