First, I should disclaim that this is going to be a brain dump of the resources and experience of a quick setup of Ubuntu 6.06 on a software raid based storage system. This may be less than ideal, but is doable and seems relatively solid as a system. First off, what is RAID (redundant array of independant/(*inexpensive) disks) So, several cheap hard drives put together in an “interesting” way. Now, increasing storage size isn’t something I’m too interested in, after all there are myriad other ways of expanding storage in a linux system (not to mention huge drives getting cheaper by the day.) My goal here is redundancy, I want to be able to lose a drive and still have the data, so RAID1 is what I’m setting up. We won’t get sidetracked into the other types.
But isn’t software RAID a lousy way to do it. Typically people sneer over the idea of software RAID because it’s making the CPU do SOMETHING ELSE. Yes, there are hardware raid controllers, (there are psuedo-hardware controllers too that still require *gasp* software…) But, for this purpose, I thing software RAID should do fine. This system won’t be a desktop doing any kind of heavy lifting where we would hope for responsiveness (video editing, 3d work, etc. etc. etc.) It will be sitting in a corner collecting dust while serving as a repository for backups and perhaps for some virtual machine images for “in a pinch” scenarios.
OK, so I put a 250GB drive as master on the primary IDE chain and another 250 GB drive as master on the secondary IDE chain. Why not SATA? (The system doesn’t have SATA, it’s a recycled system, yes I could have ordered it, but I COULD have ordered a card with hardware RAID too and dual SCSI drives.) Anyway, I had to put the cdrom on the secondary chain as a slave (to get the install done.) For this you’ll need the Ubuntu 6.06 alternative install cd. Now there are a couple of good how-to’s that are a bit outdated, but still relevant. One is text only dealing with ubuntu 5.10 and Debian 3.1, but a combination of that page and this one that they refer to should help (if for no other reason, than the screenshots on the second page linked.) I settled on 100MB partitions to house the /boot directory, 6GB for what would be Swap, ~40GB for what would become / and 100GB each for /home and /var…. probably too generous in some areas and I couldn’t decide whether /home or /var should have more (and I could have shuffled things around differently.) The MAIN point of this though is that BOTH drives need to be partitioned the same before going through the “software raid” setup which allows you to create raid arrays with the partitions you’ve made. So, I finished the process with md0, md1, md2, md3 and md4 (Again, this may not be ideal…. but it seems to work well.)
In fact, after the system got up and running it was more responsive than I expected (the install seemed longer than I had thought it would take.) But before long I was installing freenxserver so I could administer from the desktop. One issue I did run into is continuous errors in /var/log/messages regarding /dev/hdd (our good old cdrom drive.) I removed it from the system and things behaved wonderfully. (The errors were accompanied with sluggishness which is one problem with having a device share the IDE chain with one of the RAID drives.) So, at this point, I’m wondering about 1) an addon IDE card or 2) external (USB) optical drive for moving certain things off to disc.
Linuxdevcenter has a good article as an introduction to mdadm, which is the tool for administering the software RAID arrays. There’s another article like this on configuring raid from the command line (Post install)
And, there is a good writeup On SATA RAID here.
One thing to keep in mind is that RAID1 will NOT save you from a catastrophic failure (meteor deciding to land on your system/fire/stampede of wild elephants/etc.) But it will protect against a drive failure. (MDADM also has support for keeping a spare drive in the array to sync to in case one drive has a problem.)
The next thing I hope to do is test how the system responds to various changes (disk pull/ swap/etc.) But, I think that may take place inside a VM. Ubuntu’s (relatively easy) implementation of software RAID seems like it might be a good way to ensure a bit better drive reliability for even home users. Yes, probably power users, but still more approachable then it’s ever been for the home user.
Related PostsRelated Posts
- More reason to be cautious with Firefox plugins Again.... this article referring to an exploit related to the cross platform plugin capability in firefox, is a GOOD reminder to be cautious when looking at potential plugins to install for mozilla firefox. In fact, the advice is usually do NOT install software (including plugins) from untrusted sources. By all......
- Remote tech support with anything - would I do it? I've tried to ask myself if I'd trust someone enough to let them run a remote session on my own desktop to solve a problem. I think the answer is "it depends". If you think about it, I do tech support for home users quite a bit and they let......
- Ubuntu 8.10 Intrepid Ibex released today | ubuntu not yet profitable The newest release in the Ubuntu Linux series has escaped into the wild today. If you recall the last Ubuntu release was a long term support release and this one is intended to be a bit more "edgy" or in this case "intrepid". Download from Ubuntu, or read a review......
- What You Need From a WordPress Hosting Company Wordpress has taken over the world of websites and blogs, creating a simple and easy way for individuals get information out into the world of the Internet. The system gives users an incredibly easy platform to create the blogs, information, and news sites that they need to be successful. The......
- Environmental Benefits of Hybrid Electric Vehicles There are a number of environmental benefits associated with hybrid electric vehicles. Understanding what they are is one of the keys to getting the most out of your knowledge of these vehicles. Gasoline, when it is burned, is capable of producing large amounts of carbon dioxide, which is the major......
- The Many Benefits Of Choosing The Right SEO Software When you are planning to set up your business online and get the most of what the internet has to be at service, then you are just at the right time to commence your online business since a lot of people have been luxuriating for over a decade all the......
- Ubuntu Linux Software Raid – Replacing a Failing Drive
- More linux software raid fun
- Linux software raid notes
- Software raid fun…. device detection order
- Linux Software Raid Notes – Replacing Drives