HP-UX System Administrator's Guide: Logical Volume Management HP-UX 11i v3 (B3921-90053 September 2011) Transform used: ESS version 2.2
Table 5 Volume Group Management Commands (continued)
CommandTask
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 76)
◦ “Reinstating a Spare Disk” (page 77)
◦ “Synchronizing a Mirrored Logical Volume” (page 26)
◦ “Moving Data to a Different Physical Volume” (page 73)
◦ “Disk Troubleshooting and Recovery Procedures” (page 116)
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.
Displaying LVM Information
To display information about volume groups, logical volumes, or physical volumes, use one of
three commands. Each command supports the -v option to display detailed output and the -F
option to help with scripting.
40 Administering LVM