raid 10 or 1+0 ?
hello
is raid 10 work like a raid 1+0 and witch one is the more stable/sure to boot on it as root fs ?
Quoted 2 lines · yves DEGLAIN
is raid 10 work like a raid 1+0 and witch one is the more stable/sure to boot on it as root fs ?
I believe that RAID 10 == RAID 1+0. They are just two notations for the same thing. Thus, either would be equally suitable.
Signature · 2 lines
[ Tobias DiPasquale ] 0x636f6465736c696e67657240676d61696c2e636f6d
md supports a built-in RAID10. RAID10 is not RAID1+0, but it is similar. RAID10 can be used with an odd number of disks and is a single array. RAID1+0 is a single RAID0 made of 2 or more RAID1 arrays.
I have never used them, so I can't recommend one over the other.
Some people have problems with RAID1+0, seems the Kernel tries to assemble the RAID0 array before the RAID1 arrays. Maybe not on every system.
RAID10 is somewhat new, so may not have had much testing. I don't recall anyone posting comments on RAID10.
Maybe we need some success stories for RAID10 and RAID1+0 mounted on "/".
Guy
Quoted 22 lines
-----Original Message-----
From: [email protected] [mailto:linux-raid- [email protected]] On Behalf Of Tobias DiPasquale
Sent: Saturday, April 23, 2005 7:26 AM
To: yves DEGLAIN
Cc: [email protected]
Subject: Re: raid 10 or 1+0 ?Quoted 2 lines · yves DEGLAIN
is raid 10 work like a raid 1+0 and witch one is the more stable/sure to boot on it as root fs ?
I believe that RAID 10 == RAID 1+0. They are just two notations for the same thing. Thus, either would be equally suitable.
--
[ Tobias DiPasquale ]0x636f6465736c696e67657240676d61696c2e636f6d
-
To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
On Sat, 23 Apr 2005 12:21:17 -0400 you wrote in local.lists.linux-raid:
Quoted 1 line
Maybe we need some success stories for RAID10 and RAID1+0 mounted on "/".
I have such a setup up and running for quite some time now:
cat /proc/mdstat
Personalities : [raid0] [raid1]
md3 : active raid0 md1[0] md2[1]
156247808 blocks 64k chunks
md2 : active raid1 hda2[0] hdk2[1]
78123968 blocks [2/2] [UU]
md1 : active raid1 hdc2[0] hdg2[1]
78123968 blocks [2/2] [UU]
md0 : active raid1 hdc1[2] hda1[3] hdk1[1] hdg1[0]
49280 blocks [4/4] [UUUU]
My roottfs is on a lv. The corresponding vg is made from md3.
This works if you do not rely on the kernel to assemble your array but use an initrd to achieve this.
Just use something like this in your linuxrc, right after creating the device nodes (if you use udev):
if test -e /proc/mdstat; then log "scanning for multi disk devices" echo "DEVICE /dev/hd[a-z] /dev/sd[a-z] /dev/md[0-9]" > /etc/mdadm.conf mdadm --examine --scan --config=/etc/mdadm.conf \ >> /etc/mdadm.conf mdadm --assemble --scan fi if test -c /dev/mapper/control; then log "setting up lvm" vgscan --mknodes vgchange -a y fi
BTW, you should definitively use striped mirrors rather than mirrored stripes.
However, note that you can not boot from a striped mirror. That is, you need a tiny partition, preferably at the beginning of your discs, to store the kernel image and the initrd, but not the rootfs. You can make it a raid1 over all disks, like my md0 above, and use lilo to write a mbr to _all_ discs. That way you can shuffle around your discs and your system will still boot.
More details on request ;)
Andre
Signature · 1 line
Andre Noll, http://www.mathematik.tu-darmstadt.de/~noll
Quoted 2 lines · Guy
md supports a built-in RAID10.
RAID10 can be used with an odd number of disks and is a single array.
*sighs a bit*.. If that's true, someone should perhaps update
http://en.wikipedia.org/wiki/Redundant_array_of_independent_disks#RAID_10
to reflect the fact that MD's notion of RAID10 is different from other vendors'.
Quoted 5 lines · Molle Bestefich
Quoted 2 lines · Guy
md supports a built-in RAID10.
RAID10 can be used with an odd number of disks and is a single array.*sighs a bit*..
[snip]
Doesn't look that bad actually. There's a vendor section called "proprietary raid levels" where "Linux MD RAID 10" would fit in nicely. So if anybody knows enough about how MD RAID 10 works, here's something to do when you get bored :-).
This is from an email Neil Brown sent 8/22/2004:
Following are 4 patches for md in 2.6.8.1-mm4
The first three are minor improvements and modifications either required by or inspired by the fourth.
The fourth adds a new raid personality - raid10. At 56K, I'm not sure it will get through the mailing list, but interested parties can find it at:
http://neilb.web.cse.unsw.edu.au/patches/linux-devel/2.6/2004-08-23-03
raid10 provides a combination of raid0 and raid1.
It requires mdadm 1.7.0 or later to use.
The next release of mdadm should have better documention of raid10, but from the comment in the .c file:
/*
* RAID10 provides a combination of RAID0 and RAID1 functionality.
* The layout of data is defined by
* chunk_size * raid_disks * near_copies (stored in low byte of layout) * far_copies (stored in second byte of layout)
*
* The data to be stored is divided into chunks using chunksize.
* Each device is divided into far_copies sections.
* In each section, chunks are layed out in a style similar to raid0, but
* near_copies copies of each chunk is stored (each on a different drive).
* The starting device for each section is offset near_copies from the
starting
* device of the previous section.
* Thus there are (near_copies*far_copies) of each chunk, and each is on a
different
* drive.
* near_copies and far_copies must be at least one, and there product is at
most
* raid_disks.
*/
raid10 is currently marked EXPERIMENTAL, and this should be taken seriously. A reasonable amount of basic testing hasn't shown any bugs, and it seems to resync
and rebuild correctly. However wider testing would help.
NeilBrown
Quoted 23 lines
-----Original Message-----
From: [email protected] [mailto:linux-raid- [email protected]] On Behalf Of Molle Bestefich
Sent: Monday, April 25, 2005 4:08 PM
To: [email protected]
Subject: Re: raid 10 or 1+0 ?Quoted 5 lines · Molle Bestefich
Quoted 2 lines · Guy
md supports a built-in RAID10.
RAID10 can be used with an odd number of disks and is a single array.*sighs a bit*..
[snip]
Doesn't look that bad actually. There's a vendor section called "proprietary raid levels" where "Linux MD RAID 10" would fit in nicely. So if anybody knows enough about how MD RAID 10 works, here's something to do when you get bored :-).
-
To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html