Hot swap procedure for unattached physical volumes – HP 9000 rp5400 Servers User Manual
Page 116

2.
Use the following procedure to mirror the root disk:
a.
Create the new physical volume using the pvcreate command.
For example:# pvcreate -B /dev/rdsk/cXtXdX
b.
Extend the volume group to include the new physical volume using the vgextend
command:
For example: # vgextend /dev/vg00 /dev/dsk/cXtXdX
c.
The mkboot command must be run to make the device bootable.
For example: # mkboot /dev/rdsk/cXtXdX
d.
Use the mkboot command again to add the HP-UX auto-file-string.
For example: # mkboot -a "hpux" /dev/rdsk/cXtXdX
e.
Run lvlnboot with the following command: # lvlnboot -R
f.
Run lvextend to put a mirror into the replaced disk drive. It may take several minutes
to copy the original copy of the data to the mirrored extents. The logical volume(s) will
still be accessible to user applications during this operation.
For example:
# lvextend -m 1
OR
# lvextend -m 2
(for 3 way mirroring)
For example:
# lvextend -m 1 /dev/vg00/lvol4 /dev/dsk/cXtXdX
OR
# lvextend -m 1 /dev/vg00/lvol5 /dev/dsk/cXtXdX
Repeat this for each logical volume to be mirrored.
Verify that the mirror is bootable and AUTO file is correct.
For example:
# lifls -l /dev/rdsk/cXtXdX
OR
# lifcp /dev/rdsk/cXtXdX:AUTO -
g.
Verify that the mirroring is set up properly.
For example:
# vgdisplay -v /dev/vg00
# lvdisplay /dev/vg00/lol1 - lvol8
# lvlnboot -v /dev/vg00
Both disks should list as "Boot Disk" and both should appear in the lvol lists.
At this point the system will be fully functional.
Hot Swap Procedure for Unattached Physical Volumes
The following steps are an example of how to replace a HotPlug disk drive for unattached physical
volumes. This example assumes the disks are mirrored.
116
Removing and Replacing Components