ProTIPS Misc
HP-Unix - Extending a File System

Increasing the size of /var filesystem on Hewlett Packard HP-UX 10.20.B hp700


1. Create free space on Volume group if there is none already available
1.1 Choose a logical volume to remove, for example a swap system.  Machine will unmount the swap system and reboot.  You will then have to remove the logical volume.
1.2 Recreate the logical volume if necessary and the swap system or file system, but smaller.
2. Shutdown to single-user mode (because /var cannot be unmounted in multi-user mode)
2.1 Make a note of the logical volume name you want to extend, and the new size.
2.2 Boot into single user mode:
2.2.1 Type “shutdown –y now” in a Terminal window to shut down to single user mode, then jump to Section 3.
    OR
2.2.2.1 Type “reboot” in a Terminal window
2.2.2.2 Interrupt the reboot by pressing ENTER before booting commences (i.e. as soon as the screen switches back on).
2.2.2.3 Type “bo” to start the boot
2.2.2.4 Interact with IPL: Yes
2.2.2.5 Type “hpux –is” to boot up in single user mode.
3. Extend the volume group
3.1 Type “lvdisplay /dev/vg00/lvol8”, (where “/dev/vg00/lvol8” is the appropriate path) to view the status of the volume group.
3.2 Type “lvextend –L 256 /dev/vg00/lvol8” (where 256 is the new size in MB).
4. Extend the filesystem
4.1 Type “extendfs –F hfs /dev/vg00/rlvol8” (where “/dev/vg00/rlvol8” is the device special file for the logical volume.
4.2 Type “reboot”.
This page last updated: September 8th, 2002