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

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 /dev/vg00/rlvol3
extendfs
Displays the limits associated with a volume group version:
# lvmadm -t -V 2.0
lvmadm
Changes the characteristics of a logical volume:
# lvchange -t 60 /dev/vg00/lvol3
lvchange
Creates a logical volume in a volume group:
# lvcreate -L 100 /dev/vg00
lvcreate
Displays information about logical volumes:
# lvdisplay -v /dev/vg00/lvol1
lvdisplay
Adds a mirror to a logical volume:
# lvextend -m 1 /dev/vg00/lvol3
lvextend -m
Increases the size of a logical volume:
# lvextend -L 120 /dev/vg00/lvol3
lvextend -L
Prepares a logical volume to become a root, swap, or dump area:
# lvlnboot -d /dev/vg00/lvol2
lvlnboot
Merges split volumes into one logical volume:
# lvmerge /dev/vg00/lvol4b /dev/vg00/lvol4
lvmerge
Migrate a logical volume to new disks:
# lvmove -f newdisks.txt /dev/vg00/lvol2
lvmove
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 100 /dev/vg00/lvol3
lvreduce -L
Decreases the number of mirror copies of a logical volume:
# lvreduce -m 0 /dev/vg00/lvol3
lvreduce -m
Removes logical volumes from a volume group:
# lvremove /dev/vg00/lvol6
lvremove
Removes a logical volume link to root, swap, or dump:
# lvrmboot -d /dev/vg00/lvol2
lvrmboot
Splits a mirrored logical volume into two logical volumes:
# lvsplit /dev/vg00/lvol4
lvsplit
165