Home E-Commerce Hosting Portfolio Reading Room Contact Us
Managing the RAID

Commands for managing the RAID:
CommandUse
more /proc/mdstatCheck the status of the RAID
/sbin/raidhotremove [RAID device] [Disk Device]Remove a disk partition from the RAID
/sbin/raidhotadd [RAID device] [Disk Device]Add a disk partition to the RAID

If a disk fails, to configure a new disk for the RAID, do the following:

  1. Make sure that the /proc/mdstat does not show any devices for the old drive. If it does, try raidhotremove to remove them. If that does not work, remove the drive and reboot the system and check again.
  2. Insert the new drive and reboot
  3. Use /sbin/cfdisk [device, either /dev/sda or /dev/sdb] to set up the partitions on the new drive. The partition should match the layout of the remaining drive.
  4. Reboot the system (This will make sure the new partition table is loaded).
  5. Issue /sbin/raidhotadd commands for each of the new paritions to add them to the RAID
    For example, use /sbin/raidhotadd /dev/md0 /dev/sdb1 to add the /dev/sdb1 partition to the md0 RAID device
Return to Reading Room
This entire site, including all materials presented within, is Copyright © 1999-2010 JAMM Consulting, Inc., All rights reserved.
JAMM Consulting, Inc. is not affiliated with JAMM Software, Inc. of Maryland
Problems with this page? Please notify webmaster@JAMMConsulting.com
 
Trademark Notices:
Obfuscate, ObfuscatePro, and jHTML are trademarks of JAMM Consulting, Inc.
All other trademarks are property of their respective holders.