return to PRS Technologies website
|Replacing an HP/UX mirrored boot disk (no hot swap)|
Let us assume that the disk /dev/dsk/c1t1d0 has to be replaced.
1. After the disk has been replaced > into LVM Maintenance Mode:
ISL> hpux -lm
NOTE: As an alternative, if the system has to be brought up immediately, use the -lq option to allow the system to boot in the event that one of the disks is unavailable, resulting in a loss of quorum:
ISL> hpux -lq
If you boot into quorum mode you can do the following steps later, but you will not have the MirrorDisk-UX security for that time.
2. Use the vgcfgrestore command to restore the LVM configuration data from a configuration backup file to the physical volume:
# vgcfgrestore -n vg00 /dev/rdsk/c1t1d0
3. Activate the volume group for including any physical volumes that were previously listed as missing:
# vgchange -a y vg00
4. Use mkboot to place boot utilities and an AUTO file in the boot LIF area
# mkboot -l /dev/rdsk/c1t1d0
Use mkboot -a "hpux -lq" /dev/rdsk/c1t1d0 to allow the system to boot in the event that one of the disks is unavailable, resulting in a loss of quorum.
For HP-UX 10.20 (not updated to) and 11.X only:
# lvlnboot -r /dev/vg00/lvol3 /dev/vg00
For HP-UX 10.01, 10.10, and updates to 10.20 only:
# lvlnboot -r /dev/vg00/lvol1 /dev/vg00
5. Quorum mode only:
If you have booted into quorum mode in step 1, you need to synchronize the physical extents of each mirrored logical volume in the volume group. With vgsync, synchronization occurs only on the physical extents that are stale mirrors of the original logical extent.
# vgsync vg00
NOTE: The synchronization process can be time consuming, depending on the hardware characteristics and the amount of data.
6. Maintenance mode only:
Reboot your system into multi user mode.
NOTE: The synchronization process when the vg00 is activated can be time consuming, depending on the hardware characteristics and the amount of data.
7. Check successful completion by
# lvdisplay -v /dev/vg00/lvolZ
and finally by
# vgdisplay -v vg00