lvm.7 (2010 10)

l
lvm(7) lvm(7)
NAME
lvm - Logical Volume Manager (LVM)
DESCRIPTION
The Logical Volume Manager (LVM) is a subsystem for managing disk space. The HP LVM subsystem
offers value-added features, such as mirroring (with the optional HP MirrorDisk/UX software), high avai-
lability (with the optional HP Serviceguard software), and striping, that enhance availability and perfor-
mance. LVM also provides the snapshot feature to create point-in-time images (snapshots) of LVM logical
volumes.
Unlike earlier arrangements where disks were divided into fixed-sized sections, LVM allows the user to
consider the disks, also known as physical volumes, as a pool (or volume) of data storage, consisting of
equal-sized extents. The size of an extent can vary from 1 MB to 256 MB.
An LVM system consists of arbitrary groupings of physical volumes, organized into volume groups.A
volume group can consist of one or more physical volumes. There can be more than one volume group in
the system. Once created, the volume group, and not the disk, is the basic unit of data storage. Thus,
where as earlier one would move disks from one system to another, with LVM, one would move a volume
group from one system to another. For this reason it is often convenient to have multiple volume groups
on a system.
Volume groups can be subdivided into virtual disks, called logical volumes. A logical volume can span a
number of physical volumes or represent only a portion of one physical volume. The pool of disk space
that is represented by a volume group can be apportioned into logical volumes of various sizes. The size
of a logical volume is determined by its number of extents. Once created, logical volumes can be treated
just like disk partitions. Logical volumes can be assigned to file systems, used as swap or dump devices,
or used for raw access.
Commands
LVM information can be created, displayed, and manipulated with the following commands:
lvchange Change logical volume characteristics
lvcreate Stripe, create logical volume in volume group
lvdisplay Display information about logical volumes
lvextend Increase space, increase mirrors for logical volume
lvlnboot Prepare logical volume to be root, primary swap, or dump volume
lvmadm Display limits associated with a volume group version
lvmove Move a logical volume within a volume group
lvreduce Decrease number of physical extents allocated to logical volume
lvremove Remove one or more logical volumes from volume group
lvrmboot Remove logical volume link to root, primary swap, or dump volume
pvchange Change characteristics of physical volume in volume group
pvcreate Create physical volume for use in volume group
pvdisplay Display information about physical volumes within volume group
pvmove Move allocated physical extents from one physical volume to other physical volumes
vgcfgbackup Create or update volume group configuration backup file
vgcfgrestore Display or restore volume group configuration from backup file
vgchange Set volume group availability
vgcreate Create volume group
vgdisplay Display information about volume groups
vgexport Export a volume group and its associated logical volumes
vgextend Extend a volume group by adding physical volumes
vgimport Import a volume group onto the system
vgmodify Modify volume group attributes
vgmove Move data from old set of disks to a new set of disks
vgreduce Remove physical volumes from a volume group
vgremove Remove volume group definition from the system
vgscan Scan physical volumes for volume groups
vgversion Migrate a volume group from one volume group version to another
The following commands are also available if the HP MirrorDisk/UX software is installed:
lvmerge Merge two logical volumes into one logical volume
lvsplit Split mirrored logical volume into two logical volumes
HP-UX 11i Version 3: October 2010 1 Hewlett-Packard Company 1

Summary of content (6 pages)