 |
Managing the RAID
Commands for managing the RAID:
| Command | Use | | more /proc/mdstat | Check 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: - 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.
- Insert the new drive and reboot
- 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.
- Reboot the system (This will make sure the new partition table is loaded).
- 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
|
 |