AIX: How do I shrink the default paging space on hd6?

1) create a paging space to use temporarily
mkps -s 20 -a rootvg

2) change default paging space hd6 so it is not used at next reboot
chps -a n hd6

3) For AIX 3.1, edit /etc/rc.boot4 and change swapon /dev/hd6;
for AIX 3.2 and 4.x, edit /sbin/rc.boot and change swapon /dev/hd6
swapon /dev/paging00

3a)Since the default system dump device is /dev/hd6 in 4.1.x, it has to
be changed to the temporary swap device before you remove the old
swap device.

sysdumpdev -p /dev/paging00

4) Update information in boot logical volume
bosboot -a (3.1)
bosboot -a -d hdisk0 (3.2 & 4)

5) shutdown and reboot

6) remove current hd6 and create a new one of smaller size
rmps hd6
mklv -y hd6 -t paging rootvg size of PS in 4 Meg blocks

7) Re-edit /etc/rc.boot4 (3.1), /sbin/rc.boot (3.2/4) to swap to /dev/hd6
swapon /dev/hd6

7a)On AIX 4, change the dump device back to hd6:

sysdumpdev -p /dev/hd6

8) Update information in boot logical volume
bosboot -a (3.1)
bosboot -a -d hdisk0 (3.2 & 4)

9) change current paging device (paging00) so it is inactive at next boot
chps -a n /dev/paging00

10) shutdown, reboot, remove paging00 using the command:
rmps paging00

You can check your paging space with `lsps -a`

Leave a Comment

Your email address will not be published. Required fields are marked *

CAPTCHA * Time limit is exhausted. Please reload the CAPTCHA.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Scroll to Top