Installing HP-UX 11.0 and Updating HP-UX 10.x to 11.0 HP 9000 Computers Edition 1

200 Chapter 7
Troubleshooting
Adjusting File System Size
PE Size (Mbytes) 4
Total PE 249
Alloc PE 170
Free PE 79
Total PVG 0
The "Free PE" indicates the number of 4 MB extents available, in this
case this is 79 (equivalent to 316 MB).
2. Enter the following:
/sbin/shutdown
Change to single user state. This will allow /var to be unmounted.
3. Enter the following:
/sbin/mount
You will see a display similar to the following:
/ on /dev/vg00/lvol1 defaults on Sat Mar 8 23:19:19 1997
/var on /dev/vg00/lvol7 defaults on Sat Mar 8 23:19:28 1997
4. Determine which logical volume maps to /var. In this example, it is
/dev/vg00/lvol7.
5. Execute the following command:
/sbin/umount /var
This is required for the next step, since extendfs can only work on
unmounted volumes.
6. Extend the size of the logical volume by entering the following:
/sbin/lvextend -L new_size_in_MB /dev/vg00/lvol7
This extends the size of the logical volume.
For example,
/sbin/lvextend -L 332 /dev/vg00/lvol7
This will make this volume 332 MB.
7. Execute the following command:
/sbin/extendfs /dev/vg00/rlvol7
This extends the file system size to the logical volume size.
8. Finally, execute the following commands:
/sbin/mount /var
9. Go back to the regular init state: init 3 or init 4. Or you can
reboot.