Symptoms |
|
Sometimes you need to manually reduce the paging space to allow more
space for the file system on the system disk.
The reduceps.sh script in Brisque v5.x automatically reduces the
paging space to 1.5 GB. However, this script requires a free 512 MB partition
space on rootvg. If there is less space, you need to manually reduce
the paging space.
Notes:
- The reduceps.sh script is available only for Brisque
5.x. For Brisque 4.x, you need to manually reduce the paging space,
as described in this procedure.
- The script is built into Brisque 5.1.32 so there is no need to download it.
|
Solution |
|
To manually reduce the paging space if there is less than 512 MB on rootvg:
- Determine the existing paging space logical volumes on your system.
Type:
lsps -a
- Check how many free physical partitions (PPs) are available. Type:
lsvg -p rootvg
- Create a paging space for temporary use. Type:
mkps -s X -a rootvg
where X is a number in the range of 1 and the total number
of PPs obtained in step 2.
- Run
lsps -a again and note the new paging space (probably
paging00)
- Change the characteristics of the default paging space (hd6)
so that it is inactive at reboot. Type:
chps -a n hd6
- To edit the file, type:
vi /sbin/rc.boot
- Change the line
swapon /dev/hd6 to swapon /dev/pagingXX
where XX is the number of the new paging space created
in step 3 (paging00).
- Use the
lslv command to determine which disk is the boot
disk. Type: lslv -m hd5. The boot disk is shown in the
PV1 column of the lslv output.
- Run the
bosboot command, using the hdisk obtained in
step 8 (for example, hdisk0). Type:
bosboot -a -d /dev/hdisk0
- The system is rebooted to inactivate the hd6 paging space. Type:
shutdown -Fr
- The default dump device is set to hd6. hd6 cannot be removed while
it is the dump device. Check the dump device. Type:
sysdumpdev -l
- If the primary or secondary dump device is set to hd6, reset the pointer.
Type:
sysdumpdev -P -p /dev/sysdumpnull
- Because some scripts are hard-coded to activate /dev/hd6, you should
create the new paging space under the same name. Remove hd6 and create
a new hd6 of smaller size. Type:
rmps hd6
mklv -y hd6 -t paging rootvg <PS size in logical partitions>
where PS size in logical partitions is the number of LPs allocated to hd6.
- Edit the file. Type:
vi /sbin/rc.boot
- Change the swapon line back to
swapon /dev/hd6. To confirm
that hd6 is automatically swapped at reboot, type:
chps -a y hd6
lsps -a
Verify that there is a y under the auto column for hd6.
- Run the
bosboot command, using the hdiskX obtained in
step 8. Type:
bosboot -a -d /dev/hdiskX
- Change the characteristics of the temporary paging space (which is
assumed to be paging00 in this procedure), so that it is inactive at
the next reboot. Type:
chps -a n paging00
- The system is rebooted to inactivate the hd6 paging space. Type:
shutdown -Fr
- Remove the temporary paging space. Type:
rmps paging00
- If the dump device was changed in step 11, reset the dump pointer.
Type:
sysdumpdev -P -p /dev/hd6
|