Home | Hardware | Internet News |Web Hosting |IT Management |Network Storage
LinuxPlanet
Search 
  Power Search | Tips 

 Front Door
 Discussion
 LinuxEngine
 Opinions
 Reports
 Reviews
 Tutorials
 News
 Technology Jobs

 Browse by subject.
Free Newsletter

Linux Planet
Linux Today
More Free Newsletters

Be a Commerce Partner


















internet.com
IT
Developer
Internet News
Small Business
Personal Technology

Search internet.com
Advertise
Corporate Info
Newsletters
Tech Jobs
E-mail Offers

Print this article
Email this article

   LinuxPlanet / Tutorials







Using RAID in Linux
Recovering RAID, Hot Upgrades, and Some Final Cautions

Alexander Prohorenko
Thursday, August 1, 2002 01:52:49 PM

Usually this is the best method to take for recovery.

  1. Restore system;
  2. Change "dead" disk;
  3. Starting system again;
  4. Typing
    
    raidhotadd /dev/mdX /dev/h(s)dY
    
    where X and Y - correspondingly, number of md-device and partition on the "new" disk;
  5. Waiting until array is automatically reconstructed.

"Hot" upgrades refer to the changing out of broken hard disk "on the fly", without stopping the server. This is a very useful ability, especially for servers where even a little downtime could means big trouble. This ability is often supported by expensive hardware controllers, but nothing prevents us from using it in software RAID.

But, if your RAID is IDE--forget about it, it's impossible. You can destroy your drive even with unstable electricity or just turning the machine on/off, because there is no such "bug trap" even in the interface. Beyond that, rescanning of IDE devices is absolutely necessary, and usually this can only be done with the BIOS of PC during booting.

With SCSI drives, it's a bit harder; but with special cable/disks/cutoff points and powerful controllers you canachieve a hot upgrade. But, before doing anything you should look through the hardware documentation from vendor, and check with the support team for the device if the docs aren't clear.

Finally, here are some very definite don'ts when working with RAID arrays:

  • Divide partitions included in a working array. Stop the array first. Otherwise it will be worse.
  • Execute fsck on some separated array partitions. You can easily asynchronize the array with many little and big problems and consequences. When you need to run fsck, first try to restore RAID with the utility ckraid with key --fix, and only then try fsck /dev/mdX, which will be more safe and efficient.

In general RAID is not that scary, if you look into it more deeply. Nevertheless, with all aspects of RAID, you need always remember simple precept: always back up your files!

« Back: The Mysteries of RAID

Skip Ahead

1 The Mysteries of RAID
2 Hardware vs. Software RAID
3 What are We Fighting For?
4 Counting... 0, 1, 4, 5!
5 What Are We Keeping There?
6 Setting It Up
7 Recovering RAID, Hot Upgrades, and Some Final Cautions





Linux is a trademark of Linus Torvalds.


internet.com home | search | help! | about us

Jupiter Online Media

internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and JupiterOnlineMedia

Jupitermedia Corporate Info


Legal Notices, Licensing, Reprints, & Permissions, Privacy Policy.

Web Hosting | Newsletters | Tech Jobs | Shopping | E-mail Offers