PROBLEM

A mirrored root hard disk has to be replaced. Each extent on this disk is mirrored to another disk.

CONFIGURATION

HP-UX 10.X, 11.X
MirrorDisk-UX

RESOLUTION

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
# mkboot -a "hpux" /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.

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.

# reboot

NOTE: The synchronization process when the
vg00is activated can be time consuming, depending
on the hardware characteristics and the amount of data.