HP-UX System Administrator's Guide: Logical Volume Management HP-UX 11i v3 (B3921-90053 September 2011) Transform used: ESS version 2.2

NOTE: When you stripe across multiple disks, the striped volume size cannot exceed the capacity
of the smallest disk multiplied by the number of disks used in the striping.
Creating a Mirrored Logical Volume
To create a mirrored logical volume, use lvcreate with the -m option to select the number of
mirror copies. To control how the mirror copies are managed, choose from the following options:
Strict, Nonstrict, or PVG-strict Extent Allocation
-s y Strict allocation (default)
-s n Nonstrict allocation
-s g PVG-strict allocation
Contiguous or Noncontiguous Extent Allocation
-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 97) and Administering Swap Logical Volumes” (page 101)
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
Common LVM Tasks 53