Managing Systems and Workgroups: A Guide for HP-UX System Administrators

Administering a System: Managing Disks and Files
Managing Disks
Chapter 6 573
Scan all physical volumes looking for logical
volumes and volume groups; allows for
recovery of the LVM configuration file,
/etc/lvmtab.
vgscan
(1M)
Adding disk to volume group.
vgextend
(1M)
f
Removing disk from volume group.
vgreduce
(1M)
a. Before executing command, one or more physical volumes
must have been created with pvcreate.
b. You also need to create a directory for the volume group and a
group device file in the directory. See “Example: Creating a
Logical Volume Using HP-UX Commands” on page 575, or lvm
(7) for more information.
c. If logical volumes exist within the volume group, they must
first be removed using lvremove. Also, the volume group
must not contain more than one physical volume. If it does,
use vgreduce first.
d. Invoked automatically whenever a configuration change is
made.
e. You also need to create a directory for the volume group and a
group device file in the directory. See “Example: Creating a
Logical Volume Using HP-UX Commands” on page 575, or lvm
(7) for more information.
f. Before executing command, one or more physical volumes
must have been created with pvcreate.
Table 6-3 Commands Needed for Volume Group Management Tasks
Task Commands Needed
Table 6-4 Commands Needed for Logical Volume Management Tasks
Task Commands Needed
Creating a logical volume.
lvcreate
(1M)
Modifying a logical volume.
lvchange
(1M)
Displaying information about logical
volumes.
lvdisplay
(1M)