HP-UX System Administrator's Guide: Logical Volume Management (5900-3028, March 2013)

-C y Contiguous allocation
-C n Noncontiguous allocation (default)
Mirror Scheduling Policy
-d p Parallel scheduling (default)
-d s Sequential scheduling
Mirror Consistency Policy
-M y MWC enable (default, optimal mirror resynchronization during crash recovery)
-M n -c y MCR enable (full mirror resynchronization during crash recovery)
-M n -c n MCR disable (no mirror resynchronization during crash recovery)
For example, to create a 240 MB mirrored logical volume with one mirror copy, nonstrict allocation,
parallel scheduling, and no mirror resynchronization, enter the following command:
# lvcreate -m 1 -s n -d p -M n -c n -L 240 -n lvol1 /dev/vg01
TIP: To change the characteristics of an existing mirrored logical volume, use the lvchange
command. It supports the -C, -c, -d, -M, and -s options. For more information, see lvchange(1M).
Extending a Logical Volume
NOTE: Adding space to a logical volume does not automatically assign that space to the entity
using that logical volume. For example, if you want to add space to a file system contained in a
logical volume, you must run extendfs after extending the logical volume. See Administering
File System Logical Volumes” (page 96) and ??? for more information.
1. Decide how much more disk space the logical volume needs.
For example, you can add 200 MB of swap space, or an existing project might need an
additional 1 GB.
2. Find out if any space is available using the vgdisplay command. For example:
# vgdisplay vg00
--- Volume groups ---
VG Name /dev/vg00
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 8
Open LV 8
Max PV 16
Cur PV 1
Act PV 1
Max PE per PV 2000
VGDA 2
PE Size (Mbytes) 4
Total PE 249
Alloc PE 170
Free PE 79
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0
VG Version 1.0
VG Max Size 1082g
VG Max Extents 69248
The Free PE entry indicates the number of 4 MB extents available, in this case, 79 (316
MB).
Common LVM Tasks 53