Technical article 105328

How do I replace my root drive or secondary drive that is mirroring root?

OpenServer 5.0.0OpenServer 5.0.2

Written · Last revised

Problem

My root drive is mirrored to my secondary drive and my root drive has failed. The mirror is no longer functioning. I do have the Virtual Disk Manager Release Supplement 1.1.0 installed. What are the proper steps to replace this drive and get my mirror functioning again? How do I replace my mirrored (secondary) disk should it fail?

Solution

Scenario 1:
REPLACING THE ROOT DRIVE (AND SECONDARY DRIVE)

1. Shutdown the system and remove the failed root disk.

2. Re-configure the secondary mirrored disk to have the same IDE or SCSI configuration as the root disk. If SCSI, jumper the secondary to the target id of the previous root drive. If you are using separate host adapters, move the secondary to the adapter and connector that the previous root occupied. It is now your new root drive.

3. Install the replacement secondary disk with the same IDE or SCSI configuration as the previous secondary disk.

4. If the replacement secondary disk has been used on another system, clear its partition, divvy, and timestamp tables before using it as a replacement. If SCSI, a low-level format is advised.

5. Boot up the system and place it in single-user mode. Run mkdev hd, putting in the same parameters for the host adapter type, bus id, target id, lun, and so on. This will bring you into fdisk. Fdisk the root drive to have the same size root partition, and the same partition number as the root drive.

Note: When asked whether to run divvy, choose "q" to quit or "n" for no. If you choose yes the mirror will fail.

6. Reboot the system and place it in multiuser mode. The system should recognize the replaced disk and start to re-create the data on the mirror. You can see the process running by typing the command:

ps -ef | grep dkconfig
-  You will see activity on the two disks until the process is
   completed.  The Virtual Disk Manager will continue to show the
   mirror as disabled until this process completes. If you are in
   the Virtual Disk Manager, you must exit it and upon completion
   of the process, re-enter it. Now the "disabled" message will
   be gone and by clicking on View==>Expand All, you will see the
   second disk labeled with parity.

7. In the Virtual Disk Manager, select "Re-create" from the Boot menu.

8. On the Select Mirrors screen, select the divisions whose division table entries you want to re-create. You will normally want to select "Yes" for all three divisions. Click on "OK" to make a new division table and masterboot block on the mirrored (secondary) disk. This will allow you to boot from it should your root drive fail.

Scenario 2
REPLACING THE MIRRORED DRIVE ONLY

1. Shutdown the system and remove the failed drive. Now begin at step 3 above and continue through step 8.

See also

Virtual Disk Manager Release Supplement 1.1.0 Release Notes

From the Xinuos technical article database, record 105328. Reproduced with permission. The original is at www.sco.com/ta/105328, 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.