HP-UX System Administrator's Guide: Routine Management Tasks
NOTE: Extending the logical volume that contains the root directory (/) is a special
case. This also applies to /stand if you have separate root and boot file systems. You
will not be able to extend the root file system using the procedure described below
because the current root file system cannot ever be unmounted as required by extendfs
and it must also be contiguous. Thus, you will not be able to extend it even if you shut
down to single-user mode. Although /stand can be unmounted in single-user mode,
changing /stand without knowing exactly what to do may render your system
unbootable.
To extend the current root file system, do one of the following:
• Create a recovery archive using Ignite-UX and recover the system interactively,
changing the size of the root and/or boot file system during the recovery.
• Have created and mounted another root disk (a replacement for your current root
disk having the sizes for root and boot file systems that you require).
If you are using JFS as your root file system and have the OnLineJFS product, you will
be able to extend the original root file system without unmounting provided there is
sufficient contiguous disk space available.
See HP-UX System Administrator’s Guide: Logical Volume Management for additional
information.
In the example that follows, we’ll extend /usr, which means you aren’t able to use
HP SMH, because it resides in /usr/sbin.
If you are trying to update the system to a new HP-UX release, and have seen the
following error message in swinstall:
ERROR: The used disk space on filesystem "/usr" is estimated to
increase by 57977 Kbytes.
This operation will exceed the minimum free space
for this volume. You should free up at least 10854
Kbytes to avoid installing beyond this threshold of
available user disk space.
In this example, you need to extend the /usr volume by 10 MB, which actually needs
to be rounded up to 12 MB.
1. Log in as root
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
Managing Disks - Quick Reference Examples 101