Problem
The spare that I had configured in my Raid 5 array came online when
one of my disks failed. Now I want to replace my failed disk and
make the spare a spare again. Solution
Follow these steps:1. Wait for the spare to be completely brought online. While it is being brought online, there will be a lot of activity on the disks. To verify this, run the following command:
ps -ef | grep dkconfigWhen this process finishes the spare is completely online.
2. Do a proper shutdown of your system and replace the failed drive. Make sure it is configured the same way the failed disk was configured. For example, if it was SCSI and jumpered at id=3, do the same for the replacement disk and recheck termination.
NOTE: If SCSI, it is recommended you do a low level format of the disk prior to initializing it.
3. Reboot the system to single-user mode and re-initialize the new disk drive. Do this using "mkdev hd". You must partition the new disk the same way the failed disk was done. If, for example, this replacement disk is identical to the failed disk and you chose "Use entire disk for Unix" for the failed disk, do the same with this disk.
NOTE: Do not go into divvy when re-adding the drive. Choose "q" to quit.
4. Reboot the system to multiuser mode. The configuration should be the same as before. The failed drive will be OOS (out of service) and the spare will be online.
5. Run a restore on the virtual disk using the VDM GUI. Choose Disk->Maintenance->Slow or Fast restore. The OOS piece should be reinstated and the spare should become a spare again.
NOTE: A slow restore will take longer but use less system resources.