Linux RAID Enterprise-Level Capabilities and If It Supports Raid Level Migration and Online Capacity Expansion
Hi,
I was interested in Linux's RAID capabilities and
read that mdadm was the tool of choice. We are currently comparing software RAID with hardware RAID and to complete our comparison, we were wondering if the following is supported by mdadm:
1) OCE: Online Capacity Expansion: From the latest
version of mdadm (v2.2), it ssems that there is
support for it with the -G option. How well tested is this? Also, in the Readme / Man page, it mentions:
This usage causes mdadm to attempt to reconfigure a
running array. This is only possibly if the kernel being used supports a particular reconfiguration.
How can I know if the kernel I am using supports this
reconfiguration? What if I'm compiling the kernel by hand. What options would I have to enable?
2) RAID Level Migration: Does mdadm currently
support this feature?
3) Performance issues: I'm currently thinking of
using either RAID 10 or LVM2 with RAID 5 to serve as a RAID server. The machine will be running either an
AMD 64 processor or a dual-core AMD 64 processor, so I don't think the CPU will be a bottleneck. In fact, it should easily pass the speed of most "hardware" based RAID systems.
4) Would anyone recommend a certain hotswap
enclosure?
5) Finally, I'm thinking of integrating this in a
custom SAN backend. Anyone try this before? Thanks
for your time.
PS. Some of the terms used in the man page are a bit ambiguous. For example, what does --write-mostly refer to? Thanks for your time.
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
Quoted 3 lines · Rik Herrin
I was interested in Linux's RAID capabilities and read that mdadm was the tool of choice. We are currently comparing software RAID with hardware RAID
MD is far superior to most of the hardware RAID solutions I've touched. In short, it seems MD is developed with the goal of keeping your data safe, not selling hardware.
I've had problems both with MD and with hardware RAID. With hardware RAID, once things go bad, they really go bad. With MD, there's usually a straight-forward way to rescue things. And when there's not, Neil's a real nice guy who always stands up to help and fix bugs.
I would trust my data with MD over any hardware RAID solution, including professional server RAID solutions from eg. Compaq or IBM.
MD is a little more difficult to set up and also lacks in that it doesn't integrate with BIOS level stuff and boot loaders (maybe there's minimal MD RAID 1 support in Lilo, not sure). Depending on your choice of hardware, you might also get more features than MD can currently offer.
Quoted 4 lines
1) OCE: Online Capacity Expansion: From the latest
version of mdadm (v2.2), it ssems that there is support for it with the -G option. How well tested is this?
New feature, so obviously not tested very well.
Neil said at one point that he was going to release this to the general public when it's stable and when it can recover an interrupted resize process. Sounds like a very reasonable and sane goal to me, I hope that this is still the case.
Otherwise, it's easy to work around - you can just create a new RAID array on your new disks / extra disk space and then join it to the end of the old array using MD's linear personality or DM. Never tried it, but should work just fine.
Quoted 7 lines
Also, in the Readme / Man page, it mentions:
This usage causes mdadm to attempt to reconfigure a
running array. This is only possibly if the kernel being used supports a particular reconfiguration.
How can I know if the kernel I am using supports this
reconfiguration? What if I'm compiling the kernel by hand. What options would I have to enable?
Just the usual MD stuff I think.
You'll probably need a quite new kernel where Neil's bitmap patches has been applied.
Hopefully MD will detect whether the kernel is new enough or not, but I haven't tried myself ;-).
Quoted 2 lines
2) RAID Level Migration: Does mdadm currently
support this feature?
I don't think so, but sounds like RAID5 --> RAID6 is planned. Check back in a year or so ;-).
Or choose the RAID level you *really* want to begin with (duh).
Since you say "we", I assume you're part of a very large corporation and thus intend to RAID a whole bunch of disks. Go with RAID6 + a couple of spares for that. If you intend to use really many disks, make multiple arrays. (Not sure whether you can share spares across arrays, but I think you can.)
Quoted 7 lines
3) Performance issues: I'm currently thinking of
using either RAID 10 or LVM2 with RAID 5 to serve as a RAID server. The machine will be running either an AMD 64 processor or a dual-core AMD 64 processor, so I don't think the CPU will be a bottleneck. In fact, it should easily pass the speed of most "hardware" based RAID systems.
I think there's two issues to cover,
* Throughput
* Seek times
And of course they're not entirely separate issues - throughput will be lower when you're doing random access (seeking) and seek times will be higher when you're pulling lots of data out.
I've seen lots of MD tests, but none that covered profiling MD's random access performance. So I suppose that most hardware solutions will do a lot better than MD here since they have been profiled with this in mind.
Throughput-wise, I think MD is probably very good. But I can't back that up with factual data, sorry.
Quoted 2 lines
4) Would anyone recommend a certain hotswap
enclosure?
I would, but can't remember their name, sorry :-)
Quoted 5 lines · Molle Bestefich
Since you say "we", I assume you're part of a very large corporation and thus intend to RAID a whole bunch of disks. Go with RAID6 + a couple of spares for that. If you intend to use really many disks, make multiple arrays. (Not sure whether you can share spares across arrays, but I think you can.)
A recent foray through mdadm's code verifies this. If it noticies a failure and there is a spare, it attempts to migrate the spare to the array that needs it. Very cool feature!
Quoted 4 lines
I've seen lots of MD tests, but none that covered profiling MD's random access performance. So I suppose that most hardware solutions will do a lot better than MD here since they have been profiled with this in mind.
Well, it depends on the RAID level, disk, configuration, and how you're using it. In general, RAID 0+1 has better seek properties because reads can be done independantly from many disks. RAID5 is always going to be slow because n-1 disks need to all simultaneously read their stripe, and this can cause spindle contention.
Of course, you lose more space to overhead as RAID 0+1 arrays grow...
Signature · 8 lines
Ross Vandegrift [email protected] "The good Christian should beware of mathematicians, and all those who make empty prophecies. The danger already exists that the mathematicians have made a covenant with the devil to darken the spirit and to confine man in the bonds of Hell." --St. Augustine, De Genesi ad Litteram, Book II, xviii, 37
Quoted 10 lines · Ross Vandegrift
Quoted 5 lines · Molle Bestefich
Since you say "we", I assume you're part of a very large corporation and thus intend to RAID a whole bunch of disks. Go with RAID6 + a couple of spares for that. If you intend to use really many disks, make multiple arrays. (Not sure whether you can share spares across arrays, but I think you can.)
A recent foray through mdadm's code verifies this. If it noticies a failure and there is a spare, it attempts to migrate the spare to the array that needs it. Very cool feature!
Super =)
Quoted 7 lines
Quoted 4 lines
I've seen lots of MD tests, but none that covered profiling MD's random access performance. So I suppose that most hardware solutions will do a lot better than MD here since they have been profiled with this in mind.
Well, it depends on the RAID level, disk, configuration, and how you're using it.
Still a shame for MD that noone has done these tests.
Also a shame that noone has setup up a test farm with:
* A test box that regularly profiles MD, for seek time, throughput
and CPU usage with various personalities.
* Another test box, exactly the same hardware as the first one,
suited for plugging in new hardware RAID adapters (while retaining disks and other hardware) to test hardware RAID solutions with consistent results even when new products come out.
Quoted 4 lines
In general, RAID 0+1 has better seek properties
because reads can be done independantly from many disks. RAID5 is always going to be slow because n-1 disks need to all simultaneously read their stripe, and this can cause spindle contention.
Why would you need to send all of the disks in a RAID5 to the same stripe if only fx. one block in the stripe was requested? Doesn't make much sense to me..
Quoted 1 line
Of course, you lose more space to overhead as RAID 0+1 arrays grow...
Of course. It seems to me that RAID 1+0 has the exact same performance properties as RAID 0+1 if things are done properly in whatever RAID hardware/software used..
Sorry for taking so long to reply but it's been a hectic week. Thanks for your reply. Out of curiousity, what is MD's linear personality or DM? Would this affect performance if I expanded my RAID using this?
Quoted 132 lines · --- Molle Bestefich
Quoted 3 lines · Rik Herrin
I was interested in Linux's RAID capabilities and read that mdadm was the tool of choice. We are currently comparing software RAID with hardware
RAID
MD is far superior to most of the hardware RAID solutions I've touched.
In short, it seems MD is developed with the goal of keeping your data
safe, not selling hardware.I've had problems both with MD and with hardware RAID. With hardware
RAID, once things go bad, they really go bad. With MD, there's
usually a straight-forward way to rescue things. And when there's
not, Neil's a real nice guy who always stands up to help and fix bugs.I would trust my data with MD over any hardware RAID solution,
including professional server RAID solutions from eg. Compaq or IBM.MD is a little more difficult to set up and also
lacks in that it
doesn't integrate with BIOS level stuff and boot
loaders (maybe
there's minimal MD RAID 1 support in Lilo, not
sure). Depending on
your choice of hardware, you might also get more
features than MD can
currently offer.Quoted 1 line
1) OCE: Online Capacity Expansion: From the
latest
Quoted 2 lines
version of mdadm (v2.2), it ssems that there is support for it with the -G option. How well
tested is
Quoted 1 line
this?
New feature, so obviously not tested very well.
Neil said at one point that he was going to release this to the
general public when it's stable and when it can recover an interrupted
resize process. Sounds like a very reasonable and sane goal to me, I
hope that this is still the case.Otherwise, it's easy to work around - you can just create a new RAID
array on your new disks / extra disk space and then join it to the end
of the old array using MD's linear personality or DM. Never tried it,
but should work just fine.Quoted 2 lines
Also, in the Readme / Man page, it mentions:
This usage causes mdadm to attempt toreconfigure a
Quoted 1 line
running array. This is only possibly if the
kernel
Quoted 2 lines
being used supports a particular reconfiguration.
How can I know if the kernel I am using supportsthis
Quoted 1 line
reconfiguration? What if I'm compiling the kernel
by
Quoted 1 line
hand. What options would I have to enable?
Just the usual MD stuff I think.
You'll probably need a quite new kernel where Neil's bitmap patches
has been applied.
Hopefully MD will detect whether the kernel is new enough or not, but
I haven't tried myself ;-).Quoted 2 lines
2) RAID Level Migration: Does mdadm currently
support this feature?I don't think so, but sounds like RAID5 --> RAID6 is planned.
Check back in a year or so ;-).Or choose the RAID level you *really* want to begin with (duh).
Since you say "we", I assume you're part of a very large corporation
and thus intend to RAID a whole bunch of disks. Go with RAID6 + a
couple of spares for that. If you intend to use really many disks,
make multiple arrays. (Not sure whether you can share spares across
arrays, but I think you can.)Quoted 2 lines
3) Performance issues: I'm currently thinking of
using either RAID 10 or LVM2 with RAID 5 to serveas a
Quoted 1 line
RAID server. The machine will be running either
an
Quoted 1 line
AMD 64 processor or a dual-core AMD 64 processor,
so I
Quoted 1 line
don't think the CPU will be a bottleneck. In
fact, it
Quoted 1 line
should easily pass the speed of most "hardware"
based
Quoted 1 line
RAID systems.
I think there's two issues to cover,
* Throughput
* Seek timesAnd of course they're not entirely separate issues - throughput will
be lower when you're doing random access (seeking) and seek times will
be higher when you're pulling lots of data out.I've seen lots of MD tests, but none that covered profiling MD's
random access performance. So I suppose that most hardware solutions
will do a lot better than MD here since they have been profiled with
this in mind.
Quoted 8 lines
Throughput-wise, I think MD is probably very good. But I can't back that up with factual data, sorry.
Quoted 2 lines
4) Would anyone recommend a certain hotswap
enclosure?I would, but can't remember their name, sorry :-)
__________________________________
Yahoo! for Good - Make a difference this year.
http://brand.yahoo.com/cybergivingweek2005/
Followup to: <[email protected]> By author: Molle Bestefich <[email protected]> In newsgroup: linux.dev.raid
Quoted 7 lines
MD is a little more difficult to set up and also lacks in that it doesn't integrate with BIOS level stuff and boot loaders (maybe there's minimal MD RAID 1 support in Lilo, not sure). Depending on your choice of hardware, you might also get more features than MD can currently offer.
LILO and SYSLINUX/EXTLINUX can boot from RAID-1; some versions of GRUB can too.
-hpa
Hi,
Quoted 3 lines · Rik Herrin
1) OCE: Online Capacity Expansion: From the latest
version of mdadm (v2.2), it ssems that there is support for it with the -G option. How well tested is
Well, we use LVM above raid, thins is not a big issue.
Quoted 1 line
3) Performance issues: I'm currently thinking of
I have some simple test with bonnie++, the sw raid superior to hw raid, except big-name storage systems.
http://zeus.gau.hu/~lajbi/diskbenchmarks.txt
Quoted 2 lines
4) Would anyone recommend a certain hotswap
enclosure?
We used ibm xseries and sun machines. The hotswap working well, but the number of drives very limited.
Take a look at http://www.coraid.com : very well scalable, cheap storage.
Bye, -=Lajbi=----------------------------------------------------------------
LAJBER Zoltan Szent Istvan Egyetem, Informatika Hivatal
Most of the time, if you think you are in trouble, crank that throttle!
Quoted 3 lines · Lajber Zoltan
I have some simple test with bonnie++, the sw raid superior to hw raid, except big-name storage systems.
http://zeus.gau.hu/~lajbi/diskbenchmarks.txt
Cool.
But what does "gep, tip, diskvez, iras, olvasas" and "atlag" mean?
Quoted 7 lines · Molle Bestefich
Quoted 3 lines · Lajber Zoltan
I have some simple test with bonnie++, the sw raid superior to hw raid, except big-name storage systems.
http://zeus.gau.hu/~lajbi/diskbenchmarks.txtCool.
But what does "gep, tip, diskvez, iras, olvasas" and "atlag" mean?
Oh, sorry, that is hungarian :)
gep= machine - a kind of id
tip= type
diskvez: disk controller
iras: write
olvasas: read
atlag: mean (of read and write)
Bye, -=Lajbi=----------------------------------------------------------------
LAJBER Zoltan Szent Istvan Egyetem, Informatika Hivatal
Most of the time, if you think you are in trouble, crank that throttle!
Thanks Lajber. Sorry for taking so long to reply but it's been a busy week. Your test benchmarks look interesting. Do they take into consideration the random seeks that Molle mentioned in his email? As Molle mentioned: "I've seen lots of MD tests, but none that covered profiling MD's random access performance". Does this cover MD's random access performance?
Also, have you thought of using iometer
(http://www.iometer.org) and comparing it's results with bonnie++'s results? Just a thought...
Thanks for your time...
Quoted 23 lines · --- Lajber Zoltan
Hi,
Quoted 1 line · Rik Herrin
1) OCE: Online Capacity Expansion: From the
latest
Quoted 2 lines
version of mdadm (v2.2), it ssems that there is
support for it with the -G option. How welltested is
Well, we use LVM above raid, thins is not a big
issue.Quoted 1 line
3) Performance issues: I'm currently thinking of
I have some simple test with bonnie++, the sw raid superior to hw raid,
except big-name storage systems.
http://zeus.gau.hu/~lajbi/diskbenchmarks.txtQuoted 2 lines
4) Would anyone recommend a certain hotswap
enclosure?
Quoted 9 lines
We used ibm xseries and sun machines. The hotswap
working well, but the
number of drives very limited.Take a look at http://www.coraid.com : very well
scalable, cheap storage.Bye,
-=Lajbi=----------------------------------------------------------------
Quoted 5 lines
LAJBER Zoltan Szent Istvan Egyetem,
Informatika Hivatal
Most of the time, if you think you are in trouble,
crank that throttle!
__________________________________________
Yahoo! DSL – Something to write home about. Just $16.99/mo. or less.
dsl.yahoo.com
-
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
Hi Rik,
Neil answered some of the questions earlier:
Quoted 10 lines
How can I know if the kernel I am using supports this
reconfiguration? What if I'm compiling the kernel by hand. What options would I have to enable?PS. Some of the terms used in the man page are a bit ambiguous. For example, what does --write-mostly refer to? Thanks for your time.
See Message : http://www.opensubscriber.com/message/[email protected]/2852873.html
Reagards,
Robert Heinzmann