HP-UX HB v13.00 Ch-13 - LVM
HP-UX Handbook – Rev 13.00 Page 28 (of 110)
Chapter 13 LVM
October 29, 2013
# lvcreate -n lvdata vg01
Now extend the LV onto a certain disk:
# lvextend -L 500 /dev/vg01/lvdata /dev/dsk/c4t2d0
Now you can use newfs to put a FS onto the LV:
# newfs -F <fstype> /dev/vg01/rlvdata
where fstype is either hfs or vxfs.
NOTE: Nowadays it is recommended to use a VxFS (=JFS) file system.
Modifying a PV / VG / LV
Modifying a PV
There are certain PV parameters that can be changed (see pvchange man page). A
frequently used parameter is the IO timeout parameter. This parameter tells LVM how
long to wait for disk transactions to complete before taking the device offline. This is
accompanied by POWERFAILED messages on the console. Certain disk arrays need a
higher timeout value than simple disks. To specify e.g. a timeout of 120 seconds do:
# pvchange -t 120 /dev/dsk/cXtXdX
The device driver’s default is usually 30 seconds. Setting the IO timeout to 0 seconds
restores this default:
# pvchange -t 0 /dev/dsk/cXtXdX
Modifying a LV
The most common modification task is the modification of the size of a LV. To increase
a LV from 500MB to 800MB do:
# lvextend -L 800 /dev/vg01/lvdata [/dev/dsk/c5t0d0]