Table 5 Volume Group Management Commands
(continued)
Command
Task
vgversion
Migrating a volume group to a different volume group version
vgmove
Migrating 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
Command
Task
lvcreate
Creating a logical volume
lvchange
Modifying a logical volume
lvdisplay
Displaying information about logical volumes
lvextend
Increasing the size of a logical volume by allocating disk space
lvmove
Migrating a logical volume to new disks
lvreduce
Decreasing the size of a logical volume
lvremove
Removing 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
lvsplit
Splitting a mirrored logical volume into two logical volumes
lvmerge
Merging two logical volumes into one mirrored logical volume
lvsync
Synchronizing 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