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

Administering a Workgroup
Managing Disks
Chapter 9 867
Step 2. Find out if any space is available:
/sbin/vgdisplay
You’ll see output something like this:
- Volume groups -
VG Name /dev/vg00
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 8
Open LV 8
Max PV 16
Cur PV 1
Act PV 1
Max PE per PV 2000
VGDA 2
PE Size (Mbytes) 4
Total PE 249
Alloc PE 170
Free PE 79
Total PVG 0
The Free PE entry indicates the number of 4 MB extents available, in
this case, 79 (316 MB)
Step 3. Change to single-user state:
/sbin/shutdown
This will allow /usr to be unmounted (see below).
Step 4. Check to see where /usr is mounted (/dev/vg00/lvol7 by default):
/sbin/mount
You’ll see output such as:
/ on /dev/vg00/lvol1 defaults on Sat Jan 28 23:19:19 1995
/usr on /dev/vg00/lvol7 defaults on Sat Jan 28 23:19:28 1995
Step 5. Extend the logical volume:
/sbin/lvextend -L
new_size
/dev/vg00/lvol7
For example,