Technical article 109356

I mirrored my root disk and used the leftover portion for RAID-5. Now I can't boot off my mirrored disk.

OpenServer 5

Written · Last revised

Problem

I have installed the Virtual Disk Manager product and mirrored my root disk. I had leftover space on my root disk so I created a RAID-5 virtual disk that stripes data across a portion of my root disk, a portion of my mirrored disk, and a portion of a third disk I added. My root disk failed. I followed the release notes section entitled "Replacing a mirrored root or parity disk". (This is also available as ta105328 in the Technical Article database.)

However, I am unable to boot to multiuser mode. The following messages may also appear:

Warning: vdisk4: failed to read timestamp on piece2 Warning: vdisk4: piece2 is out-of-service Configuring virtual disks: vdisk vdisk2 vdisk3 vdisk4 fsstat: /dev/boot mounted Mounted /stand filesystem fsstat /dev/dsk/vdisk4 okay

Panic: HTFS: Fatal error reading bitmap block <some number> on HTFS dev vdisk (99/4)

NOTE: vdisk4 refers to the RAID-5 virtual disk created in this example. Since vdisk1, vdisk2, and vdisk3 are reserved for root, swap, and boot, vdisk4 is the first available virtual disk node. If other virtual disks had been created, my RAID-5 may have been other than vdisk4.

Cause

RAID-5 does not support switching the location of a piece within the array. By moving the mirrored disk to the root disk position, as necessary, to replace the failed root disk, the piece 2 of 3 of the RAID-5 array has been repositioned. Therefore, it is highly recommended that a RAID-5 array NOT be configured on a disk that is to be used in a Root or Mirrored (RAID-1) array. The reason the system is failing to boot to multiuser mode is that it cannot mount the RAID-5 filesystem.

Solution

See ta105328, "How do I replace my root drive or secondary drive that is mirroring root?", section "Replacing the Root Drive," steps 1-5 only.

Then take these steps:

1. While in single-user mode, comment out the entries in /etc/default/filesys for the RAID-5 filesystem.

2. Copy the existing /etc/dktab file to another named file.

# cp /etc/dktab /etc/dktab.orig

Now vi the /etc/dktab and remove all entries for the RAID-5 array, in this example, vdisk4.

3. Reboot to multiuser mode and let vdisk1 and vdisk3 rebuild to the new mirrored disk that had been added previously. Upon completion go to the Virtual Disk Manager, click Boot and Recreate. This will allow your new Mirrored disk to be bootable.

4. Now go to single-user mode (init 1) and move the /etc/dktab.orig to /etc/dktab. This will put the RAID-5 entries back. Now go to /etc/default/filesys and uncomment the lines you previously commented out for the RAID-5 array.

5. Shutdown and swap the mirrored and root disk again. Boot to multiuser mode and the RAID-5 array will rebuild. The filesystem will be mounted and accessible as the array is being rebuilt.

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