Technical article 105462

How do I replace my Raid 5 failed disk and make my online spare a spare again?

OpenServer 5.0.0OpenServer 5.0.2

Written · Last revised

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 dkconfig

When 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.

From the Xinuos technical article database, record 105462. Reproduced with permission. The original is at www.sco.com/ta/105462, which is reachable but blocked from search engines. Xinuos marks this article against a retired product line. That refers to the product’s lifecycle, not to whether the advice still works — plenty of it still applies to running systems.

Next step

Need this fixed rather than explained?

Tell us the release, what the system runs and what it is doing. We will reply by email with what we would do next.

  • You deal with the people who do the work
  • No obligation, and no upgrade required before we will help
  • We tell you plainly if something is not worth doing

Send an enquiry

We reply by email. If a server is down, say so in the first line. You can also write to help@scoexpert.com.