on hp-ux 11.i v1
1. Add a bootable LVM disk. Create a physical volume using pvcreate with the -B option.
# pvcreate -B /dev/rdsk/c0t5d0
2. Add the physical volume to the existing root volume group with vgextend:
# vgextend /dev/vg00 /dev/dsk/c0t5d0
3. Use mkboot to place boot utilities in the boot area:
# mkboot -l /dev/rdsk/c0t5d0
Use mkboot to add an AUTO file in boot LIF area:
# mkboot -a "hpux -lq" /dev/rdsk/c0t5d0
Check the contents of the AUTO file with
# lifcp /dev/rdsk/c0t5d0:AUTO -
Alternatively, one could set the alternate boot path variable according to for example
# setboot -a 8/0/19/0.5.0
The hardware address of the disk that will become the mirror disk can be determined with 'ioscan -fnC disk'. To check, use setboot without any arguments.
If desired, activate autosearch and autoboot by
# setboot -s on -b on
4. Use pvdisplay -v to note the sequence of the logical volumes on the primary disk.
# pvdisplay -v /dev/dsk/c0t6d0
NOTE: In the following, the standard sequence lvol1, lvol2, lvol3, and so forth, is assumed.
Create mirror copies of the boot logical volume, primary swap logical volume, root logical volume, and other logical volumes as needed, in the correct sequence
# lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/c0t5d0
# lvextend -m 1 /dev/vg00/lvol2 /dev/dsk/c0t5d0
# lvextend -m 1 /dev/vg00/lvol3 /dev/dsk/c0t5d0
# lvextend -m 1 (additional LV)
Use pvdisplay -v to check the correct sequence of the logical volumes on the mirror disk.
# pvdisplay -v /dev/dsk/c0t5d0
5. Update all physical volumes in the volume group so that the logical volume become the root, boot, primary swap, or a dump volume when the system is next booted:
# lvlnboot -r /dev/vg00/lvol3 /dev/vg00
# lvlnboot -b /dev/vg00/lvol1 /dev/vg00
# lvlnboot -s /dev/vg00/lvol2 /dev/vg00
# lvlnboot -d /dev/vg00/lvol2 /dev/vg00
# lvlnboot -R
to recover missing links immediately.
Check with
# lvlnboot -v
hope it helps
The tongue weighs practically nothing, but so few people can hold it