HP-UX System Administrator's Guide: Routine Management Tasks

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 PEentry indicates the number of 4 MB extents available, in this case,
79 (316 MB)
3. Change to single-user state:
/sbin/shutdown
This will allow /usr to be unmounted (see below).
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 Jun 30 23:19:19 2007
/usr on /dev/vg00/lvol7 defaults on Wed Jun 27 23:19:28 2007
5. Extend the logical volume:
/sbin/lvextend -L new_size /dev/vg00/lvol7
For example,
/sbin/lvextend -L 332 /dev/vg00/lvol7
increases the size of this volume to 332 MB.
6. Unmount /usr:
/sbin/umount /usr
This is required for the next step, since extendfs can only work on unmounted
volumes.
7. Extend the file system size to the logical volume size; for example:
/sbin/extendfs /dev/vg00/rlvol7
8. Remount /usr:
/sbin/mount /usr
9. Reboot the system:
/sbin/reboot -r
102 Managing Systems