HP-UX System Administrator's Guide: Logical Volume Management HP-UX 11i v3 (B3921-90053 September 2011) Transform used: ESS version 2.2
Table 16 LVM Command Summary (continued)
Description and ExampleCommand
Changes the characteristics of a physical volume:pvchange
# pvchange -a n /dev/disk/disk2
Performs a consistency check on a physical volume:pvck
# pvck /dev/disk/disk47_p2
Creates a physical volume be to used as part of a volume group:pvcreate
# pvcreate /dev/rdisk/disk2
Displays information about a physical volume:pvdisplay
# pvdisplay -v /dev/disk/disk2
Moves extents from one physical volume to another:pvmove
# pvmove /dev/disk/disk2 /dev/disk/disk3
Removes LVM data structures from a physical volume:pvremove
# pvremove /dev/rdisk/disk2
Saves the LVM configuration for a volume group:vgcfgbackup
# vgcfgbackup vg00
Restores the LVM configuration:vgcfgrestore
# vgcfgrestore -n /dev/vg00 /dev/rdisk/disk2
Turns a volume group off or on:vgchange
# vgchange -a y /dev/vg00
Changes the volume group ID of a physical volume::vgchgid
# vgchgid /dev/rdisk/disk3
Converts persistent device special files in a volume group to cluster device special files:vgcdsf
# vgcdsf /dev/vg10
Creates a volume group:vgcreate
# vgcreate /dev/vg01 /dev/disk/disk2 /dev/disk/disk3
Displays information about a volume group:vgdisplay
# vgdisplay -v /dev/vg00
Migrates volume groups from legacy to persistent device files:vgdsf
# vgdsf
Extends a volume group by adding a physical volume:vgextend
# vgextend /dev/vg00 /dev/disk/disk2
Removes a volume group from the system:vgexport
# vgexport /dev/vg01
Adds an existing volume group to the system:vgimport
# vgimport -v /dev/vg04
Modifies the configuration parameters of a volume group:vgmodify
# vgmodify -v -t -n -r vg32
Migrates a volume group to different disks:vgmove
# vgmove -f diskmap.txt vg10
153