HP-UX HB v13.00 Ch-13 - LVM

HP-UX Handbook Rev 13.00 Page 38 (of 110)
Chapter 13 LVM
October 29, 2013
total space 103215616 bytes, free space 100076032 bytes
# lifls -l /dev/rdsk/c2t1d0s2 (to check LIF)
4. Write the contents of the AUTO file to the EFI partition:
# mkboot -a "boot vmunix" /dev/dsk/c2t1d0
# efi_cp -d /dev/rdsk/c2t1d0s1 -u /EFI/HPUX/AUTO /tmp/x;
# cat /tmp/x
(to check it)
NOTE: Specify -a "boot vmunix -lq" if you want the system to boot up without
interruption in case of a disk failure.
5. Initialize the LVM partition (s2) and add it to vg00:
# pvcreate [-f] -B /dev/rdsk/c2t1d0s2 (take care to use s2)
# vgextend vg00 /dev/dsk/c2t1d0s2
A. Mirror the LVs to the s2 partition:
# for i in lvol1 lvol ... lvol8
> do lvextend -m 1 /dev/vg00/$i /dev/dsk/c2t1d0s2
> done
B. Write the contents of the LABEL file, i.e. set root, boot, swap and dump
device:
# lvlnboot -r /dev/vg00/lvol3
# lvlnboot -b /dev/vg00/lvol1
# lvlnboot -s /dev/vg00/lvol2
# lvlnboot -d /dev/vg00/lvol2
# lvlnboot -v (to check it)
Boot Definitions for Volume Group /dev/vg00:
Physical Volumes belonging in Root Volume Group:
/dev/dsk/c3t2d0s2 (0/1/1/1.2.0) -- Boot Disk
/dev/dsk/c2t1d0s2 (0/1/1/0.1.0) -- Boot Disk