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

B LVM Command Summary
This appendix contains a summary of the LVM commands and descriptions of their use.
Table 17 LVM Command Summary
Description and ExampleCommand
Extends a file system:extendfs
# extendfs /dev/vg00/rlvol3
Displays the limits associated with a volume group version:lvmadm
# lvmadm -t -V 2.0
Changes the characteristics of a logical volume:lvchange
# lvchange -t 60 /dev/vg00/lvol3
Creates a logical volume in a volume group:lvcreate
# lvcreate -L 100 /dev/vg00
Displays information about logical volumes:lvdisplay
# lvdisplay -v /dev/vg00/lvol1
Adds a mirror to a logical volume:lvextend -m
# lvextend -m 1 /dev/vg00/lvol3
Increases the size of a logical volume:lvextend -L
# lvextend -L 120 /dev/vg00/lvol3
Prepares a logical volume to become a root, swap, or dump area:lvlnboot
# lvlnboot -d /dev/vg00/lvol2
Merges split volumes into one logical volume:lvmerge
# lvmerge /dev/vg00/lvol4b /dev/vg00/lvol4
Migrate a logical volume to new disks:lvmove
# lvmove -f newdisks.txt /dev/vg00/lvol2
Daemon to handle online shared LVM reconfiguration, and pre-allocation of extents for
space-efficient snapshots:
lvmpud
# lvmpud
Decreases the size of a logical volume:lvreduce -L
# lvreduce -L 100 /dev/vg00/lvol3
Decreases the number of mirror copies of a logical volume:lvreduce -m
# lvreduce -m 0 /dev/vg00/lvol3
Removes logical volumes from a volume group:lvremove
# lvremove /dev/vg00/lvol6
Removes a logical volume link to root, swap, or dump:lvrmboot
# lvrmboot -d /dev/vg00/lvol2
Splits a mirrored logical volume into two logical volumes:lvsplit
# lvsplit /dev/vg00/lvol4
Synchronizes stale logical volume mirrors:lvsync
# lvsync /dev/vg00/lvol1
154 LVM Command Summary