Managing Systems and Workgroups: A Guide for HP-UX System Administrators
Administering a System: Managing Disks and Files
Managing Disks
Chapter 6576
c. Create the volume group specifying each physical volume to be
included using vgcreate. For example:
vgcreate /dev/vg
nn
/dev/dsk/c0t0d0
Use the block device file to include each disk in your volume group.
You can assign all the physical volumes to the volume group with one
command. No physical volume can already be part of an existing
volume group.
Step 4. Once you have created a volume group, you can now create a logical
volume using lvcreate. For example:
lvcreate /dev/vg
nn
Using the above command creates the logical volume /dev/vg
nn
/lvol
n
with LVM automatically assigning the
n
in lvol
n
.
When LVM creates the logical volume, it creates the block and character
device files and places them in the directory /dev/vg
nn
.
Tasks That You Can Perform Only with HP-UX
Commands
The following tasks can be done only using HP-UX commands. You can
not do them with SAM.
• “Extending a Logical Volume to a Specific Disk” on page 577.
• “Creating Root Volume Group and Root and Boot Logical Volumes”
on page 578.
• “Backing Up and Restoring Volume Group Configuration” on
page 581.
• “Moving and Reconfiguring Your Disks” on page 582.
• “Moving Data to a Different Physical Volume” on page 585.
• “Reducing the Size of a Logical Volume” on page 586.
• “Setting Up Alternate Links to a Physical Volume” on page 587.
• “Setting Up Disk Striping” on page 589.
How to do each of these tasks is shown next.