The absolute minimum /usr
file-system sizes needed to update to HP-UX 11.0 are:
If the required file-system size for the bundle you copy to
a depot exceeds that file system limit set by your disk installation,
you will get an error condition during the copy process. You can
use lvextend
and extendfs
in this situation to create a larger file system.
You might have a problem updating your system(s) if the/usr
or /var volume
is too small.
If you try an update, swcopy
will determine how much disk space is required. If there isn't sufficient
space, swcopy
will report an error like this:
ERROR: The used disk space on filesystem "/var" 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 would need to increase the file system
size of /var
by 10 MB, which actually needs to be rounded up to 12 MB.
The following are the steps required for increasing the size
limit of /var:
Determine if any space is available by entering the following:
You should see a display like the following:
- 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" indicates the number of 4 MB extents available,
in this case this is 79 (equivalent to 316 MB).
Enter the following:
Change to single user state. This will allow /var
to be unmounted.
Enter the following:
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 |
Determine which logical volume maps to /var. In
this example, it is /dev/vg00/lvol7.
Execute the following command:
This is required for the next step, since extendfs
can only work on unmounted volumes.
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.
Execute the following command:
/sbin/extendfs /dev/vg00/rlvol7 |
This extends the file system size to the logical volume size.
Finally, execute the following commands:
Go back to the regular init state: init 3
or init 4.
Or you can reboot.