Adjusting File System Size |
 |
If the required file-system size for the bundle you install
exceeds that file system limit set by your disk installation, you
will get an error condition during install. 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
volume is too small. The previous default size was 300 MB, and depending
on which bundle you are updating, you might require more.
If you try an update, swinstall
will determine how much disk space is required. If there isn't sufficient
space, swinstall
will report an error like this:
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 would need to increase the file system
size limit of /usr
by 10 MB, which actually needs to be rounded up to 12 MB.
Here are the steps required for increasing the size limit
of /usr:
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 /usr
to be unmounted.
Enter the following:
You will see a display similar to the following:
/ on /dev/vg00/lvol1 defaults on Sat Jan 28 23:19:19 1995 /usr on /dev/vg00/lvol7 defaults on Sat Jan 28 23:19:28 1995 |
Determine which logical volume maps to /usr. This
should be /dev/vg00/lvol7
by default.
Extend the size of the logical volume by entering
the following:
/sbin/lvextend -L $old space + new space /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:
This is required for the next step, since extendfs
can only work on unmounted volumes.
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 (3
or 4).