Slashdot Mirror


Managing RAID on Linux

rjnagle writes "The availability of HOW-TOs and newsgroups is supposed to make the sysadmin's job easier, right? Much as I am a proponent of the 'distributed learning model' for Linux, the endless searching for answers on the Web for setting up Linux RAID was getting to be a royal pain. Sure, there was a RAID how-to and an excellent newgroup, but some of the information is out of date, and the tricks suggested by people a year ago may be no longer needed today. Robert reviews the O'Reilly title Managing RAID on Linux below to see how it stacks up to HOWTOs, guesswork and anecdotal evidence. Managing RAID on Linux author Derek Vadala pages 245 publisher O'Reilly rating The best reviewer Robert Nagle (aka idiotprogrammer) ISBN 1565927303 summary This book brings RAID to the masses

A person deciding to go with RAID faces a panoply of options and gotchas. Hardware or software? How many controllers? ATA or SCSI (or ataraid)? RAID 1 or RAID 5? Which file system or distribution? Kernel options? Mdadm or raidtools? /swap or /boot on raid? Hybrid? Left or right symmetric? One poster pointed out that putting two ATA drives on the same controller could impact performance. Yikes! Didn't I do that? Upon discovering that O'Reilly had just published its Managing RAID on Linux book, looking at sample chapter , I bought the book and let my blood pressure return to normal.

RAID is one of these subjects that is really not complex; it's just very hard to find all the information in one place. This is precisely the book to solve the problem. Author Derek Vadala, sysadmin and founder of Azurance.com, an open source/security consulting firm, has gathered a lot of information and even personal anecdotes to go through the decision making process when going over to RAID. He goes step-by-step through that process, educating us about hard drives, controllers, and bottlenecks along the way. This exhaustive book may be the first to bring RAID to the masses.

