HP-UX System Administrator's Guide: Logical Volume Management (762803-001, March 2014)
Table 5 Volume Group Management Commands (continued)
CommandTask
lvmpudHandling online shared LVM reconfiguration, and pre-allocation of extents
for space-efficient snapshots
vgversionMigrating a volume group to a different volume group version
vgmoveMigrating a volume group to new disks
1
To convert the cDSFs of a volume group in a particular node back to their corresponding persistent DSFs, use the
vgscan -f command. For example:
# vgscan -f vgtest
*** LVMTAB has been updated successfully.
Repeat the above command on all the nodes in the cluster where this shared volume group is present (i.e., imported).
Use the lvmadm -l command to verify the conversion of cDSFs to persistent DSF.
Table 6 Logical Volume Management Commands
CommandTask
lvcreateCreating a logical volume
lvchangeModifying a logical volume
lvdisplayDisplaying information about logical volumes
lvextendIncreasing the size of a logical volume by allocating disk space
lvmoveMigrating a logical volume to new disks
lvreduceDecreasing the size of a logical volume
lvremoveRemoving the allocation of disk space for one or more logical volumes within a volume
group
lvlnboot
1
Preparing a logical volume to be a root, primary swap, or dump volume; updating the
boot information on the boot physical volume
lvrmboot
1
Removing the link that makes a logical volume a root, primary swap, or dump volume
lvsplitSplitting a mirrored logical volume into two logical volumes
lvmergeMerging two logical volumes into one mirrored logical volume
lvsyncSynchronizing mirror copies in a mirrored logical volume
1
The lvlnboot and lvrmboot commands are not supported on Version 2.0 and 2.1 volume groups.
The command-line interface is more powerful—and thus more dangerous—than HP SMH and
offers options that are not available using HP SMH. For example, the following tasks cannot
currently be done by HP SMH. For these tasks, use the HP-UX commands:
◦ “Creating a Spare Disk” (page 79)
◦ “Reinstating a Spare Disk” (page 80)
◦ “Synchronizing a Mirrored Logical Volume” (page 29)
◦ “Moving Data to a Different Physical Volume” (page 76)
◦ “Disk Troubleshooting and Recovery Procedures” (page 124)
The remainder of this chapter explains how to do LVM tasks using HP-UX commands. However,
HP SMH is the tool of choice for most administration work.
3.1 Administration Tools 43