The library of LVM subroutines is a main component of the Logical Volume Manager.
LVM subroutines define and maintain the logical and physical volumes of a volume group. They are used by the system management commands to perform system management for the logical and physical volumes of a system. The programming interface for the library of LVM subroutines is available to anyone who wishes to provide alternatives to or expand the function of the system management commands for logical volumes.
Note: The LVM subroutines use the sysconfig system call, which requires root user authority, to query and update kernel data structures describing a volume group. You must have root user authority to use the services of the LVM subroutine library.
The following services are available:
|lvm_changelv||Changes the attributes of a logical volume.|
|lvm_changepv||Changes the attributes of a physical volume in a volume group.|
|lvm_createlv||Creates an empty logical volume in a specified volume group.|
|lvm_createvg||Creates a new volume group and installs the first physical volume.|
|lvm_deletelv||Deletes a logical volume from its volume group.|
|lvm_deletepv||Deletes a physical volume from a volume group.|
|lvm_extendlv||Extends a logical volume by a specified number of partitions.|
|lvm_installpv||Installs a physical volume into a volume group.|
|lvm_migratepp||Moves a physical partition to a specified physical volume.|
|lvm_querylv||Queries a logical volume and returns all pertinent information.|
|lvm_querypv||Queries a physical volume and returns all pertinent information.|
|lvm_queryvg||Queries a volume group and returns pertinent information.|
|lvm_queryvgs||Queries the volume groups of the system and returns information for groups that are varied on-line.|
|lvm_reducelv||Reduces a logical volume by a specified number of partitions.|
|lvm_resynclp||Synchronizes all physical partition copies of a logical partition.|
|lvm_resynclv||Synchronizes all physical copies of all the logical partitions for a logical volume.|
|lvm_resyncpv||Synchronizes all physical partitions on a physical volume with the related copies of the logical partition to which they correspond.|
|lvm_varyoffvg||Varies a volume group off-line.|
|lvm_varyonvg||Varies a volume group on-line.|