Detailed steps of mirror Disk
1. Create a boot LVM disk that will be used as an image
# Pvcreate-B/dev/rdsk/c2t2d0
2. Add the hard disk to the current volume group.
# Vgextend vg00/dev/DSK/c2t2d0
3. Set as the boot disk
# Mkboot/dev/rdsk/c2t2d0
4. Test the correct auto file to the new lif area.
# Mkboot-a "HPUX-SCSI"/STAND/vmunix "/dev/rdsk/c2t2d0
5. mirror each LV separately
# Lvextend-M 1/dev/vg00/lvol1/dev/DSK/c2t2d0
# Lvextend-M 1/dev/vg00/lvol2/dev/DSK/c2t2d0
.....
# Lvextend-M 1/dev/vg00/lvol8/dev/DSK/c2t2d0
6. Update bdra Information
#/Usr/sbin/lvlnboot-B/dev/vg00/lvol1' start
#/Usr/sbin/lvlnboot-S/dev/vg00/lvol2' Switching
#/Usr/sbin/lvlnboot-v-r/dev/vg00/lvol3
7. Check that bdra is correct.
#/Usr/sbin/lvlnboot-r/dev/vg00
8. Check whether the image is correctly created.
# Lvlnboot-V
Boot definitions for volume group/dev/vg00:
Physical volumes belonging in root volume group:
/Dev/DSK/c2t2d0 (0/0/2/0.2.0) -- boot disk
/Dev/DSK/c1t2d0 (0/0/1/1.2.0) -- boot disk
Boot: lvol1 on:/dev/DSK/c2t2d0
/Dev/DSK/c1t2d0
Root: lvol3 on:/dev/DSK/c2t2d0
/Dev/DSK/c1t2d0
Swap: lvol2 on:/dev/DSK/c2t2d0
/Dev/DSK/c1t2d0
Dump: lvol2 on:/dev/DSK/c1t2d0, 0
9. Simulate hard disk failure, unplug a disk, replace it with a new one (with the same slot), and start
Isl> HPUX-is-SCSI 'hpux-is
10. Mount the File System
# Mount-
11. Restore LVM configuration information on the new Hard Disk
# Vgcfgrestore-N vg00/dev/rdsk/c2t2d0
12. re-create the startup and auto files
# Mkboot/dev/rdsk/c2t2d0
# Mkboot-a "HPUX"/dev/rdsk/c2t2d0
13. Change the VG attribute and synchronize the VG.
# Vgchange-A y vg00
# Vgsync vg00
14. Check whether the configuration is correct.
# Vgdisplay-V vg00
# Lvdisplay-V/dev/vg00/lvol1
# Lvlnboot-V