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 2REPLACING THE MIRRORED DRIVE ONLY1. 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