Although parts of the book (RAID types, file system types) may seem already familiar to experienced Linux users, it is helpful nonetheless to have everything in a nifty little book. A section of file systems provided not only a rundown of the merits and drawbacks of each one, but also a guide to their utilities. I learned for example what "file tails" for Reiser are, and why using them causes performance to degrade after reaching 85% capacity. The book compares raidtools with mdadm as well as lovely commands like nohup mdadm -monitor -mail=paranoidsysadmin@home.com (which, if you haven't guessed, causes the system to email you RAID status reports upon boot).

People who use software RAID may skip over the chapter on RAID utilities for the leading RAID controller cards. Still, there was one interesting tidbit: Why, the author asks, do makers of controller cards put all their BIOS utilities on DOS floppies which require us to find a DOS boot disk? Seriously, how many of us carry around DOS boot disks nowadays? The book made me aware for the first time of freedos, an open source solution that solves precisely that problem.

The Software RAID stuff was pretty thorough and clarified a lot of things. The book does an excellent job in helping to identify and eliminate bottlenecks and optimizing hard drive performance (using hdparm and various monitoring commands). The anecdotes and case studies definitely clarified which RAID solution is suited for which task.

I am less impressed by the book's sections on disaster recovery and troubleshooting. Although these subjects are brought up at several places in the software RAID chapter, the book could have discussed several failure scenarios or used a fault tree (such as the famous Fault Tree in Chapter 9 of the Samba book, a marvel for any tech writer to read). The book doesn't even discuss booting with software RAID until the last 10 page of the book and then gives it only a single paragraph (even though the author acknowledges it as "one of the most frequently asked questions on the linux-raid mailing list."). Call me old-fashioned, but isn't the ability to boot into your RAID system ... kinda important? As someone who just spent a significant amount of time troubleshooting RAID booting problems in Gentoo, I for one would have liked more insight into the grub/lilo thing. Also, in the next paragraph in the last chapter on page 228, the author casually mentions that "all /boot and / partitions must be on a RAID-1." Say what? Please pity the poor newbie who religiously follows the instructions in the book but fails to read until the end. I'm not sure what the author meant by this statement, but it required a much more substantial explanation and needed to go into a much earlier chapter.

These complaints don't detract very much from this excellent book, a true O'Reilly classic and a model of clarity and helpfulness. This book provides enough knowledge to avoid the dread and uncertainty that comes with trying to tackle Linux RAID. With a book like this, a sysadmin can sleep a little easier.

Recommended Readings:

Robert Nagle (aka Idiotprogrammer )is a Texas technical writer, trainer and Linux aficionado. You can purchase Managing RAID on Linux from bn.com. Slashdot welcomes readers' book reviews -- to see your own review here, read the book review guidelines, then visit the submission page.

225 comments

  1. I know this book is about software RAID ... by supun · · Score: 5, Informative

    but the easiest way I've found is to go with hardware RAID. It's easier to setup, doesn't put any extra load on the CPU, and only costs a few hundred dollars extra.

    Mind you I'm thinking of RAID used in producion instead of someone RAIDing two drives in there home machine.

    --
    :w!
    1. Re:I know this book is about software RAID ... by gpinzone · · Score: 1

      Few hundred? For IDE they're under a hundred, sometimes right on the motherboard.

    2. Re:I know this book is about software RAID ... by demaria · · Score: 1

      About a year and a half ago I was looking for a hardware RAID controller that had stable Linux drivers and supports IDE for my personal server. Know of any?

    3. Re:I know this book is about software RAID ... by Anonymous Coward · · Score: 4, Informative
      For IDE they're under a hundred, sometimes right on the motherboard

      Those cheap-o-RAIDs are essentially software RAIDs. Most if not all RAID functions are done by the drivers, not on the card itself.

      Entry-level real hardware IDE RAID cards cost approximately $500 - almost the same as a SCSI RAID. That's obviously offset by the cheaper disks, but still...

    4. Re:I know this book is about software RAID ... by spinkham · · Score: 2, Informative

      And are basically software raid.
      Those cheap IDE raid cards do most of the work in the driver, and don't give you much adavntage over software raid.
      True hardware raid is a few hundred dollars, like the 3ware series of cards.

      --
      Blessed are the pessimists, for they have made backups.
    5. Re:I know this book is about software RAID ... by Anonymous Coward · · Score: 0

      Use google you dolt, he is right. Hokey ide "hardware" raid is identical to software os raid. One uses a bios hack, the other uses the os to do the translations.

      Both heavily tax the cpu for raid operations, unlike real raid which uses a processor directly on the raid controller. See also: SCSI

    6. Re:I know this book is about software RAID ... by Anonymous Coward · · Score: 0

      I believe this book does cover hardware RAID. Note the line in the review saying you can skip the chapters on the utilities of the leading RAID controller cards.

    7. Re:I know this book is about software RAID ... by danb35 · · Score: 1

      The 3ware Escalade series should fit the bill.

    8. Re:I know this book is about software RAID ... by Anonymous Coward · · Score: 2, Informative
      Try Linux ATA RAID HOWTO for starters:

      "Type df -k and you should see your hard disks as /dev/sdaX instead of /dev/hdaX. This is because the Promise Driver is actually a special type of Software Emulation RAID, not exactly Hardware RAID. (Promise RAID works through a BIOS Hack)."

      By hardware RAID I mean a RAID system where none of the work is done by CPU (Adaptec, 3Ware). HighPoint and Promise ATA RAIDs are hardware-software hybrids and your CPU has to work.

    9. Re:I know this book is about software RAID ... by Copid · · Score: 3, Interesting
      Links to your evidence please? All tests I've seen show a marked improvement on disk speed with minimal impact on CPU. Please get your facts straight before posting.

      CPU usage isn't entirely the point. It doesn't take much CPU power to do RAID these days (that's why software RAID in Linux is a pretty good option). The problem is that it requires drivers and software control over RAID functionality (just what you want to avoid) when the RAID card should just be making the RAID array look like a single drive to the operating system. Notable examples include the HighPoint "RAID" controller found on some Abit motherboards.

      Anyway, I think "Please get your facts straight before posting" is kind of a nasty response to somebody who is pointing out something that is well known to most people who have tried using these pieces of crap with their non-Windows operating systems. Try using Google if you want references, one way or another. They won't be hard to find if you search through driver development lists for Linux and *BSD.

      --
      An interesting anagram of "BANACH TARSKI" is "BANACH TARSKI BANACH TARSKI"
    10. Re:I know this book is about software RAID ... by tzanger · · Score: 1

      The load for RAID1 or RAID1+0 on a modern (PPro and above for ix86) is negligable. RAID5 is a different story, but RAID5 on IDE is a joke anyway.

      What I am finding a passion for is LVM, particularly the ability to do RAID1+0 from within LVM by simply giving LVs two PVs to map to, and scattering the PV allocation. That, and the ability to do LVM snapshots for backup... mmmmmm....

    11. Re:I know this book is about software RAID ... by Spoke · · Score: 2, Informative

      Actually, 3ware IDE RAID cards are much cheaper than that. About $120 for a 2-channel card good for raid 1/0 and $245 for a 4-channel, $365 for a 8-channel and $520 for a 12-channel. I pulled these prices from hypermicro.com and no, I'm not affiliated with them, just a satisfied customer.

      If you're looking to do any more than 4 channels, I'd take a serious look at the SATA cards and drives simply to reduce cabling hassles.

    12. Re:I know this book is about software RAID ... by Cyno · · Score: 1

      Why pay for that when a few IDE cards @ $50 each and a decent athlon CPU will perform the same task as a fancy hardware RAID. Is there some benefit to hardware RAID other than server class equipment. We are talking IDE here afterall. I thought they stopped making server class IDE drives, which is why we RAID them in the first place, I guess.
      If you need a RAID solution that never fails and want to spend some money might as well go Sun A/Dx000 and build a couple redundant servers to setup load balancing and failover. The whole point of using IDE RAID is to save money and get massive amounts of relatively stable storage space.

    13. Re:I know this book is about software RAID ... by chef_raekwon · · Score: 1

      not 100% on this,
      but I believe those IDE cards that create Raid-1, or whichever, aren't limited to the problems with software raid - ie - you cannot boot a software raid if your primary harddrive goes....
      but, if you use the card - it writes identical info to both drives, essentially making them both bootable.

      true hardware raid - scsi, in other words, is helluva lot more expensive, when considering the cost of disks, controllers, mobo, etc. (but sure is worth it, cause it is a joke to configure)

      --
      We're like rats, in some experiment! -- George Costanza
    14. Re:I know this book is about software RAID ... by NineNine · · Score: 1

      I got a nice RAID for one of my boxes for $200. It's 100% hardware. The OS doesn't even know it's there. Hot swappable cheap-o IDE drives. It's great. I would *never* deal with the headache of a software RAID solution. That's like buying a buggy, slow software modem to save $10. There's no point.

    15. Re:I know this book is about software RAID ... by flahiker · · Score: 1

      Try the Adaptec 2400A ATA 100 controller. It has 4 IDE master ports and works very well under linux. I have had one up and running for 2 years. Adaptec should be comming out with a Serial ATA raid soon.

    16. Re:I know this book is about software RAID ... by _aargh · · Score: 3, Interesting

      There are plenty of reasons to go software RAID over hardware RAID. With Linux, one of the main reasons is the same reason many of us choose Linux to begin with-- it's open source. I know that isn't traditionally a factor to be considered when picking hardware, but remember that when a hardware controller fails you are at the mercy of the vendor. If a Linux software RAID fails, you have access to the source code and perhaps also the developers, so maybe you just have a shot at recovering data in a catastrophic event, even if it does mean writing some recover tool on your own. In fact, with RAID-1 in the Linux kernel, if something goes kablooey you can just mount a member disk standalone and get some rest.

      That's only one consideration. It used to be that the headache of booting from, and installing to Linux with software RAID was a huge hassle. Today almost every distribution supports out of the box installation to software RAID. So the 'ease of use' considerations for going hardware are all but gone.

      Now here's the issue that always starts the tug of war-- performance. Traditionally hardware RAID was simply better because it didn't hit the CPU. Today that doesn't make a difference, especially if you use SCSI. Now with ATA you might see the overhead of RAID a little more, but that's because ATA already has overhead to begin with. The CPU hit with SCSI is negligible, and I doubt if it will be noticed in most cases, even in so called "production". That's because the real bottleneck in most systems in I/O throughput and not CPU performance. That's most systems, not all systems. Obviously if you are a good sysadmin you are evaluating these issues on a case by case basis.

      Finally I just want to say that it's a widely held opininion among the Linux RAID community that the kernel RAID (the md driver) outperforms all but the most high-end SCSI RAID controllers. I'm sure many will disagree, but that's been my experience and I know that if you ask certain kernel developers who shall remain nameless they will tell you the same thing.

      Run bonnie, you'll see.

      Derek Vadala, lowly author.

    17. Re:I know this book is about software RAID ... by FatherOfONe · · Score: 1

      The reason that some people like hardware RAID over software is that it only cost around $300.00 more AND most implement HOT SWAP features. This is kinda nice. The ONLY downside is that you need to use the vendors driver as apposed to a standard IDE driver.

      The other thing you get is the ability to add drives on the fly.

      I would agree that if I didn't have the $300.00 for a 3ware RAID controler then I would try software RAID again. My first experience with it (RED HAT 7.3) sucked big time. I couldn't get the thing to install and be stable. This brings up another point. Your OS doesn't know that it is being RAIDed. In some cases that is nice.

      --
      The more I learn about science, the more my faith in God increases.
    18. Re:I know this book is about software RAID ... by SnotRag · · Score: 1

      >>

      This is untrue... I use software RAID and Redhat and as long as your setup the second drive in GRUB, you can boot off software RAID if a drive fails...

    19. Re:I know this book is about software RAID ... by spongman · · Score: 3, Informative
      Not so, there are plenty of comparitive reviews like this one on tom's hardware that suggest that the cleap-o-RAID, while not as feature-complete (ie RAID 5) as some of the more expensive offerings, are just as performant and sometimes faster and less CPU taxing than the more expensive options.

      You can get excellent performance for less than $100. Why pay more?

    20. Re:I know this book is about software RAID ... by spongman · · Score: 1
      tom's hardware is your friend...

      check out the highpoint and dawicontrol offerings unless you need RAID5.

    21. Re:I know this book is about software RAID ... by Anonymous Coward · · Score: 0

      A standard argument for software RAID is that software RAID allows you have an array spanning multiple controllers, and that allows for better protection against hardware failure (i.e. failed controllers).

    22. Re:I know this book is about software RAID ... by nathanh · · Score: 2, Insightful

      The "hidden" problem with hardware RAID is that often the operating system isn't aware when an active drive has failed. Some vendors offer monitoring utilities that install into the host OS (eg, MegaRAID controllers have a Linux utility) but this raises dozens of issues. Will the utility impact the server stability or performance? What library dependencies are required for the utility? How do I integrate the utility into my enterprise monitoring system eg, Nagios or Tivoli?

      Another problem - perhaps less serious - is that hardware RAID controllers often require a reboot into their proprietary BIOS to do anything. This isn't very useful if you want to expand the RAID array without disrupting service. Some vendors offer utilities to modify the RAID configuration but I've never found all the functionality to be exposed within the utilities. Of course, if you are mucking about with disk arrays on production systems then you have bigger issues to deal with.

    23. Re:I know this book is about software RAID ... by eyegone · · Score: 1
      RAID5 is a different story, but RAID5 on IDE is a joke anyway.

      Why?

      I'm using 3 120GB IDE disks in a RAID-5 configuration (240GB usable) to store my FLAC'ed CD collection. Each drive is a master on one of two Ultra133TX2 cards.

      --
      "They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety."
  2. Why DOS? by aulendil · · Score: 1
    Because DOS is simple, allows the RAID setup utilities direct access to the hardware, no multitask etc...

    Then of course, everything would be easier if the hardware manufacturers also sent along a DOS bootdisk, perhaps with FreeDOS to avoid licensing fees.

    1. Re:Why DOS? by Student_Tech · · Score: 1

      What about doing a bootable CD with FreeDOS (or something) for the basic DOS like OS. This could be useful if you have a machine that doesn't have a floppy drive installed as well. Plus booting from CDs seems to be lots faster than booting from a floppy.

  3. My favorite part of the review... by VitrosChemistryAnaly · · Score: 3, Funny

    ...was the use of the word "panoply".

    That word simply isn't used enough in the modern vernacular.

    Okay, mod me down now...

    --
    "It's a tarp!" -- Dyslexic Admiral Ackbar
    1. Re: My favorite part of the review... by Black+Parrot · · Score: 1


      > ...was the use of the word "panoply".

      Doubly so because the author doesn't seem to know what the word means.

      --
      Sheesh, evil *and* a jerk. -- Jade
    2. Re: My favorite part of the review... by ctrimble · · Score: 1
      He didn't mean it as a "splendid or striking array" of options?

      You might be thinking of the archaic use where it referred to a complete set, rather than just "alotta something", but that's no longer the standard use. Or maybe you just confused it with "panopeas", which, I agree, makes no sense in this context.

    3. Re:My favorite part of the review... by Captain+Large+Face · · Score: 1

      Eh?

      david@debian:~$ dict panoply

      Ah. Interesting...

  4. RAID and Firewire by syr · · Score: 5, Interesting
    Is there any way the peripheral to peripheral features of firewire could be used to create an advanced disk redundancy solution ala RAID? I ask this because I know the new Firewire specs shipping on the fancy new Apple machines are getting quite speedy and one of the prime advantages of 1394 over USB is the device to device communication that is possible.

    Is it possible to use Firewire and a service like Rendevous to make an intelligent redundant system? It's a thought at least. My firewire drive I use for my Inspiron works nicely enough. Would firewire be cheaper than RAID for servers, however?


    Syr GameTab.com - Game Reviews Database

    1. Re:RAID and Firewire by Oculus+Habent · · Score: 3, Interesting

      Interesting Thought.

      1. Rendevous probably wouldn't come into play - it's really system-to-system.

      2. The device to device communication could be especially useful when recovering a failed disk - no overhead on the controller. This, though, would require the devices themselves be better than mere drives, driving the cost up.

      3. Unfortunately - without drives with actual FireWire interfaces (all externals use FW-IDE bridges, the Oxford 911 being the fastest at 50MB/s, 35MB/s sustained) the true potential of FireWire will remain untapped. Perhaps as we move to Serial-ATA and away from the standard parallel IDE, manufacturers will be prompted to offer FireWire drives as well.

      Additional possibilities:
      Think of a trimmed-down Xserve RAID with FireWire instead of Fibre Channel - it would be able to take advantage of the bandwidth of FireWire and still maintain (?) affordability for low-to-mid range businesses looking for large high-speed external storage.

      All sorts of possibilities.

      --
      That what was all this school was for... to teach us how to solve our own problems. -- janeowit
    2. Re:RAID and Firewire by gelstudios · · Score: 2, Informative

      firewire is a bus, raid is a configuration.

      there are raid arrays with firewire interfaces, and software raid using firewire drives is quite possible. (osx makes it easy as pie)

      here are some cool firewire raid products:

      http://www.usbshop.com/firewireraid.html
      http://www.sancube.com/
      http://www.voyager.uk.com/products_master.asp?prod Type=firewire

      the x-stream from sancube has two firewire busses for double the speed, or for sharing.

    3. Re:RAID and Firewire by swb · · Score: 1

      Here's how I interpreted the parent poster's idea:

      Attached to the firewire bus is a RAID controller, but just a controller -- no disks or cabinet. The controller is configured to read/write to N drives also connected to the firewire bus. Writes to the card would be buffered and parceled out to the individual drives as the bus becomes available.

      The beauty would be you could connect generic firewire drives to the bus, and wouldn't need an expensive cabinet or dedicated drives. With enough buffer and courage to do cached writes, you could get good throughput since the real disk writes could wait for the bus to be free.

    4. Re:RAID and Firewire by psamuels · · Score: 1
      The beauty would be you could connect generic firewire drives to the bus, and wouldn't need an expensive cabinet or dedicated drives.

      Well, instead of one expensive cabinet you get N expensive cabinets. Each drive will have an IDE disk, an IDE controller talking to the firewire bus, and a case + power supply. (Well, I guess the power supply is optional, if your firewire cable provides power.)

      It's anyone's guess whether this would in fact come out cheaper than a RAID enclosure with hot-swap IDE bays. The RAID controller, in the latter case, could still have a firewire interface, though 80 MHz LVD seems to be the popular thing nowadays.

      As for "plug n play" - you don't want a RAID array to be easy to disassemble. Someone will unplug a drive by accident, and then the array degrades, and has to resync when you plug the drive back in. Hot-swap IDE enclosures are more than convenient enough for replacing actual failed drives - as one hopes this wouldn't be necessary more than once every few months ... right?

      --
      "How can you claim that you are anti-crack, while still writing a window manager?" — Metacity README
    5. Re:RAID and Firewire by swb · · Score: 1

      I wouldn't recommend this kind of solution as the ideal raid solution, but one that could be retrofitted to an existing disk solution.

      At $1500 for many of even the cheap RAID cabinets without disks, it's easy to see this as an entry-level RAID solution for someone that already has a few firewire disks and wants a redundancy or even for people that would make their own setup ($70 firewire enclosure + $85 80 GB IDE disk) and don't want the expense or need the performance of a full-blown ultra3 SCSI setup.

    6. Re:RAID and Firewire by psamuels · · Score: 1
      At $1500 for many of even the cheap RAID cabinets without disks, it's easy to see this as an entry-level RAID solution for someone that already has a few firewire disks and wants a redundancy or even for people that would make their own setup ($70 firewire enclosure + $85 80 GB IDE disk) and don't want the expense or need the performance of a full-blown ultra3 SCSI setup.

      Ah, ok, but in that case I don't see anything wrong with plain old software RAID.

      --
      "How can you claim that you are anti-crack, while still writing a window manager?" — Metacity README
  5. Great review... by SysPig · · Score: 4, Funny
    ...but the best part was, I learned a new word today.

    panoply
    n. pl. panoplies

    1. A splendid or striking array
    2. Ceremonial attire with all accessories
    3. Something that covers and protects
    4. The complete arms and armor of a warrior

    Looks like number one is most appropriate, although I've never referred to my arrays as "splendid".

    1. Re:Great review... by Limburgher · · Score: 1, Funny

      Maybe you should! I praise my RAID array regularly, like talking to a plant, and I find it increases performance and the reliability. . .well, 100% uptime speaks for itself! :)

      --

      You are not the customer.

  6. Re:Why bother with software RAID? by johoho · · Score: 0

    never mind the difference between RAID 1 and 5! Maybe the maintainer should add such questions to the FAQ. After all everybody started once...

  7. Re:Why bother with software RAID? by 1984 · · Score: 2, Insightful

    The performance hit is not worth the return.


    For you, it's not. For someone else, it might be.


    There are any number of situations where it might be appropriate to exchange some performance for increased data security. Just because you can't imagine them, doesn't mean they don't exist.

  8. tips in the book. by gimpboy · · Score: 1

    might not valid in a year or so.

    re: ... but some of the information is out of date, and the tricks suggested by people a year ago may be no longer needed today.

    this is something you are going to face when you are considering a technology that changes rapidly. a book on the subject isnt going to change the dynamic nature of linux.

    --
    -- john
    1. Re:tips in the book. by skillet-thief · · Score: 1

      Yes, it is a bit of an odd approach: saying, ah, at last the book is here, now we get some up to date information! A HOWTO should be more up to date, or will be a few months from now. Books have this reputation of not being updated very often once they are published.

      However, I agree that it is very refreshing to find the right O'Reilly book on any given subject, rather than flailing around the net looking for info. Books still have their place, I guess, even for geeks.

      --

      Congratulations! Now we are the Evil Empire

    2. Re:tips in the book. by mr.+methane · · Score: 1

      This has been an area of difficulty when implementing Linux on fairly important servers (i.e. the kind my boss will know about when it goes down)

      I've used both native hardware support (Currently Dell's PERC option, but have used compaq's RAID controllers too) with excellent luck - but little in the way of "how do I make sure the array is healthy?"

      My servers are in a colo facility that's normally only visited a couple of times a month, so a beeping server or a red LED doesn't help much.

      I've also used software RAID in linux (at least the mirror variety, not striping) with no problems.. but I've never had to recover from a crash, so I don't really know if it's working, do I? :)

  9. /boot / on RAID 1? by mj01nir · · Score: 4, Informative

    "all /boot and / partitions must be on a RAID-1."

    With raidtools, at least, /boot must be RAID1, but / can most assuredly be RAID 5 (or, I presume, any of the other RAID levels). I have this running on an ol' RedHat 7.0 box:

    Hunk 'o fstab:
    /dev/md1 / ext2 defaults 1 1
    /dev/md0 /boot ext2 defaults 1 2

    Similar hunk 'o raidtab
    raiddev /dev/md0
    raid-level 1
    nr-raid-disks 2
    chunk-size 64k
    persistent-superblock 1
    #nr-spare-disks 0
    device /dev/sdb1
    raid-disk 0
    device /dev/sda1
    raid-disk 1

    raiddev /dev/md1
    raid-level 5
    nr-raid-disks 3
    chunk-size 64k
    persistent-superblock 1
    #nr-spare-disks 0
    device /dev/sda6
    raid-disk 0
    device /dev/sdb6
    raid-disk 1
    device /dev/sdc5
    raid-disk 2

    *Shrug* Wonder what the context of that quote was within the book?

    --
    the no .sig .sig
  10. Not getting the point. by blair1q · · Score: 1, Insightful

    The learning curve on most Wintel software is on the order of the time needed to search through half a dozen menus to find the right command.

    Trying to make everyone be an expert before they can operate their machine is how operating systems die.

    1. Re:Not getting the point. by laughing_badger · · Score: 1
      The time taken to achieve a result similar to what you wanted to do is order of the time needed to search through half a dozen menus. This isn't systems administration, it's voodoo. What were the side effects of what you just clicked?

      I concur with your real point - that the documentation for various parts of Linux could be better, as could the average UI design. But I don't complain about it, since I haven't (yet) raised a finger to help.

      --
      Help children born unable to swallow - www.tofs.org.uk
    2. Re:Not getting the point. by blair1q · · Score: 1

      You didn't help with Windows, either, and I bet you bitch about that.

    3. Re:Not getting the point. by Anonymous Coward · · Score: 0

      Huh? This isn't targeted at the public... If you don't even know what RAID is, you probably don't need it.

      Most Winders users = Don't need it. Most home Linux users = don't need it.

      Servers and workstations = pretty nice thing to have RAID for, but then again, you don't often find a 13yr old girl downloading Britney Spheres songs to her personal 2.4 TB RAID array, either.

    4. Re:Not getting the point. by Anonymous Coward · · Score: 0

      > You didn't help with Windows, either, and I bet you bitch about that.

      He couldn't/can't help with Windows (disregarding the "Shared Source" program; you still can't make changes, not even there), so he has a right to bitch about something he had to buy, but has no rights to fix until MS deems it fixworthy.

    5. Re:Not getting the point. by blair1q · · Score: 1

      How many people being sold Linux have the ability to contribute? How many would have been there to write the documentation for the copy they were buying? And if they wrote it, would they need to write it?

      Anyone has the right to complain about anything, regardless of their contribution to it. Nobody will buy Linux twice if they find it hard to use. Linux won't be a viable competitor for Windows unless people adopt it for life.

  11. multipath? by Anonymous Coward · · Score: 2, Informative


    Does this book talk about the md driver's
    multipath personality?

    This is the most poorly documented part of the
    md driver.

    if you read the raidtab man page ("man raidtab")
    you will find _no_ mention of multipath whatsovever.

    Yet, the md driver can do mulitpath (well, failover) if you set it up right.

    It has limitations though... You can't install to multipath devices, or boot from them (lilo/grub, the various distributions installers don't understand md multipath) and, if an hba fails in such a way that interrupts are not generated...commands just go out to lunch... then md won't notice anything is wrong, and so won't failover. Also, it does nothing to notice if the failover path is actually working, so if that path fails you won't have any notice that redundancy is lost....

    Well, multipath is not RAID, so maybe this book
    doesn't cover it, but any book on software RAID for linux should probably cover all the features of the md driver.

    I will be interested to see this book.

  12. Hardware IDE Alternatives / LVM by thefoobar · · Score: 5, Interesting

    I've stepped away from the software RAID idea on my boxes, due to the availability of cheap hardware RAID, such as Promise's SX4000. It will do hardware RAID 5 for four+ drives and has a SDRAM slot for cache expansion. Coupled with LVM, it ended up being a good solution for me, as I had both the reliability, and good volume management if I wanted to combine arrays.

    The problem I've had with the software RAID is reliability and expandability. It is a pain in the ass if you lose a drive in the array, and it is next to impossible to add a drive (other than a stand by drive) to your existing RAID 5 setup.

    Aah, opinions...

    --
    ------------------ D. A. Davenport: http://www.firebin.net
    1. Re:Hardware IDE Alternatives / LVM by _aargh · · Score: 1

      You might want to check out raidreconf (http://unthought.net/raidreconf/ which will allow you to add disks (although it's rather slow) to a RAID-0 or RAID-5. I cover this in the book, to a certain degree.

      I do agree though, you hit on some issues with the md driver. There have been some recent discussions on linux-raid about how to help integrate RAID and LVM in the context of EVMS and other user space tools. I think that by this time next year, a lot of the mess/overlap between the two will be cleaned up.

      One careful consideration with ATA RAID is that many of the controllers are not really hardware RAID. I don't think this is the case with the SX4000, but many low-end ATA RAID controllers (especially the on-motheboard flavors) are just software RAID in disguise.

      Derek Vadala

  13. Re:Why bother with software RAID? by pravel · · Score: 2, Insightful

    Software RAID, excepting mirroring a pair of drives, sucks. Period. The performance hit is not worth the return. Ever do stripping in software? Worse, RAID 5 in software? It sucks. You could spend a few $ and get hardware RAID and not only actually get better performance but not be concerned that some corruption in your OS that is managing that RAID will affect the data stored on it.

    It sucks on your hardware. When you use fast SCSI disks and have fast CPU(s), software RAID is much faster then (very expensive) hardware RAID solutions. The chip on your hardware RAID card (usualy ARM) can't be faster than CPU.

    Regarding trust, you should trust (open source) software RAID more than proprietary firmware.

  14. Pity the newbie by vasqzr · · Score: 3, Funny



    Please pity the poor newbie who religiously follows the instructions in the book but fails to read until the end.


    On the other hand, pity the newbie who cracks a book open and starts setting a server up page-by-page.

  15. Re:Why bother with software RAID? by Rick.C · · Score: 1
    Another problem with software RAID is the depencency on the OS and its configuration files. You lose your OS, you lose your RAID.

    Several years ago I set up a RAID-5 with Win NT-4 Server. It worked well enough (there were only two users) until NT-4 tanked and I had to re-install the OS. [pffft!] No more RAID-5 array.

    Yeah, there were Resource Kit hacks for getting it back, but it was a real pain.

    Software mirroring with NT-4 was almost as tricky to recover from if the primary copy died. If the mirror died, though, it was a piece of cake.

    --
    You were 80% angel, 10% demon. The rest was hard to explain. - Over The Rhine
    "Math in a song is good."-Linford
  16. Linux? by Amsterdamn+Vallon · · Score: 0

    The availability of cheap and expensive raid solutions for linux as well as good documentation like this book will no doubt help linux and open source to gain more acceptance in the enterprise.

  17. Re:The average power user... by bunyip · · Score: 2, Interesting

    RAID level 01/10 is both expensive *and* pointless

    Well, maybe for the average power user, but not the real power users. Pretty much every stock exchange, airline reservations system, credit card switching system in the world uses mirroring and striping. Operating systems such as HP's Non-Stop Kernel (from Tandem) and IBM's Transaction Processing Facility (TPF) work this way and run these mission critical systems.

    Why? I/O throughput and redundancy in applications that can't afford to fail. The disks aren't expensive compared to the rest of the system and even less expensive than the downtime.

    These aren't Linux systems, but as Linux scales up there will be times when it will necessarily copy from mainframe-class systems.

  18. Re:Why bother with software RAID? by ybmug · · Score: 4, Informative
    I think the Linux raidtools can help quite a bit with this problem:

    (From the raid howto)

    4.7 The Persistent Superblock

    Back in ``The Good Old Days'' (TM), the raidtools would read your /etc/raidtab file, and then initialize the array. However, this would require that the filesystem on which /etc/raidtab resided was mounted. This is unfortunate if you want to boot on a RAID.

    Also, the old approach led to complications when mounting filesystems on RAID devices. They could not be put in the /etc/fstab file as usual, but would have to be mounted from the init-scripts.

    The persistent superblocks solve these problems. When an array is initialized with the persistent-superblock option in the /etc/raidtab file, a special superblock is written in the beginning of all disks participating in the array. This allows the kernel to read the configuration of RAID devices directly from the disks involved, instead of reading from some configuration file that may not be available at all times.

    You should however still maintain a consistent /etc/raidtab file, since you may need this file for later reconstruction of the array.

    The persistent superblock is mandatory if you want auto-detection of your RAID devices upon system boot. This is described in the Autodetection section.

  19. Re:The average power user... by Anonymous Coward · · Score: 1, Informative

    I beg to differ.

    After having four hard drives die and losing various amounts of data, I purchased two 100GB drives and made 6 RAID1 partitions using about 90GB, and a 20GB RAID0 partition with the remainder.

    The security of a number of RAID1 partitions for backup is a nice feeling to have since a drive failure can't wipe out my data now.

    The RAID0 space is scratch space, so it doesn't matter if mtbf is reduced--there's nothing important permanently stored there.

    You did realize that you don't have to have the entire drive use the same RAID level...

  20. Re:Why bother with software RAID? by Anonymous Coward · · Score: 3, Informative

    Windows software RAID (of any type) sucks, that doesn't necessarily apply to Solaris or Linux (in which I've used both, Solaris tends to be a little bit of overkill in many cases, but if you need it you need it).

    As far as IDE channels, many many motherboards these days have about 4 ide channels (mine does, and it's not even NEW) 4 ide channels can make a good raid. My linux RAID 5 (software) is pretty transparent and read speeds are noticable faster. This is even MORE true if you put in the EVMS patches from IBM and use the GUI tools to create and manage RAIDS without even editing /etc files (infact, the IBM EVMS stuff doesn't even use config files, it doesn't need them.. ) Just a few tips for the curious. (I use Gentoo, so I don't have to add these patches.)

    Hardware RAID is marginally, not always better. For one thing, you are limited to the idea of RAID that you board manufacturer believes in.. It's not always what you need. CPU power? On any machine faster than 1ghz you never even notice. 2ghz and software RAID is invisible. Yes, software RAID sucks on windows (due to the stupidest fucking volume/RAID managing service I've ever used), but it's viable almost everywhere else.

    Sometimes that extra few hundred dollars is an extra $20k (if you're doing lots of machines), if you can deal with the CPU hit is still more economical as long as it's reliable. Solaris/Linux RAID are ready for prime time, W2k's is still trying to figure it out. (For Windows boxes, please get hardware, save yourself headache.. thanks!)

  21. I'd buy the book if it could explain this... by Wee · · Score: 3, Interesting
    I've looked everywhere about why I keep getting these error messages on my Red Hat 7.3, 2.4.18-3 kernel RAID1 setup:

    Jan 26 04:15:02 hostname kernel: hdb: dma_intr: status=0x51 { DriveReady SeekComplete Error }
    Jan 26 04:15:02 hostname kernel: hdb: dma_intr: error=0x84 { DriveStatusError BadCRC }

    I've looked all over the place for the answer, google, mailing list archives, Usenet, local Linux friends, etc. and haven't been able to find a definitive answer. It's like nobody really knows what that error messages really means.

    Newsgroups suggested bad cables, so I replaced those (twice, once with brand new cables bought specifically for the purpose). Some info suggested the drive or the drive's controller was failing, so I replaced it. Other info pointed to my IDE controller, so I installed a new one dedicated only to the RAID pair. I saw info that said the raid tools were to blame, and to see if the errors go away when the mirror is broken. No dice. Other info I found suggested that it was the IDE drivers in the kernel and that the messages were nothing to worry about unless I was seeing data corruption. I'm not seeing corruption so I'm left with this option.

    If the book can shed some light on the error message voodoo one sees with Linux's IDE driver, then I'll buy it. I'd pay double what they're asking, even.

    -B

    --

    Ash and Hickory, straight-grained and true, make excellent bludgeons, dandy for the cudgeling of vegetarians.

    1. Re:I'd buy the book if it could explain this... by Alan · · Score: 2, Informative

      When I've gotten that error it has meant that the drive itself is heading towards the great hardware graveyard in the sky. Since it's raid1 you should be able to simply put in a new /dev/hdb and all should be fine.

    2. Re:I'd buy the book if it could explain this... by YetAnotherDave · · Score: 1

      I've seen those errors on 3 drives over the years, and all 3 have failed within a month of starting to see them.

      Check your backups... :)

    3. Re:I'd buy the book if it could explain this... by LNX+Flocki · · Score: 1

      This is actually described in the help text of the kernel's CONFIG_IDEDISK_MULTI_MODE config option. Say yes to "Use multi-mode by default" in the "IDE, ATA and ATAPI Block devices" tree and recompile your kernel. The errors should disappear.

    4. Re:I'd buy the book if it could explain this... by Anonymous Coward · · Score: 0

      bad disk. i mean come on. bad crc means your data was read and didnt agree with the crc. this is what you get for using ide. move along, buy another disk, and let real operating systems and software do the raid.

    5. Re:I'd buy the book if it could explain this... by dentar · · Score: 5, Informative

      Dude, that's hardware. Turn off the dma on your drives with hdparm.

      hdparm -d 0 /dev/hdb

      You might also have to turn off 32 bit mode:

      hdparm -c 0 /dev/hdb

      Of course, this will slow things down.

      Be sure everything's jumpered correctly.

      Also, of course, I'm not responsible if you fry your data!

      --
      -- I am. Therefore, I think!
    6. Re:I'd buy the book if it could explain this... by Wee · · Score: 1
      When I've gotten that error it has meant that the drive itself is heading towards the great hardware graveyard in the sky. Since it's raid1 you should be able to simply put in a new /dev/hdb and all should be fine.

      Well, data safety is the reason I have RAID. Trouble is, this is the replacement drive on /dev/hdb. The first had the same problem, which is why I was looking for controller/cable/driver issues.

      I'm tempted to go buy a real RAID controller card and get away from software RAID. Problem is the Linux drivers are usually pretty strange. I like being able to upgrade my kernel, for instance.

      -B

      --

      Ash and Hickory, straight-grained and true, make excellent bludgeons, dandy for the cudgeling of vegetarians.

    7. Re:I'd buy the book if it could explain this... by ThePurpleBuffalo · · Score: 3, Informative
      If the drive is fairly new, it may be SMART capable. Go and install http://www.linux-ide.org/smart/smartsuite-2.1.tar. gz.
      This can be done with (as root):

      wget http://www.linux-ide.org/smart/
      smartsuite-2.1.tar.gz
      tar -xzvf smartsuite-2.1.tar.gz
      cd smartsuite-2.1
      make
      make install

      You might get some non-fatal type errors. The makefile doesn't always work for setting up the rc.d scripts.

      Now run:

      /usr/local/sbin/smartd
      /usr/local/sbin/smartctl -a /dev/hda

      I'm assuming the bad disk is /dev/hda, but change it to suit your needs. If you get some errors, then SMART may not be enabled, so you'll need to run:

      /usr/local/sbin/smartctl -e /dev/hda

      Anyway, when you run smartctl with the -a, it will tell you all about hardware failures and whatnot. For more info on the codes it returns, go to this page: http://www.ariolic.com/activesmart/docs/smart-attr ibute-meaning.html

      I hope this helps

      Beware TPB

    8. Re:I'd buy the book if it could explain this... by Chocolate+Teapot · · Score: 2, Funny
      Nice one. You just managed to post a question on /. in the hope of eliciting technical help, qualifying it with an unconvincing statement that you might even buy the book

      I can't wait for a review of a book about Gentoo (1.4rc2) installation so that I don't have to camp out on irc.openprojects.net everytime GCC segfaults on my Athlon MP :)

      --
      Modest doubt is called the beacon of the wise. - William Shakespeare
    9. Re:I'd buy the book if it could explain this... by Wee · · Score: 2, Informative
      Dude, that's hardware. Turn off the dma on your drives with hdparm.

      You know what? The other drive in the RAID pair (/dev/hdd) had DMA off, while /dev/hdb had it turned on. I don't know why that was the case. Perhaps my late night fiddling resulting in some sort of fat fingering (wait... that sounded really bad). Anyway, I decided to do some tests by copying about 150MB of MP3s to my array while setting DMA to either on or off.

      With DMA on/off (regardless of which drive has DMA on or off), I get the errors. With it set to off/off, I don't get errors, and the array is slower than a wounded prawn and a huge CPU hog (the copy takes around 50 seconds and the load avg hovers around 4.50). I don't care about slow since this is an NFS/Samba server and CAT5 is my bottleneck. The CPU load I do care about since the box does other things besides simply serve files. With DMA set to on for both drives, I also don't get the errors, which is very cool. The copy takes around 10 seconds and the load avg is about 0.70. All to be expected, since DMA gives quite a performance boost. But it's good to know I can turn it on.

      Looks like my issue was with wacked DMA settings, and not the hardware going bad. So thanks for getting me to take another look! I probably ought to go buy the RAID book now...

      -B

      --

      Ash and Hickory, straight-grained and true, make excellent bludgeons, dandy for the cudgeling of vegetarians.

    10. Re:I'd buy the book if it could explain this... by Anonymous Coward · · Score: 1, Interesting

      Well, First off I haven't read the above posts becasue they've been modded away, and secondly set your HD to 15 heads (not 16) this can be done by modifying the little jumpers between the data and power cables (see manufacterer's notes on your specfic config) again YMMV. I've had the same issue numerous times on diffrent distros (MDK 8.0, 8.1, 8.2 and RH 7.1,7.2, 8.0) I only suppose it's a flaw in the driver or kernel than again I didn't make the software so my guess is as good as any of the other techies reading this post. You may thank both maxtor and IBM for this one.

    11. Re:I'd buy the book if it could explain this... by Alan · · Score: 1

      A couple of thoughts:

      - have you tried putting the hard drive in another linux box and seeing if the same errors show up
      - have you tried diddling with the dma/hdparm settings. I know some controllers have "issues" with dma
      - Are there actual errors, trouble getting data, slow performance, etc? This could be random warnings thrown out by the driver that may not mean that there is anything disasterously wrong (wild guess).

    12. Re:I'd buy the book if it could explain this... by Wee · · Score: 1
      Nice one. You just managed to post a question on /. in the hope of eliciting technical help, qualifying it with an unconvincing statement that you might even buy the book.

      Dig those knee-jerk accusations, man.

      I've got a Linux RAID setup, it's been giving me errors for a while. I read the book review, and was wondering if maybe the book had any info about those errors, since no online source I could find did. After all, the problems are most definitely related to the drives being in a RAID pair because they don't have problems otherwise. So I composed a wool-gathering post about wondering how much detail could fit in 245-odd pages, and whether or not the book was worth it.

      Then I read what I was about to post and judged it to be completly useless, uninformative, and uninteresting. So I added a question as to whether or not anyone had actually read the book, and could they tell me if it had info about the errors I was seeing. That was basically useless as well, so I pasted in an actual error (in order to be specific and get away from some lame "uh, I have RAID and it has errrors... can the book help?" question; it was also easier to copy-n-paste than explain what the error was), explained my situation, and said I'd buy the book if it could help me. Turns out it probably wouldn't be able to, which is exactly what I wanted to know.

      Anyway, there was the rational behind my post. Anything else you'd like me to explain to you?

      -B

      --

      Ash and Hickory, straight-grained and true, make excellent bludgeons, dandy for the cudgeling of vegetarians.

    13. Re:I'd buy the book if it could explain this... by Wee · · Score: 1
      have you tried diddling with the dma/hdparm settings. I know some controllers have "issues" with dma

      Turns out that the error isn't actually related to RAID at all. I mean, it is. The drives don't have errors when used outside a RAID setup. Put 'em back into a mirrored pair, and I start getting errors. But the problem is really caused by Linux's software RAID, per se.

      You are exactly correct about the DMA stuff, though. Someone else suggested it, and I found out that it was in fact DMA. I had DMA enabled on one drive and not the other. Take the drives out of the RAID pair, and they don't individually show errors. Put them together, errors. That's why I thought RAID was the culprit (and why the book might help).

      Thanks for the suggestions, BTW. Very much appreciated.

      -B

      --

      Ash and Hickory, straight-grained and true, make excellent bludgeons, dandy for the cudgeling of vegetarians.

    14. Re:I'd buy the book if it could explain this... by Peter+La+Casse · · Score: 1
      Unfortunately, the 84/51 errors don't mean just one thing. Well, they mean that a CRC error has occurred, but there are a variety of things that could cause it - maybe your IDE cables are too long for the ATA level that your drives are using, or maybe the cables come too close to your power supply, or who knows. Linux is considered to be cutting edge for automagically decreasing the ATA level when it gets too many of these, but for some applications that's not a good thing.

      Like other people have said, turning off DMA (or just dropping it to a low level, like UDMA-3) could solve your problem. Or it could be an impending failure.

    15. Re:I'd buy the book if it could explain this... by Wee · · Score: 1
      Right on, man. Thanks a bunch for the info! I'm going to install this for certain...

      -B

      --

      Ash and Hickory, straight-grained and true, make excellent bludgeons, dandy for the cudgeling of vegetarians.

    16. Re:I'd buy the book if it could explain this... by tzanger · · Score: 2, Informative

      I'm tempted to go buy a real RAID controller card and get away from software RAID.

      What do you think it'll buy you, honestly? I've got a half dozen software RAID1 systems out there, three of them being pounded mightily every day (10k-user ISP mail/radius servers) without so much as a squeak of complaint. Throughput is pretty decent as well:

      hdparm -tT /dev/md0

      /dev/md0:
      Timing buffer-cache reads: 128 MB in 0.87 seconds =147.13 MB/sec
      Timing buffered disk reads: 64 MB in 2.16 seconds = 29.63 MB/sec

      (yes I know it's not a thorough benchmark) -- So without taking the drive cache into play, I can hit about 30MB/sec sustained. If I had better drives I bet I could boost those numbers significantly. Probably close to the 90MB/sec I am seeing on my new server, single-drive stats.

    17. Re:I'd buy the book if it could explain this... by Zygo · · Score: 1

      You are getting CRC errors on your cables. That is what the error means.

      As for what is causing the problem...

      0. Bad cooling
      1. Bad cables
      2. Large noise source near the cable (e.g. power supply)
      3. Bad motherboard / IDE controller
      4. Bad brand of motherboard / IDE controller (simply replacing a brand X part for another brand X part will not solve your problem if all brand X parts are flawed by design)
      5. Bad cooling
      6. Bad drive electronics (especially if this happens on only the one disk)
      7. Bad cooling

      If your drives have temperature sensors, check them. Over 60 deg C means your disk is too hot, and will fail soon if it hasn't already. Below 30 deg C means cooling is not your problem. Temperatures in between will have different effects depending on the drive (some disks happy at 50 deg C, others flake out in the mid-40's).

      Most IDE controller chips need cooling too, but they often don't even have heat sinks let alone dedicated fans.

      --
      -- I avoid spam by accepting only OpenPGP encrypted or signed email at this address. Clear-signed, RFC2015, heck, even
    18. Re:I'd buy the book if it could explain this... by Wee · · Score: 2, Informative
      What do you think it'll buy you, honestly?

      Well, I had thought that my IDE controller was bad, the IDE drivers are wonky, the raid tools stuff was weird, whatever. I mean, I had two drives which both worked great when used by themsleves. I put them in a RAID pair, and I got errors. Turns out I had DMA disabled on one of them, but I was looking at Linux software RAID as the culprit. I thought buyiung dedicated hardware would isolate any problems. It was a last ditch, straw-grasping effort to tell the truth.

      I'm actually a fan of Linux's software RAID1. No "special" drivers, I can use any kernel I want, easy to set up, minimal performance impact, and fairly transparent to use. Now that I know why I was getting errors, and that it wasn't anything to do with software RAID, I'm fine with it.

      -B

      --

      Ash and Hickory, straight-grained and true, make excellent bludgeons, dandy for the cudgeling of vegetarians.

    19. Re:I'd buy the book if it could explain this... by Alan · · Score: 1

      Ah, interesting, good info to have :) Glad you go it worked out!

    20. Re:I'd buy the book if it could explain this... by RedHat+Rocky · · Score: 1

      Now, post your findings to mail list somewhere, so the next poor soul can benefit from your pain.

      --
      Anything is possible given time and money.
    21. Re:I'd buy the book if it could explain this... by DancingSword · · Score: 1

      Do Not, EVER, enable s.m.a.r.t. on a Promise controller-chip connected drive ( your machine will be killed dead. Period. No magic sys-req key, no anything. it crashes the PCI bus, and I've bothered the kernel developers about this until it was discovered that this was the case )...

      Notice that I said controller-chip, rather than only-their-RAID-controller-chips, mine's a straight ATA100 chip, and it kills the system the instant I try to enable smart in any device hooked up to it.

      yes I've lost stuff to that, and no I'm not happy.

      Promise's determination to prevent smart-capability on all devices connected via their chips is .. killing ( machine-integrity-killing, that is )

      --
      Messages to/for me ( in me journal )
    22. Re:I'd buy the book if it could explain this... by leiz · · Score: 1

      The problem may be that you're running the drive at a higher UDMA level than the controller can support. I had problems like this when I plugged an ATA-100 hard drive into an older computer with only an ATA-33 controller.
      The work around is either to turn the Maximum UDMA level down on the hard drive itself (with the dos utils provided by the manufacture) or turn it down in Linux using hdparm -X6n, where n =
      6 -> UDMA2 -> ATA-33
      8 -> UDMA4 -> ATA-66
      9 -> UDMA5 -> ATA-100 ... iirc, check with your manpage to make sure.

    23. Re:I'd buy the book if it could explain this... by Anonymous Coward · · Score: 0

      Funnier still is that the poster felt it necessary to 'sneak' a technical question into a Slashdot discussion for fear of turning it into a technical forum. And no back to the regularly scheduled flames.....

    24. Re:I'd buy the book if it could explain this... by Wee · · Score: 1
      Now, post your findings to mail list somewhere, so the next poor soul can benefit from your pain.

      I will certainly do that. This problem drove me nuts. Everyone said it was something different. Not unusual for a thing which has lots potential points of failure.

      I also posted an edited version of my original slashdot reply on my web site. Google should be by soon to pick it up. Every time I figure something weird like this out I put it up there. Get some decent referrers from google, too, so it's helping someone.

      -B

      --

      Ash and Hickory, straight-grained and true, make excellent bludgeons, dandy for the cudgeling of vegetarians.

    25. Re:I'd buy the book if it could explain this... by Chocolate+Teapot · · Score: 1
      Dig those knee-jerk accusations, man.
      Knee jerk? I just read it as i saw it, so yes, I suppose that could be construed as knee jerk. As a certain AC so eloquently phrased it, it did appear to be a rather cheeky way of posting a tech support request, but hey, if you can get away with it, then go for it. Personally, I think you should have been modded +5 Crafty-SOB :) Thankfully, whoever moderated my comment as 'Funny' had the insight to interpret my response in the spirit in which it was intended.

      This does, however, prompt an interesting question. Maybe /. could have a section devoted to technical queries?

      --
      Modest doubt is called the beacon of the wise. - William Shakespeare
    26. Re:I'd buy the book if it could explain this... by Wee · · Score: 1
      As a certain AC so eloquently phrased it [slashdot.org], it did appear to be a rather cheeky way of posting a tech support request, but hey, if you can get away with it, then go for it. Personally, I think you should have been modded +5 Crafty-SOB :)

      Crafty or not, my post really wasn't a thinly veiled tech support plea. I'd been up and down and back and even mapped that road. I pretty much considered my problem unsolvable since there appeared to be a million ways to solve it. I never figured I'd get any kind of answer here I hadn't gotten elsewhere the few dozen times I'd been looking. I'd googled, went through newsgroups, asked on mailing lists, asked friends that do lots of RAID stuff at work, asked folks at a LUG, asked around at school, and -- back to my point -- looked through more than a couple books. I got pretty much different answers every time, like I said, and none of them worked. So you can see where I'd rate my chances of getting an answer on Slashdot to be fairly slim. Besides, I could sneak in a tech suport question much better than that. :-)

      Looking back, I could see how you came to think I was trying to get cheap tech support. The trouble is, that I tend to err on the side of giving too much information. It's easy to start making something like that into a bug report. But my post was more of a "Yeah, well, if that tiny book is so great, does anyone know if it can explain this apparently unexplainable mystery? If so, I'm buyin' it..." I bought the book, BTW.

      Anyway, the horse has been well beaten by now.

      Thankfully, whoever moderated my comment as 'Funny' had the insight to interpret my response in the spirit in which it was intended.

      Heh... I get you. I just don't like accusations, and saw your reply as such. Maybe I saw it as questioning my intent (another pet peeve). I dunno. It's really no big deal; it's just a Slashdot post after all.

      This does, however, prompt an interesting question. Maybe /. could have a section devoted to technical queries?

      That's a good idea, but it might be hard to set up. You'd have to vet the people that did the answering, maybe like Google does it. The whole thing would hinge on the quality and speed of the answers. You might be able to have the people who ask pay a small fee (two bucks? 5? 10?) and then the people that answer get a small kickback, or a Slashdot subscription or discontinued Thinkgeek stuff or karma or something. They could make answering questions like tossing rings onto bottles at the fair: the more you get, the higher up the shelves you get to pick your prize from. Those that wanted to get way into it could, those that pitched in here and there would get a small bennie.

      I think it'd work. There are probably lots of folks who see the Slashdot membership as more clueful than most (I'm taking the Fifth on that issue). In any case, it's normally good to have a lot of eyes look at a problem and there are lots of eyes here if nothing else.

      -B

      --

      Ash and Hickory, straight-grained and true, make excellent bludgeons, dandy for the cudgeling of vegetarians.

  22. What about mirroring and IDE channels? by Anonymous Coward · · Score: 0

    I guess it's better to mirror across the channels as well (and my small tests seems to indicate that) but is it so?

    Peder

  23. Newsgroups, FAQs, and on-line docs in general. by Slartibartfast · · Score: 4, Insightful

    While I'm certainly a proponent of "dead-tree" documentation, I have to take a moment to disagree with one of the statements made -- I'm sorry, but newsgroups, while perhaps containing out-of-date info, are (if it's a good newsgroup) capable of letting you know the current state-of-affairs. This is substantially -less- true with books. Case-in-point is Samba: it's *DARN* hard to know, from the Amazon description (or wherever) which Samba books describe the current state (2.4 and above) of Samba, whereas the FAQs, newsgroups, etc., are fairly obvious on it. Bottom line? I'll take a good book any day, but when in doubt, I'll go with current info gleaned off the newsgroups and other on-line resources.

    1. Re:Newsgroups, FAQs, and on-line docs in general. by gunix · · Score: 0

      IMHO, I wonder what it would be like if people started to use a "wikipedia" solution instead of mailinglists, newsgroups. Perhaps with an option to get modifications of the wikipedia sent to you in email?

      --
      Evolution of Language Through The Ages: 6000 BC : ungh, grrf, booga 2000 AD : grep, awk, sed
    2. Re:Newsgroups, FAQs, and on-line docs in general. by nolife · · Score: 1

      I have found newsgroups and Google (was DejaNews) to be about the best source for information for specific issues and errors. Web pages are fine but most related to specific problems are mailing lists archives and they are not easy to follow the threads or filter out older potentially less acurate information.
      You do have to read each possible solution with a grain of salt. Maybe the issue was not exactly the same or maybe they think it is fixed but the problem is now masked or they changed 10 things at once, I had this issue with trying to find help with my Promise UDMA controller on older kernels. When using Google to search usenet it is a good idea to list the results by DATE and not RELAVANCE (default). This will weed out some of the older information which may not be accurate anymore. A good example is for Samba which has quite a few recent changes when participating in an Active Directory environment. With certain software packages being so dynamic, a book will ever only be able to provide a building block to future success.

      --
      Bad boys rape our young girls but Violet gives willingly.
  24. BIOS utilities by tmark · · Score: 4, Interesting

    Why, the author asks, do makers of controller cards put all their BIOS utilities on DOS floppies which require us to find a DOS boot disk? Seriously, how many of us carry around DOS boot disks nowadays?

    Well, given Dell's recent announcements, I suppose fewer and fewer of us will be doing so.

    But really, the author's point is so moot that it's embarassing: if it's my job to maintain a RAID array, and the utilities are on DOS floppies, of course I'm going to have access to a DOS boot disk. So what ? Just how hard is it to carry such a thing around, and why is this is a worthy thing to rail about, in a book about RAID ? If the author wastes too much time talking about stuff like this, this book can't be that useful - arggh, I've wasted too much of my own time already.

    1. Re:BIOS utilities by Havokmon · · Score: 1
      Why, the author asks, do makers of controller cards put all their BIOS utilities on DOS floppies which require us to find a DOS boot disk? Seriously, how many of us carry around DOS boot disks nowadays?

      But really, the author's point is so moot that it's embarassing: if it's my job to maintain a RAID array, and the utilities are on DOS floppies, of course I'm going to have access to a DOS boot disk. So what ? Just how hard is it to carry such a thing around, and why is this is a worthy thing to rail about, in a book about RAID ? If the author wastes too much time talking about stuff like this, this book can't be that useful - arggh, I've wasted too much of my own time already.

      I thought it was an issue last week, when I was at a customers site, and needed one to flash a BIOS on an old pentium. Google is your friend : "dos bootdisk" reveals bootdisk.com.

      I had more problems trying to boot off my new Asus A7V333 with Promise's 'RAID LITE' crap. The drives are found, but individually..I ended up using ataraid... but that just doesn't seem right. (Note: I've had a Promise Ultra 66 RAID running for two years now - installing the driver 'just worked'. But not with this 'Lite' verison)

      --
      "I can't give you a brain, so I'll give you a diploma" - The Great Oz (blatently stolen sig)
    2. Re:BIOS utilities by Zygo · · Score: 1

      DOS floppies? All the BIOS utilities I've seen (other than the ones inside the actual BIOS, and stand-alone bootable disks) seem to require Windows NT.

      --
      -- I avoid spam by accepting only OpenPGP encrypted or signed email at this address. Clear-signed, RFC2015, heck, even
  25. Re:The average power user... by diablobynight · · Score: 1

    Ummm...Sir...you greatly misjudge the value of raid zero and I suggest you do more research before making any comments like this again. With the right drives, striped across two seperate IDE channels, there is a noticeable performance increase

    --
    Anonymous Cowards - Oh God, How I hate you
  26. Re:Why bother with software RAID? by incripshin · · Score: 2, Funny
    Ever do stripping in software?

    That's striping. Why am I even bothering posting this? Maybe if my class wasn't cancelled, you wouldn't have to read such a worthless post.

    incripshin

  27. I don't agree that it sucks by diablobynight · · Score: 1

    But based on the fact that Hardware RAID for IDE drives has come down so much. I am not sure why you would use software.

    --
    Anonymous Cowards - Oh God, How I hate you
  28. RAID on Linux. by grub · · Score: 4, Funny


    It's not that hard.

    - Power down the computer
    - Remove cover
    - Blow out all dust and insect husks
    - Spray in RAID
    - put cover back on for 15 minutes.
    - Remove cover again
    - blow out insect husks.

    --
    Trolling is a art,
  29. Re:Why bother with software RAID? by 13Echo · · Score: 3, Informative

    On a modern machine, software IDE RAID is still beneficial. For striped arrays, the performance penalty on the host CPU is very minimal compared to the device performance. Of course, hardware solutions are easier to set up. If you buy a 3Ware card, or something similar, kernel support is a non-issue. But for home users that just want software to load faster or wish to have backups, IDE RAID is a cheap solution that performs very well.

    So, you say it sucks, I say it's fine. You say toe-mott-oh, I say toe-mate-oh. Hardware RAID is more than just a few $. It costs hundred(s) more than software RAID controllers. I've had software controllers that performed better than the current high-end SCSI drives at the time. I can attest to the fact that CPU load was a non-issue. Performance was excellent and was the most inexpensive way to gain speed. It's ideal for home users that aren't wanting to spend a fortune on limiting the swapfile chug.

    So, please define "sucks". Enlighten us softRAID users on what the problem is. Or is the problem really that you've spent your fortune on some overpriced SCSI drives that get outperformed by a couple of ATA100s?

  30. Re:The average power user... by swordgeek · · Score: 1

    Grrr.

    1) He already stated this fact. 40% I/O throughput increase. (actually quite a large variability, but it's a usable number)

    2) Read the subject line! He said, "THE AVERAGE POWER USER..." Now I read that as meaning the home Linux geek/developer who likes messing with the guts of their system. Companies use RAID0 all the time, or more often RAID1+0. RAID5 is equally common, implemented in hardware. This is not what he's talking about. This is not the target of his comment.

    Sigh. Sorry to rant, but every follow up to this article has neglected this point.

    --

    "People who do stupid things with hazardous materials often die." -- Jim Davidson on alt.folklore.urban
  31. yeah well by Anonymous Coward · · Score: 0

    I once had to install chinese win95 and chinese ie and chinese office... and I dont speak chinese. I barely speak my native language of english......

  32. Re:The average power user... by notanatheist · · Score: 1

    I for one know one user who striped his IDE drives on a RedHat box, very happy man he now is. Achieving over 90Mb/s throughput compared to the normal measly 40Mb/s saves him a lot of time when working. Anything important is just backed up to his server. I myself spent much time trying to use hardware RAID on an Adaptec 1200A IDE controller but finally gave up and went software. I'm mirroring for safety and not for speed because I store at least a dozen linux iso's and all my .ogg files and it would REALLY suck to have that on only drive and watch it die. As a side note, it shouldn't matter what RAID level you use because real power users have more than one box. :)

  33. Re:The average power user... by cK-Gunslinger · · Score: 1

    RAID level 0 is pointless, increases IO throughput ~40%
    pfft.. 40% increase in IO throughput, that is useless.
  34. Re:The average power user... by Proc6 · · Score: 4, Informative
    The average power user has no use for RAID. - Really? That's funny, with drives growing exponentially in size and little to no way to back them up, as well as reliability going down, I'm starting to recommend and am seeing others implement RAID in their standard PC. In fact, last month's Computer Shopper had a 1-2-3 Step Guide on how to install a Promise Fasttrack. It's easy, and they demonstrated it. I think it will get more common. Drives are cheap, and no one wants to lose all of their porno in a drive failure.

    RAID 0 is pointless - gosh, I wish all the video editing studios out there knew this. They've been duped into believing 150 megs a second sustained has value. What morons.

    Too bad cheap RAID5 cards don't exist. - Hmm, you mean like the Promise SX4000 that costs $150?

    --

    I'm Rick James with mod points biatch!

  35. Re:Why bother with software RAID? by Lechter · · Score: 1

    Pardon my flame but:

    And, as a quite note; someone needs to remind IDE users that trying to do striping on the same IDE channel is stupid and if you need to have it explained why - then you are too stupid to have decided to use it in the first place.

    That's a really rude attitude towards other users. I'm glad that you realize that, and I'm sure your friends would be impressed by your vast knowledge of IDE RAID...if you hadn't driven them away by beating them about the head with it in the first place.

    The attitude of answering all questions with "You don't want to do that: it's stupid, and you're stupid for thinking about it" is utterly counter-productive to the business of an open forum like Slashdot. If that's your opinion, then you're welcome to it, but you don't impress the rest of us by airing it (poorly, I might add). Without any facts to back your opinion up, you leave the rest of us wondering if the performance problems you've encountered were due to your own inability (stupidity you might say) to configure software RAID efficiently.

    --
    credo quia absurdum
  36. Re:Why bother with software RAID? by gpinzone · · Score: 1

    No matter how fast your CPU is, you aren't going to beat a dedicated hardware RAID controller. Also, if you're going to spend the money for SCSI, why wouldn't you spend a little more and go with a hardware solution? That's like buying a BMW then "saving money" by adding the fog lights yourself.

  37. A better title... by Anonymous Coward · · Score: 0

    A better title for the book would be...

    RTFM: RAID - The F*cking Manual!

  38. RAID from the How-TO is not that bad by masteritrit · · Score: 1

    I recently installed raid out of the how-to and other information I googled for. I really did not have much problem with it. I took a basic configuration and then started playing with it to make it work the way I wanted. Seemed pretty intitive compaired to many other things out there to configure. As for why to use Software Raid? I had an old box lieing around with no HW raid but needed a non-production server as a sandbox, bingo I had one. This turned out to be a really good idea because soon after I built it one of the disks went bad and I was albe to save all my work.

  39. Re:Why bother with software RAID? by Enigma2175 · · Score: 3, Insightful
    Software RAID, excepting mirroring a pair of drives, sucks. Period. The performance hit is not worth the return. Ever do stripping in software? Worse, RAID 5 in software? It sucks

    Hmm, I get rather good performance from my IDE software RAID-5. As far as I can tell, reading from the buffers pretty much maxes out the PCI bus and I also get good performance for actual platter reads. Here are some quick numbers:
    (granted this is not an exhaustive benchmark)

    hdparm -tT /dev/md[0-1]

    /dev/md0:
    Timing buffer-cache reads: 128 MB in 0.74 seconds =172.97 MB/sec
    Timing buffered disk reads: 64 MB in 1.51 seconds = 42.38 MB/sec

    /dev/md1:
    Timing buffer-cache reads: 128 MB in 0.74 seconds =172.97 MB/sec
    Timing buffered disk reads: 64 MB in 1.68 seconds = 38.10 MB/sec

    Not spectacular, but certainly more than fast enough for my media server. Also probably better than I could do on a 68-pin Ultra Wide SCSI bus, even with multiple drives.

    --

    Enigma

  40. The real question by Anonymous Coward · · Score: 0
    Every time I read a positive review of a Linux book, I wonder how well it will sell. I've heard numerous horror stories from book publishers about how dismal sales of Linux books are, even in the case of excellent works.

    Perhaps what we need is more penetration of Linux into business settings, so people can buy books with their employers' money?

    --------------------
    Escape geekdom! I did.

  41. The Debian Woody/Sid 2.4 Kernel RAID 1 HOWTO by jamesbromberger · · Score: 1

    Link: Root raid 1 on Debian.

    Nuff said.

  42. I'll call bullshit on that one by beavis88 · · Score: 2, Insightful

    With disk drives steadily increasing in size, and backup options not keeping pace, everyone has a use for RAID 1. Frankly an extra 100 bucks on another drive is well worth it in comparison to the hassle of maintaining an ongoing backup process. I don't really care that I'm "wasting" a whole drive, since it's still going to be a ton cheaper than any RAID 5 solution.

    Ever ripped 500 CDs to MP3 format?

    Ever done it twice?

    I have, and never will again if I can help it...go RAID 1 go!

    1. Re:I'll call bullshit on that one by pyrotic · · Score: 1

      Ever typed "sudo rm -rf /"? Not RAID can save you from that mistake. Always keep backups - because human folly knows no limits.

  43. Harware RAID != Hardware RAID by xchino · · Score: 3, Informative

    That onboard Promise RAID controller you dished out the extra $50 for on that new motherboard is not going to get you a nice hardware RAID 5. AFAIK they can only do 1,0, 0+1, or 1+0. Also, I see people whining about software RAID as compared to hardware RAID. Running a striped set through software was nearly unfeasable a few years ago, but with the resources new machines have these days, the difference is almost negligable, as long as it doesn't have to fight for system resources. let's not forget software RAID is alot cheaper than buying a RAID controller.

    At any rate, taking the view that hardware RAID is always the solution and software RAID is never the solution is just bad sysadministration.

    --
    Everyone is entitled to their own opinion. It's just that yours is stupid.
    1. Re:Harware RAID != Hardware RAID by skeedlelee · · Score: 1

      Worse still it seems that a good 50% or so only do RAID 1 OR RAID 0, not combinations. Blech.

    2. Re:Harware RAID != Hardware RAID by lewiscr · · Score: 1

      Good point about Software RAID working well on modern systems.

      There are even times that you have to have software RAID. My work systems are all software RAID because we have 2 controllers. Controller 1 has a RAID 0 stripe set and Controller 2 has another RAID 0 stripe set. We then mirror those stripes. If a single controller, cable, drive, or drive cabinet power supply goes out, we can still get to the data. Can't do that with a hardware RAID card.

      Well, there are ways to do it, but they all involve intelligent external cabinates that present a RAID drive as a normal disk. That costs way more $ than work is willing to pay, and we still buy Sun hardware.

    3. Re:Harware RAID != Hardware RAID by spongman · · Score: 1

      yeah, RAID5 is a nice option, but when you can get RAID10 for about $120 bucks plus the price of 4 drives, why would you really bother with RAID5? I'd easily pay $120 for peace of mind, ease of setup and reduced CPU load.

    4. Re:Harware RAID != Hardware RAID by Anonymous Coward · · Score: 0

      I did this very thing for some reason when I bought my last Asus board. I'm not sure why I did that. Perhaps I thought I could just use the extra headers as plain IDE headers. Besides that, ATA RAID controllers limit you to one drive per channel. RAID5 requires >= 3 drives. Ie you can't do RAID5 with 2 drives.

    5. Re:Harware RAID != Hardware RAID by drsmithy · · Score: 1
      Controller 1 has a RAID 0 stripe set and Controller 2 has another RAID 0 stripe set. We then mirror those stripes.

      You should really stripe over mirrors, not mirror over stripes - more reliable.

    6. Re:Harware RAID != Hardware RAID by xchino · · Score: 1

      Becuase RAID10 is just RAID1+0. So it's simply a striped array with RAID1 segments. RAID10 only has the fault tolerance of RAID1. RAID10 is only a solution for those considering RAID1, but they need additional performance. It is in no way a replacement for a true RAID5 array.

      Also, you can get a hardware RAID10 Controller for about $50, so $120 is a ripoff.

      --
      Everyone is entitled to their own opinion. It's just that yours is stupid.
    7. Re:Harware RAID != Hardware RAID by lewiscr · · Score: 1

      Agreed. At the time, I didn't know how to use the tools (Veritas Foundation Suite) well enough to go outside the wizard. Now that I'm familiar enough, the wizard supports RAID 0+1 and RAID 1+0. We're planning an array rebuild, but these things take time. :-)

      Luckily, I'm only dealing with 28 drives, so we only have about 1 failure per year. Nothing the hot spares can't deal with.

  44. 3ware by Anonymous Coward · · Score: 3, Informative
    See 3ware's site. They have an excellent range of IDE RAID cards that are real in the sense that the processing is done by the card and not by your computer's CPU (unlike in the cheap RAID-on-a-motherboard kludges). They are Linux friendly too.

    Up until now I've bought only SCSI drives because heavy compiles (which I do a lot) just choke IDE down. I now have a 4 x 60 GB RAID-1 and it just screams. With a one time investment in a proper IDE RAID card with escalator scheduling, tagged queueing and big cache I still save a lot of money by being able to buy large but cheap IDE disks.

    1. Re:3ware by Anonymous Coward · · Score: 0

      Just curious, what do you mean by "heavy compiles"? Anything that is disk-access intensive?

    2. Re:3ware by Doubting+Thomas · · Score: 1

      The main problem I see with the 3ware cards is that they are all PCI 64. What do us poor slobs without 64 bit slots do?

      --
      Just because it works, doesn't mean it isn't broken.
    3. Re:3ware by Xformer · · Score: 1

      Example: any recent Linux kernel

      I'd classify a "heavy compile" as any that you can start, go for a coffee break, and come back before it's finished. On a decent machine, that is... most anything will compile slowly on a 486, for example :-)

      Granted, I just installed a 3ware-controlled array last night (RAID 5 w/ 3x60GB... hot spare going in soon), and very satisfied with it so far, but I haven't tried a kernel compile with it yet.

      --
      All I want is a kind word, a warm bed and unlimited power.
  45. Re:Why bother with software RAID? by Anonymous Coward · · Score: 0

    You must be from america. Land of the Lazy, Home of the apathetic. go to your damn class.

  46. Re:Why bother with software RAID? by gbjbaanb · · Score: 4, Informative

    the poster obviously doesn't know what he's talking about.

    a 'rubbish' 500Mhz CPU - 500,000,000 ops / sec
    a 5ms access time SCSI HDD - 200 ops / sec.

    so what if the CPU on the RAID card is a pathetic 100MHz job, it'll still be able to keep up with the data flow from the HDD, even when that data is being burst through.

    How much cache ram have you got on that RAID card is a better indication of performance improvements for your hardware.

  47. So the real question is why pay $40 for 10 pages by jj_johny · · Score: 1
    Last time I tried software RAID under Linux, it was less than optimal. (about a year ago) But the idea that somebody wrote a book about RAID under Linux and only spends 10 pages on software RAID is amazing - in a bad way. Hardware RAID as many have pointed out is the way to go if the state of software RAID has not progressed.

    And why would I buy this book or any book on RAID if I am going to use a hardware solution. If I have hardware then I am going to just make sure it has support & instructions for Linux and be done with it.

  48. Re:Why bother with software RAID? by Anonymous Coward · · Score: 0

    Exactly. If it is just a storage device, with relibility and stability a priority, software RAID could be a great option. The CPU is sitting twiddling its thumbs even under heavy loads, even if you throw in two 64bit PCI Gigabit Etherenet cards for data. Considering a three year old 500MHz Pentium III is a hand-me-down these days, your CPU will still be underutilized.

  49. What about BSD? by HogGeek · · Score: 1
    Do they cover BSD software RAID

    I think books like these should be topical oriented rather tha OS oriented.

    Or am I asking too much?

    1. Re:What about BSD? by HogGeek · · Score: 1
      Link didn't work...

      Vinum is the software/mod I know of

    2. Re:What about BSD? by Anonymous Coward · · Score: 0
      The LDP people are approachable. For instance the Multi Disk HOWTO (homepage)" covers Linux, Solaris, even DOS; very relevant to RAID.

      So check out the HOWTO and send out an email to the author of the HOWTO

  50. Re:Why bother with software RAID? by Anonymous Coward · · Score: 1, Interesting

    Do explain what *exactly* is wrong with Window's software raid features. Besides being made by your favourite company, Microsoft, that is.

    another 'biased-to-the-point-of-bigotry' post.

  51. Linux software RAID rocks. by Kludge · · Score: 2, Informative

    I get >160 Megabytes per second off my software striped drives, which is far faster than I've ever gotten off any hardware RAID.

    And I've found the RAID 5 overhead is nominal, and very reliable.

    1. Re:Linux software RAID rocks. by soupmaster · · Score: 1

      IIRC... It's my understanding that much of the RAID performance on x86 Linux comes from the MMX subprocessor. So it makes sense that we witness many claims of great performance.

      I've personally been using (at home) a handfull of IBM ServeRaid 3 cards from EBAY (~ $10) which work wonderfully. Native linux CLI tools and very functional Java GUI. Runs on powerPC. I'm surprised no one has mentioned them on this list yet. I don't know how IBM's performance stacks up against others, but I'm satisfied with it's linux support and backwards compatability.

      --
      - soupmaster
  52. Re:Why bother with software RAID? by Anonymous Coward · · Score: 0

    Ever do stripping in software?

    Yes. Back in the early 1990s I downloaded an EGA strip poker game. Software stripping was just not as good as the real thing.

  53. Re:Why bother with software RAID? by Anonymous Coward · · Score: 0

    If we're so damn lazy why do I get up and go to work for more than 40 hours a week while you pansy euros get your 36 hour weeks?

  54. Re:Why bother with software RAID? by pravel · · Score: 2, Informative

    No matter how fast your CPU is, you aren't going to beat a dedicated hardware RAID controller. Also, if you're going to spend the money for SCSI, why wouldn't you spend a little more and go with a hardware solution? That's like buying a BMW then "saving money" by adding the fog lights yourself.

    You are going to beat hardware controller, because the chip running your software RAID (P4 Xeon, 2GHz) is much faster than the chip on the hardware controller (arm, 100MHz). Your only limitation is the IO bandwidth, thats why you go with SCSI.

    Server manufacturers sell hardware RAID as expensive add-on, but they are not advertising any benchmarks showing speed advantage. Because there is none. Current controllers are just not good enough, can't keep up with speed advances of CPUs.

  55. Re:Why bother with software RAID? by Anonymous Coward · · Score: 0, Funny

    1 My first thought was, he lied in every word,
    2 That hoary cripple, with malicious eye
    3 Askance to watch the working of his lie
    4 On mine, and mouth scarce able to afford
    5 Suppression of the glee that pursed and scored
    6 Its edge, at one more victim gained thereby.

    7 What else should he be set for, with his staff?
    8 What, save to waylay with his lies, ensnare
    9 All travellers who might find him posted there,
    10 And ask the road? I guessed what skull-like laugh
    11 Would break, what crutch 'gin write my epitaph
    12 For pastime in the dusty thoroughfare,

    13 If at his counsel I should turn aside
    14 Into that ominous tract which, all agree,
    15 Hides the Dark Tower. Yet acquiescingly
    16 I did turn as he pointed: neither pride
    17 Nor hope rekindling at the end descried,
    18 So much as gladness that some end might be.

  56. Re:So the real question is why pay $40 for 10 page by daves · · Score: 1

    That's 10 pages about "booting" to software RAID. Not the same thing.

    --
    People who disagree with you are not automatically evil, greedy, or stupid.
  57. Software RAID on linux is REALLY easy by Kludge · · Score: 1

    I don't know what this writer is complaining about. Software RAID on linux is REALLY easily implementable from the FAQ. And secondly, the RAID mailing list (easily searchable) is filled with answers to all sorts of problems. And thirdly, Neil Brown, who wrote much of the kernel RAID software, is on the list and has always been very helpful. Three cheers for Neil!

    The original story sounds like someone who is trying to sell his book.

  58. Re:Why bother with software RAID? by rodgerd · · Score: 2, Interesting

    1/ Linux can rebuild RAID from on-disk information. NT 4 is deficient in this regard, it would seem.

    2/ Problem is worse with hardware RAID, because if I lose the card, I'm fucked. I either have to have spares, or wait on a controller. Never mind what happens if the manufacturer goes out of business.

  59. There are alternatives to HOWTOs by erroneus · · Score: 2, Insightful

    When I decided to set up a RAID under Linux, I recalled seeing an icon in my webmin. I used Webmin almost exclusively in setting up the RAID. I didn't need any HOWTOs in the process of setting up this thing.

    So while there are good collections of information out there, there are also very good tools out there with which to accomplish useful tasks.

    I think it's precisely that HOWTOs are rarely if ever needed with Windows stuff that it still has an edge over Linux where the masses are concerned. So it's nice that HOWTOs are out there, I think it's more important that good tools are out there that are easy and self explanatory.

    1. Re:There are alternatives to HOWTOs by Anonymous Coward · · Score: 0
      When I decided to set up a RAID under Linux, I recalled seeing an icon in my webmin. I used Webmin almost exclusively in setting up the RAID.

      This is a good method for learning how to do something. If I have a GUI tool that can generate a seemingly unusual config file for me, I'll use it the first time or two. Then I'll learn how to do it right (ie, CLI) from those examples. Even if you use a GUI config tool like Webmin or Linuxconf, you ALWAYS need to know how to do it by hand. One day you're going to be 5 minutes from a deadline with a boss breathing down your neck to fix something in a hurry. Only problem is X decided to pick that day to stop working. If you can fix it without the GUI, you're SOL. It's like a calculator. It's a very handy tool and what many people will use in their day to day lives but those people should never forget how to do long division in case their Casio breaks.

  60. Wow by Greedo · · Score: 1
    --
    Tuus crepidae innexilis sunt.
    1. Re:Wow by WestieDog · · Score: 1

      What's really interesting to me is that he is just barely in the top 1000! I need to dig up #1 and see what kind of book freak that guy is.

  61. Better title... by swordboy · · Score: 4, Funny

    I think that a better title for this book would be,

    RTFM: RAID - The Fucking Manual.

    --

    Life is the leading cause of death in America.
  62. Enterprise Volume Management System by Iakona · · Score: 2, Informative

    EVMS is IBM's version of RAID for linux. This is natively available on gentoo linux. I've been running it on a few boxes with great success. The utilities make it a lot easier to set up raid, lvm, etc.. Definately worth looking at for those interested.

    --
    I'm not a real doctor, but I recommend beer.
  63. HOW-TO WIKI by Anonymous Coward · · Score: 1, Insightful

    This post brings up an interesting topic. I too have found may how-to's and online resources available to be outdated. Has anyone setup some sort of Linux HOW-TO/Help Desk WIKI where information can be continually updated by the community? If not, I would be interested in hosting something like this personally. Input appreciated.

    -Anonymous Coward

    1. Re:HOW-TO WIKI by Anonymous Coward · · Score: 0

      LDP. IMHO though they need to be organized more like RFCs where an update officially makes an earlier version obsolete. I think a review process should also be used on LDP documents.

  64. Re:Why bother with software RAID? by JayJay.br · · Score: 2, Insightful

    Sorry, but there are some things to be taken into account here.

    First of all, some of today's controllers (such as the HSGs or HP Smart Arrays) are running on pretty good RISC chips. Moreover, they have good amounts of memory to use as read ahead or writeback cache, which do speed up I/O instead of sharing memory with the OS.

    About the speed of the controller's processor as compared to the main processor, just remember that, in today's standards, one SCSI channel could only work at 160MB/s, and, even if we needed one processor cycle for each byte to be read/written (we don't), we would only need a 160MHz processor to do the job.

    Well, come think about it, processors embedded in today's modern RAID controllers usually have a 64-bit data bus. This means that any transaction is 8 bytes long. Being the worst case in performance a RAID-5 write (which involves 4 I/O operations) we still get an average of 2 bytes per processor cycle.

    That's why RAID controllers don't come with fantastic processors -- there's simply no need to.

    We could also think of availability, but that would be another long issue, and hardware RAID wins almost in all cases (except for controller multiplexing), but the best reason you would have to think about software raid would be the cost.

    I could be wrong, though :)

  65. Re:Why bother with software RAID? by Anonymous Coward · · Score: 0

    Hey - just say "Windows mumble Sucks!" and it's worth 2 mods around here.

    He did mention the volume management, but failed to say if he was talking about NT4 or NT5 (which uses a version of the veritas stuff in his fav Solaris).

    I've never had a problem with NT RAID, but you'd better understand the recovery stuff before you need to. I imagine that's true everywhere.

  66. Re:Why bother with software RAID? by Anonymous Coward · · Score: 0

    Ultra SCSI is so 1997. FWIW, I get ~38 MB/sec reads off a single U2W patter, so I don't think your numbers are all that great.

  67. multiplatform by Mitchell+Mebane · · Score: 1

    All I want is a software RAID 5 array that I can use in both Windows AND Linux. Maybe it's possible. I dunno. I've never found any instructions.

    --

    The roots of education are bitter, but the fruit is sweet.
    --Aristotle
    1. Re:multiplatform by Sloppy · · Score: 1
      All I want is a software RAID 5 array that I can use in both Windows AND Linux. Maybe it's possible. I dunno. I've never found any instructions.
      Instructions: get another computer. Load Linux on it, set up software raid, make it a NFS and Samba server. There you go.
      --
      As copyright owner of this comment, I authorize everyone to defeat any technological measure which limits access to it.
  68. RAID-1 Backup *IS* the point by Anonymous Coward · · Score: 0

    > RAID level 1 is just a bit-for-bit backup system,

    That's exactly why it's good. It also increases your read speed by getting data from both drives.

    > and wastes 1/2 your disk capacity.

    I don't consider a backup to be a "waste". One extra hard drive is MUCH cheaper than your TIME, and it will take a LOT of time to deal with all the data you could lose if your single drive fails.

    My software RAID-1 rebuilds at 48M/sec, automatically, which is a lot faster than feeding in a stack o' CD-Rs, and cheaper than a bunch of DVD-Rs.

    (RAID won't protect against data corruption or accidental deletion, however -- you will just get mirrored corruption! So you need an additional backup strategy as well, just like always. Except the relatively common PC drive death won't bother you. I have seen a lot of people's drives fail over the years.)

    1. Re:RAID-1 Backup *IS* the point by zaft · · Score: 1

      I have a 20 GB tape backup unit, but RAID-1 is cheaper AND more convenient -- the disk costs about what the backup tapes for that size drive would cost!

  69. Re:Why bother with software RAID? by Anonymous Coward · · Score: 0

    I'm sorry, but I have to strongly disagree with that statement. Processors in hosts have certainly sped up in the past few years, but few of them will provide the same level of throughput as a dedicated HW RAID controller. The reasons?

    1, The host CPU has to run the O/S as well as the applications as well as manage the disks. This is a significant overhead.
    2, The HW controllers have dedicated ASIC's which not only offload the work from the CPU's but are also tuned specifically for that purpose. Much like using a GPU in a desktop for faster graphics.
    3, The HW RAID solutions will have a very tight, high performance O/S on board without all the cruft of a general purpose one.

    No tests that I have done with storage (and I have done plenty) have never shown software RAID to be faster. Mind you, this is with large expensive cabinets attached to mainly big iron systems. Your milage may vary on the desktop.

    At the end of day, I want the host to be spending all of its CPU cycles running an application, not having to manage peripherals too. The HW RAID controllers allow you to offload that work to a subsystem that is designed specifically for that purpose.

  70. You may have a point there... by Chocolate+Teapot · · Score: 1

    ...but I'm not sure how well it works with RAID arrays. The softly-softly approach may be fine with individual disks, but if you have to manage a small army of them then discipline and the threat of violence is the way to go. Just let them overhear you muttering something about magnets and they'll soon get their act together. If necessary, format one as an example to the others. They're a bit like kids really.

    --
    Modest doubt is called the beacon of the wise. - William Shakespeare
    1. Re:You may have a point there... by DancingSword · · Score: 1

      You, ah, reformat your kids periodically, to keep 'em in line?

      echh

      --
      Messages to/for me ( in me journal )
    2. Re:You may have a point there... by Chocolate+Teapot · · Score: 0, Offtopic

      Yeah! Wanna make somethin' of it?

      --
      Modest doubt is called the beacon of the wise. - William Shakespeare
    3. Re:You may have a point there... by DancingSword · · Score: 1

      Yeah, buddy: what fs you formatting 'em with?

      Eh?!?

      --
      Messages to/for me ( in me journal )
  71. I'm just moving to software RAID by Anonymous Coward · · Score: 0

    Granted it's on Windows 2000, but I just ordered a SIIG PCI IDE RAID controller and 3 30 gig IBM drives. Total cost: ~$250 or so. The PC runs tape backups for a small workgroup, and we just needed the extra insurance of having a pair of RAID 1 disks plus a spare. The simple SIIG controller can boot from the RAID disks and we don't need online-restores or hot swaps or the like.

    Software RAID is plenty good enough in the right situation.

  72. Re:Why bother with software RAID? by dubiousmike · · Score: 2, Informative

    As far as IDE channels, many many motherboards these days have about 4 ide channels (mine does, and it's not even NEW) 4 ide channels can make a good raid.

    Isn't that just 4 IDE plugs, but only really 2 IDE channels? RAID embedded in your motherboard is usually of the Promise variety and cheap hardware raid isn't much better than software raid. Tom's hardware has an informative article on the difference between hardware and software RAID and they reported that this is the case.

  73. Re:Why bother with software RAID? by Fulcrum+of+Evil · · Score: 1

    Server manufacturers sell hardware RAID as expensive add-on, but they are not advertising any benchmarks showing speed advantage. Because there is none. Current controllers are just not good enough, can't keep up with speed advances of CPUs.

    The main selling point for RAID on a server (at least for me) is ease of management. When you have something as basic as your drives, you'd rather not worry about driver incompatibility, problems with upgrades or anything like that. Just address the sucker as sda and be done with it.

    --
    "We returned the General to El Salvador, or maybe Guatemala, it's difficult to tell from 10,000 feet"
  74. Re:Why bother with software RAID? by Fulcrum+of+Evil · · Score: 1

    a 5ms access time SCSI HDD - 200 ops / sec.

    care to back that up? Sure, if you send the drive out to get random sectors and disable reordering, that will happen, but it doesn't work like that. You frequently get contiguous chunks of a MB or more, which don't suffer from the 5ms access time. How did you think SCSI disks hit 40MB/s sustained, anyway?

    --
    "We returned the General to El Salvador, or maybe Guatemala, it's difficult to tell from 10,000 feet"
  75. Fasttrak Sx4000 Linux RAID review by Sludge · · Score: 4, Informative

    You actually feel good about the Linux drivers that Promise gives you with the SX4000? I bought this card, and I wished I stayed away from it.

    I am using it with four 120gb IDE drives with 8mb cache. For starters, if you use anything but the sxcslapp program in Linux to configure the drive, your drives are corrupt. All of 'em. And, your bios will return corrupt information regarding them. This causes DOS not to boot (hard freeze), and Linux to produce keyboard smashings on boot. This is a known firmware problem, and I'll be damned if they have any flashes available, even though the card is four months old. I just checked before writing this review.

    Once I figured out that all the work had to be done with sxcslapp in Linux, I started building my RAID5, albeit with caution. Things here went pretty well, except a) performance sucked about as bad as a single drive and b) the closed source drivers rebuild the raid array with no warning if a drive fails and is replaced, even if the file system is mounted. So, this means that if you have a drive that bombs and you replace it, anything you write to the raid array will be wiped out. I could have used some notification.

    The Linux drivers are horrible. They are written in 'Engrish', and the documentation might as well have been written by someone who doesn't understand computers. "Select the remove drive from array option to remove a drive from array". This continues for all of the options in their menu-driven app.

    I am also forced to use Red Hat 7.3 for this. Great. I now have a cluster of Debian 3 servers I administrate and one Red Hat server.

    I would have returned the card if my reseller would have taken my money. It's about equally expensive to buy IDE add-on cards, or maybe a bit less, and the software RAID in Linux seems to be firmly documented. I've used RAID1 in software on servers before, and it works nicely.

    1. Re:Fasttrak Sx4000 Linux RAID review by entrigant · · Score: 1

      All of those problems are well know. Just doing a tiny bit of research on this card before throwing away all that money would have saved you a LOT of headaches. Don't go buy hardware you don't know anything about (reading what the maker of that card has to say means nothing). Come to think of it.. why did you NOT research such a pricey piece of hardware first? If you want hardware raid go with 3ware or adaptec. Promise always has been a waste.

  76. Re:Why bother with software RAID? by tzanger · · Score: 1

    hdparm -tT /dev/sda

    /dev/sda:
    Timing buffer-cache reads: 128 MB in 1.55 seconds = 82.58 MB/sec
    Timing buffered disk reads: 64 MB in 3.03 seconds = 21.12 MB/sec

    That's on a 5-drive HW RAID5 SCSI UW2 array... on a P2/233:

    # /old/usr/dpt/dptutil -L all
    DPTUTIL Version: 3.14 Date: 3/12/2001 LINUX CLI Configuration Utility
    DPT ENGINE Version: 3.14 Date: 3/12/2001 Adaptec LINUX SCSI Engine

    # b0 b1 b2 Controller Cache FW NVRAM Serial Status
    d0 -- -- DPT PM2654U2 16MB 3013 DPT V1.0 1B-001280 Optimal

    Physical View
    Address Type Manufacturer/Model Capacity Status
    d0b0t1d0 Disk Drive (DASD) WDIGTL WDE9180 ULTRA2 8726MB Optimal
    d0b0t2d0 Disk Drive (DASD) QUANTUM ATLAS_V__9_SCA 8754MB Optimal
    d0b0t3d0 Disk Drive (DASD) QUANTUM ATLAS10K2-TY092J 8758MB Optimal
    d0b0t4d0 Disk Drive (DASD) UNISYS 006904ST39173LC 8686MB Optimal
    d0b0t5d0 Disk Drive (DASD) UNISYS 006904ST39173LC 8686MB Optimal
    d0b0t6d0 Disk Drive (DASD) WDIGTL WDE9180 ULTRA2 8727MB Optimal

    d0b1t1d0 Tape Drive HP C1557A ----- Optimal
    d0b1t1d1 Jukebox HP C1557A ----- Optimal

    Address Capacity
    d0b0t6d0 8727MB Hot Spare

    Address Max Speed Actual Rate / Width
    d0b0t1d0 Ultra2 80 MB/sec wide
    d0b0t2d0 Ultra2 80 MB/sec wide
    d0b0t3d0 Ultra2 80 MB/sec wide
    d0b0t4d0 Ultra2 80 MB/sec wide
    d0b0t5d0 Ultra2 80 MB/sec wide
    d0b0t6d0 Ultra2 80 MB/sec wide
    d0b1t1d1 Ultra2 67 MB/sec narrow
    d0b1t1d0 Ultra2 10 MB/sec narrow
    d0b1t1d1 Ultra2 10 MB/sec narrow

    # Controller Cache FW NVRAM BIOS SMOR Serial
    d0 DPT PM2654U2 16MB 3013 DPT V1.0 1.2A 1.10/15I 1B-001280

    Address Manufacturer/Model FW Serial 123456789012
    d0b0t1d0 WDIGTL WDE9180 ULTRA2 1.30 WT7050494021 -XXXX--XXO--
    d0b0t2d0 QUANTUM ATLAS_V__9_SCA 0230 149023951887 -XXXX---XOX-
    d0b0t3d0 QUANTUM ATLAS10K2-TY092J DDD6 169028940164 -XXXX---XOX-
    d0b0t4d0 UNISYS 006904ST39173LC 6616 LMK413050000191900TH -XXXX--XXO--
    d0b0t5d0 UNISYS 006904ST39173LC 6616 LMB4300700001929H2DQ -XXXX--XXO--
    d0b0t6d0 WDIGTL WDE9180 ULTRA2 1.30 WT7050645361 -XXXX--XXO--

    d0b1t1d0 HP C1557A U709 ------- --XX---X-O--
    d0b1t1d1 HP C1557A U709 ------- --XX---X-O--

    Capabilities Map: Column 1 = Soft Reset
    Column 2 = Cmd Queuing
    Column 3 = Linked Cmds
    Column 4 = Synchronous
    Column 5 = Wide 16
    Column 6 = Wide 32
    Column 7 = Relative Addr
    Column 8 = SCSI II
    Column 9 = S.M.A.R.T.
    Column 0 = SCAM
    Column 1 = SCSI-3
    Column 2 = SAF-TE
    X = Capability Exists, - = Capability does not exist, O = Not Supported

  77. My limited experience with hardware RAID on Linux by Peter+H.S. · · Score: 5, Interesting

    3-4 years ago, when we decided to use hardware RAID on our Linux servers, we bought some DPT Smartraid V hardware RAID controllers. Unfortunatly DPT was bought by Adaptec some time after. Adaptec has been really good at getting the driver included in the kernel, but the takeover seemed to delay this proces, so the time in between was a rough ride.
    The lesson learned was, never have a production Linux system with (binary) drivers tied to a specific kernel or distro version.

    That said, we have been very happy with the controllers, and since at least two disks has died without warning, the expense has easely been worth it. Our systems are used 24/7/365, so every minute of downtime annoys somebody. RAID really makes me sleep better, restoring a server from a slow tapestreamer, at some ungodly hour, while people nervously checks in, asking when we will be up again, is something I really want to avoid too much of.

    YMMV, but I think hardware RAID still has an edge over software raid, mostly because I find it simpler to maintain in the long run.

    If you are into LVM's, FS tools, and software RAID, go to:
    http://evms.sourceforge.net/
    and _drool_. Future stuff for now on production servers, but nevertheless.

  78. Hardware raid by Sabalon · · Score: 1

    Tons of Dell's with the PERC (aacraid/megaraid) controllers.

    The nice thing about hardware raid is other than the driver for the scsi card, the OS thinks there is just one drive sitting there. No configuration on the OS side.

    Also, RAID is going before the OS even starts booting. If a disk dies, so what.

    Please correct me if I'm wrong, but if you have software raid and the disk the os/boot/raidconfig files are on goes, you have a dead box.

    1. Re:Hardware raid by prgrmr · · Score: 1

      Please correct me if I'm wrong, but if you have software raid and the disk the os/boot/raidconfig files are on goes, you have a dead box.

      Yes, you are wrong. If you are RAIDing your boot partition, you are doing RAID 1 (mirrors), and the boot sector and OS are on both drives.

      Any software that allows for RAIDing the boot partition to any other RAID type than mirrored is seriously broken.

    2. Re:Hardware raid by Sabalon · · Score: 1

      So, if hard drive A fails, will it automatically boot off B as if A never even existed?

      I suppose the bios could be a problem if using software raid on IDE's.

    3. Re:Hardware raid by Anonymous Coward · · Score: 0

      You are right, but the performance with the PERC cards is horrible. My testing with three 18GIG 15K drives turned up..

      hardware raid0 ~= 25MB/s
      software raid0 ~= 120MB/s
      hardware raid5 ~= 20MB/s
      software raid5 ~= 70MB/s

  79. 3ware by kangasloth · · Score: 1

    I'm adding my vote for 3ware. You can get an 8 port IDE card for less than $400 or an 8 port SATA card for under $500. Beware big IDE raids, cabling issues become a major pain. We ended up using 36" (out of spec) rounded ide cables for our last 1.1 TB raid. I'm hoping that next time, we can use serial ata disks and the forthcoming 3ware raid card with native SATA. Their current offering uses the same chips as the 7500 IDE raid controller, combined with SATA bridges.

    Do you really need hardware raid? These days disks are so big that you don't need RAID5 (and thus a beefy raid controller) unless you need an unholy amount of storage. For redunancy, RAID1 will do nicely, either in software or cheap hardware.

  80. Re:Why bother with software RAID? by Vantage · · Score: 1

    Many boards now have 4 IDE channels, I.E. they support 8 drives.

  81. Multiple Reads from different drives using RAID 1 by Anonymous Coward · · Score: 0

    Hun, I though if you have a RAID 1 mirroring software array running on linux, linux is smart enough to access different files from different drives. Muliple readers is something hardware raid can not do unless they have a special driver, and the os supports it. Writes take twice as long though.

    I use a software RAID 1 mirror array on a squid proxy cache box. I would guess that the multiple readers on different drives would increase the throuput for a web caching proxy server since web pages have so many little files.

  82. Re:Why bother with software RAID? by illumin8 · · Score: 1

    You know, the problem with RAID is that people tend to make general statements based on their own personal observation. You get a lot of "Software RAID sucks because it's slow" statements, and you also get things like "RAID 5 sucks", or "RAID 5 r0x0rz!"

    The thing to keep in mind is that these things are very subjective based on what your application is. Let's take for example RAID 5. If your application involves mostly reads, and very few writes, RAID 5 will perform very well because it has the ability to read in parallel across all the disks in the volume. However, if your application is very write intensive, or even worse, if your application does read-modify-writes, RAID 5 is a very bad choice because the parity has to be calculated or re-calculated for every write and you take a big CPU hit.

    My favorite type of RAID for any generic situation where I don't know too much about what the activity will be like is RAID 0+1. The cost can be prohibitive for smaller projects, but you get all the performance benefits of striping, plus the redundancy of mirrors. Just keep in mind that the more you know about the application that is primarily running on the box, the easier it is to make an intelligent choice about what type of RAID to use.

    --
    "When the president does it, that means it's not illegal." - Richard M. Nixon
  83. Re:Why bother with software RAID? by Anonymous Coward · · Score: 0

    Anecdotal, meaningless statistics.

    I don't understand the complaints against software RAID.

    Now, perhaps with RAID5, but with RAID 0 or RAID 1, it's not as if there's a whole lot of work for the CPU to do to imlement these schemes.

    Ages ago, on a I/O bound Data General Aviion, we took the main database disks, striped them with their software based system utilities (much like IBMs and others).

    We instantly, measureably, and Seat Of The Pants got a 50% increase in performance for this application.

    If your application is I/O bound and you have "spare cycles" in the CPU, then spending some of those extra CPU cycles to gain I/O performance is worth every command line switch necessary to set it up.

  84. Now go write the book... by pbuxton · · Score: 1

    E-mail the HOWTO writer, or locate a Linux Wiki and document those errors as being unmatched DMA settings or potential hardware failure. And leave a spam-proofed email address.

    1. Re:Now go write the book... by Wee · · Score: 1
      E-mail the HOWTO writer

      Done.

      -B

      --

      Ash and Hickory, straight-grained and true, make excellent bludgeons, dandy for the cudgeling of vegetarians.

  85. Bullshit! by Anonymous Coward · · Score: 0
    Dig that lame excuse, man.

    It was an blatant tech support request.

    You got the answer you were fishing for without buying the book. The top post should be modded -5 Lazy-SOB

    1. Re:Bullshit! by Wee · · Score: 1
      You got the answer you were fishing for without buying the book. The top post should be modded -5 Lazy-SOB

      I bought the book two hours ago, Einstein. And I'm betting that it doesn't have an answer to my original question; the book doesn't look large enough. So you're wrong. My post was not a blatant tech support request, no matter what you may believe. I think I explained myself well enough already, even though I didn't really have to.

      I normally don't bother replying to ACs, but if you wanna slam me, at least have the balls to put your name behind your words.

      -B

      --

      Ash and Hickory, straight-grained and true, make excellent bludgeons, dandy for the cudgeling of vegetarians.

  86. raidtab? MDADM's better, it can take care o'itself by DancingSword · · Score: 2, Interesting

    at O'Reilly, mdadm
    and, I'd recommend Enterprise Volume Management System rather than LVM ( Logical Volume Manager ), simply because LVM's seems to be being dropped as
    redundant ( ironic, that : ) as EVMS gets more effective, and I don't want the conversion-work from LVM to EVMS, if I can just do EVMS right now, see

    --
    Messages to/for me ( in me journal )
  87. Re: A "real" IDE RAID card. by Anonymous Coward · · Score: 0

    For IDE hardware RAID accept nothing less than the incredible 3ware (http://www.3ware.com) Escalade series of RAID cards.

    These things are AWESOME!

    The 7500-12 (parallel version) is relatively cheap since they came out with the 8500 (SATA version) series.

    Very good cards indeed.

  88. 64 bit slots optional by kangasloth · · Score: 1

    Plug the 64 bit controller into the 32 bit slot and let the PCI bus be your bottlneck. See their features under minimum system requirements, which specifiy 32 bit or 64 bit. Also, motherboard compatibility, which lists many chipsets without 64 bit pci.

    The reason we went with 3ware controllers last time was that we were maxing out the pci bus. Moving to a 64 bit card solved that problem. It's too bad 3ware didn't opt for 66 MHz PCI instead of the wider bus. I wonder how much this has cost them?

  89. Re:Why bother with software RAID? by spongman · · Score: 2, Insightful

    but the controller's CPU doesn't need to be that fast, most of the logic is in ASICs anyway. the key advantage to having a controller is that it handles all the drive processing and this reduces the amount of work your main CPU has to do. remember: accessing the drive is not all your machine is doing. also most high-end controllers have large memory caches that reduce the load on your system bus, and battery backup that is essential for data integrity during power-loss. for example, in a mirrored RAID situation a software implementation will have to do 2 DMAs per write, one to each drive. with a hardware controller you only need one DMA to the card, the card handles writing to the individual drives, and will often reorganize the order of the writes from its cache.

  90. Software/Hardware RAID by dusty123 · · Score: 1

    Both systems have their pros and cons, here are some points to consider (HWR=HardWareRaid, SWR=SoftWareRAID):

    - HWR with cheap controllers also stress the CPU as only parts of the RAID-Code is executed on the card.
    - In HWR, you can only RAID whole disks, not partitions.
    - HWR controllers need drivers - for some there are no Linux drivers, some are "alpha", some are not included with your favorite distribution etc.
    - Booting with SWR can be quite tricky
    - The Firmware of HWR controllers can be buggy - getting a fix is probably not that easy as fixing a bug in Linux SWR.
    - What happens, if your HWR-Controller fails and you cannot get a replacement? How do you get your data back? This is no problem with SWR.
    - Hotplugging is probably better supported with HWR solutions.
    - HWR is not necessarily easier to setup. Managing my Mylex DAC960 was a lot harder than setting up Linux SWR.

    I would not say that HWR is the only way to go in production systems. It depends somehow on the application. I think, SWR can be more secure in some way. Probably the performance will not be that good as a $1000.- HWR controller, but maybe it's "enough" performance. Why spend $1000 if you just don't need to?

    What about a Linux Firewall? RAID performance is no real issue here - but security for the logfiles is.

    What I would really like to see is how Linux SWR performs to various HWR solutions. There are some tests on HWR controllers on Tom's Hardware page, but it seems there are no thorough tests on Linux SWR.

    1. Re:Software/Hardware RAID by schon · · Score: 1

      What about a Linux Firewall? RAID performance is no real issue here - but security for the logfiles is

      This really isn't a viable argument - if you're really worried about security, you wouldn't be wasting time with RAID, you'd be sending your logs to a different box.

    2. Re:Software/Hardware RAID by dusty123 · · Score: 1

      You are right in this case. So this Firewall is indeed a bad example - but there are probably other applications where software RAID is suitable.

  91. Re:Why bother with software RAID? by Anonymous Coward · · Score: 0

    /dev/md2:
    Timing buffer-cache reads: 128 MB in 0.91 seconds =140.35 MB/sec
    Timing buffered disk reads: 64 MB in 2.19 seconds = 29.21 MB/sec

    That's 0+1 on UW scsi across 4 drives and two channels. I need to get some ata100 or u160..

  92. Re:Why bother with software RAID? by Anonymous Coward · · Score: 0

    Heh, I break my 40 hours on the third day of my 7 day work week... it's fun working for a start up, 2 hours drive (round trip) away from where I live.

  93. Re:Why bother with software RAID? by Drestin · · Score: 1
    The advantage of striping is nulified if you cannot read/write to your 2+ disks simultaneously. With IDE, any two devices on the same cable/channel are not accessed simultaneously like SCSI but one at a time. SO, if you are only reading and writing one at a time between two drives you lose the benefit of striping. Plus IDE requires the bus to stay busy from the time the command is issued until the data is returned. SCSI allows disconnects so the command can be sent, another command sent elsewhere and then data returned, without waiting for the data to issue that second command. SO, with SCSI you could send the read command to two (or 5 or 15) drives one right after the other and let the data arrive when it does.

    or put more simply; two IDE drives stripped on the same channel perform no better than two individual IDE drives joined as a single spanned volume.

  94. Re:Why bother with software RAID? by Drestin · · Score: 1
    Not true. I have never found a system that performed faster using software RAID than the same using a dedicated hardware RAID device. To use software RAID all the hard disk data and commands must move on and off the bus and into memory and into the primary CPU all the time competing with everything else the CPU is doing and the bus is doing and memory is busy shuffling around. With a hardware RAID device, 90% of which include a cache onboard, unload the CPU from doing any of the work. Memory is not tasked other than to transfer the actual data being manipulated and there is no waiting on otherwise busy bus or CPU lines. Additionally, all the commands are occuring between the controller and drives directly at a much higher speed, sometimes, than the bus itself. I mean, I'm using 14 Cheeta 15.3 drives with Ultra 320 interfaces. These are setup as 7 pairs of mirrored drives, each mirrored pair is part of a single stripe. The card I'm using has a 48 Mb cache and is connected directly to the bus (not a PCI card). The firmware for the card allows me to build and manipulate this array while the OS is running or before it loads. The overhead to manage 14 drives using software RAID is too high.

    Regarding trust; why should I trust open source anything? Even though I am a programmer, am I expected to read through every line of code and understand how it works enough so that... um... what? I can look for buffer overflows? So that if the software fails I can patch it myself? No, I think I'll trust the hardware manufacturer with millions in R&D and years of experience specifically aimed at RAID and drives. If my open sores RAID solution fails, will I have to wonder if some 13 year old norwegien kid's mom is going to let him reply to newsgroup messages after being grounded for downloading porn via IRC again?

  95. Re:Why bother with software RAID? by Drestin · · Score: 1

    Sheesh, a simple typo. Maybe if you weren't such a picky bastard you'd have some "class."

  96. Re:Why bother with software RAID? by Drestin · · Score: 1
    I say software RAID sucks because it delivers less performance than hardware RAID for not such a great difference in price. Lets look at it this way, you want to increase performance, that is your goal. OK, so you decide to strip two drives together. You do it using software then go and run your favorite disk benchmark. It is smoking fast. You compare it to a hardware RAID solution and, assuming you figured out your IDE channel conflict issues correctly, you find that you are not that far off the mark from hardware -- and you got it for free! Woo hoo! Oh wait, you didn't notice one little statistic you didn't think was related. CPU overhead! Using hardware RAID actually lowers your CPU utilization while access your drive(s/array). Using software RAID your CPU utilization goes way up. Worse, your PCI bus is in serious contention. Data headed to your sound card is suddenly bottlenecked behind all that noise from the RAID - and now your FPS game is slowing down because it can't fill the sound card buffers fast enough.

    If you just wanted to match the benchmark values of SCSI drives using software raid you might have come close - but in a real world application where your CPUs have to do more than just run the software RAID array - you'll find you've hit yourself hard.

    I don't spend a fortune on SCSI drives, I feel $250 is not bad to pay for a 15,000 RPM 8 MB cache Cheeta 36 gig drive. $250 for the fastest single drive on the planet? Sounds like a bargin to me. Now, let me put two of those drives on a $200 RAID card from Adaptec -- lets run that against your ATA100 7200 RPM 2 mb cache IDEs running on a serial interface. OUCH! "Sucks"

  97. Re:Why bother with software RAID? by spongman · · Score: 1

    more importantly than that, they can write to 4 drives simultanously, which is a big perf win for RAID10.

  98. Re:Why bother with software RAID? by drsmithy · · Score: 1
    Hmm, I get rather good performance from my IDE software RAID-5.

    The read speed on a (non-degraded) RAID5 should be identical to the read speed on a RAID0. It's the writes where RAID5 punishes you.

  99. Re:Why bother with software RAID? by gbjbaanb · · Score: 1

    yep, 1 operation can be 'get a contiguous chunk of a meg'. now, how does that affect the CPU load instead of RAM 'load'?

  100. complete waste by Britz · · Score: 2, Interesting

    I've just been through setting up a raid system. I set up a file server that automatically backs up data every week that the users on the network put on it via samba. Since I only want to show up at the place every 6 month or so to check on the server it needs to be bullet proof to the max and still cheap, because they don't have much money as social workers.

    I purchased a used p2 system with a stable mb and two ibm scsi drives on an adaptec controller. I installed Debian GNU/Linux stable and upgraded to the latest stable. Then I put up a softraid and opted for xfs in case of a power failure. I decided against an ups, because I hooked the machine up to the local power network, which is very stable, since the server lives in Berlin/Germany, and I wanted to save the cost.
    Then I moved the root filesystem over to the raid device. Up until now everything was documented very good, except for the fact, that I heard that reiserfs doesn't work with softraid and I didn't find that info on the net anymore. I would have taken reiserfs instead if I would have had a reliable source, such as the book, telling me that that is OK.
    The only thing I had problems with was how to make the system boot off the raid device. Here the howtos and man pages had contradicting stands on how to do this.

    I read this Slashdot article with some regret, because I thought it could have saved me a lot of trouble. But the only section that gave me trouble also seems to confuse the auther of the book. Now that is no help at all. So this book is a waste of time if You know how to use google, which I had to learn painfully fast getting into Debian :-(, since doku is the last thing those guys seem to think about.

    But since Debian is still by far the best system out there overall I have no choice. If You start to rely on seemingly simple things such as a reliable update of Your system with very low hassle then You are hooked.

  101. HOWTOS and comparisons by Anonymous Coward · · Score: 0
    How strange, the byline suggests he is about to compare the book with HOWTOs but end up not doing so.

    Anyway, I would also like to mention that the Multi Disk HOWTO (homepage) is relevant, includes layout examples and also a trouble shooting guide. A fault tree would of course be nice.

    The HOWTO also mentions that there are actually 2 different RAID systems available, do make sure you get the right one and the corresponding tools. Additionally it refers to a number of hardware RAID HOWTOs, of which there are many.

    And please, please send feedback. That HOWTO author actively asks for inputs, so why don't you?

  102. Re:Why bother with software RAID? by 13Echo · · Score: 1

    Speak for yourself. I'm saying that the CPU utilization is so low that it never impacted my gaming or anything else. The chips are hardware disk controllers. The only thing that is software controlled is the fact that the host CPU tells it to write to seperate channels.

    If I was running a P200, then yeah. I could see some sense in your argument. But modern day 1GHz+ CPUs don't even dent under the minimal load on the CPU, when processing instructions for the ATA RAID controllers. It's no worse than say- software controlled DirectSound mixing, or Winmodems.

  103. Re:Why bother with software RAID? by Anonymous Coward · · Score: 0

    Hmm I believe that Windows disk mirroring (RAID 1) is actually OK. Despite its dependancy on Dynamic Disks (bleh!) it works transperantly, and imposes little overhead on systems of current spec. If a disk fails, just pull it out and reboot. There is downtime, but it IS software.

  104. Re:Green Berets eat Jesus for breakfast by Anonymous Coward · · Score: 0

    "The Green Beret symbolizes all that America stands for" Like power over morality, disgard of basic human rights, blinding following orders of piles of shit pretending to be human beings, and generally using the U.S. Constitution as toilet paper?

  105. Re:Jesus Saves! by Anonymous Coward · · Score: 0

    Tell her to "Cancel my subscription to the resurrection. Send my credentials to the House of Detention. I have some friends inside".

    ALL HAIL KALIMA!!!!

  106. Promise SX8000...the king-o-ATA RAID by rindeee · · Score: 1

    I have started using the Promise SX and RX 8000 external RAID arrays and have nothing but the highest praise for them. For those who aren't familiar with them, they are self contained ATA RAID chassies with 8 hot-swap trays. Each drive is on its own ATA-133 controller and the RAID (0, 1, 3, 5, 10, 30, 50) is handled by an on-board RAID controller with expandable cache, etc (no software RAID). Hot-swap, hot-rebuild, hot-spare, hot-expand, even on the fly RAID level conversion. Connects to my servers via a U160 LVD cable and is treated as a really really big SCSI hard drive...no drivers required. The array is controlled in one of three ways: 1.) Onboard LCD display with soft-buttons, 2.) Serial console, or 3.) Some Windows utility (haven't used it). For exactly $4,025.xx I put together an SX-8000 with 8 Maxtor 200GB 7200RPM drives. Even comes with an LVD cable and a serial cable (for console work). Simply awesome and great bang for the buck. I haven't used the rack-mount version (RX8000) yet, but one is on the way. If you're in need of such RAID, I would highly recommend it. They also make a 4 drive version (RX/SX 4000) and I am told an RX/SX15000 is on the way.

  107. Correction by mccormick · · Score: 0

    When you mentioned 4x60GB RAID-1, I think you mean RAID-10. RAID-1 is mirroring between two drives. RAID-0 is striping, that is, the data is spread across two drives. RAID-1 with four drives isn't possible, but with RAID-10 (two pairs of mirrors combined), it is.

    --
    Pete