HP-UX System Administrator's Guide: Logical Volume Management (762803-001, March 2014)

Table 17 LVM Command Summary (continued)
Description and ExampleCommand
Synchronizes stale logical volume mirrors:
# lvsync /dev/vg00/lvol1
lvsync
Changes the characteristics of a physical volume:
# pvchange -a n /dev/disk/disk2
pvchange
Performs a consistency check on a physical volume:
# pvck /dev/disk/disk47_p2
pvck
Creates a physical volume be to used as part of a volume group:
# pvcreate /dev/rdisk/disk2
pvcreate
Displays information about a physical volume:
# pvdisplay -v /dev/disk/disk2
pvdisplay
Moves extents from one physical volume to another:
# pvmove /dev/disk/disk2 /dev/disk/disk3
pvmove
Removes LVM data structures from a physical volume:
# pvremove /dev/rdisk/disk2
pvremove
Saves the LVM configuration for a volume group:
# vgcfgbackup vg00
vgcfgbackup
Restores the LVM configuration:
# vgcfgrestore -n /dev/vg00 /dev/rdisk/disk2
vgcfgrestore
Turns a volume group off or on:
# vgchange -a y /dev/vg00
vgchange
Changes the volume group ID of a physical volume::
# vgchgid /dev/rdisk/disk3
vgchgid
Converts persistent device special files in a volume group to cluster device special files:
# vgcdsf /dev/vg10
vgcdsf
Creates a volume group:
# vgcreate /dev/vg01 /dev/disk/disk2 /dev/disk/disk3
vgcreate
Displays information about a volume group:
# vgdisplay -v /dev/vg00
vgdisplay
Migrates volume groups from legacy to persistent device files:
# vgdsf
vgdsf
Extends a volume group by adding a physical volume:
# vgextend /dev/vg00 /dev/disk/disk2
vgextend
Removes a volume group from the system:
# vgexport /dev/vg01
vgexport
Adds an existing volume group to the system:
# vgimport -v /dev/vg04
vgimport
166 LVM Command Summary