Displaying Lvm Information - HP -UX 11i Administrator's Manual

Logical volume management
Hide thumbs Also See for HP-UX 11i:
Table of Contents

Advertisement

Table 5 Volume Group Management Commands (continued)
Task
Migrating a volume group to a different volume group version
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
Task
Creating a logical volume
Modifying a logical volume
Displaying information about logical volumes
Increasing the size of a logical volume by allocating disk space
Migrating a logical volume to new disks
Decreasing the size of a logical volume
Removing the allocation of disk space for one or more logical volumes within a volume
group
Preparing a logical volume to be a root, primary swap, or dump volume; updating the
boot information on the boot physical volume
Removing the link that makes a logical volume a root, primary swap, or dump volume
Splitting a mirrored logical volume into two logical volumes
Merging two logical volumes into one mirrored logical volume
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
Command
vgversion
vgmove
Command
lvcreate
lvchange
lvdisplay
lvextend
lvmove
lvreduce
lvremove
1
lvlnboot
1
lvrmboot
lvsplit
lvmerge
lvsync

Advertisement

Table of Contents
loading

Table of Contents