21.02.2013 Views

AIX 5L Problem Determination - IBM Redbooks

AIX 5L Problem Determination - IBM Redbooks

AIX 5L Problem Determination - IBM Redbooks

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

7.5.3 Reducing and removing paging space<br />

In <strong>AIX</strong> Version 4.x, to remove a paging space you need to reboot the system,<br />

since there is no way to dynamically bring a paging space offline. Once the<br />

system reboots, the paging space will not be active. At this point, you can<br />

remove the paging space logical volume.<br />

In <strong>AIX</strong> Version 4.x, to reduce the size of the paging space, you should remove<br />

the logical volume, and then create the new paging space with the desired size.<br />

The new paging space can be activated without having to reboot the machine<br />

using the mkps command.<br />

Removing paging space can be done by using the following procedure involving<br />

the chps and the rmps commands.<br />

Note: Removing default paging spaces incorrectly can prevent the system<br />

from restarting.<br />

The paging space must be deactivated before it can be removed. A special<br />

procedure is required for removing the default paging spaces (hd6, hd61, and<br />

so on). These paging spaces are activated during boot time by shell scripts<br />

that configure the system. To remove one of the default paging spaces, these<br />

scripts must be altered and a new boot image must be created.<br />

This scenario describes how to remove an existing paging space, paging00, from<br />

the system. This disk layout is as follows:<br />

# lsps -a<br />

Page Space Physical Volume Volume Group Size %Used Active Auto Typ<br />

paging00 hdisk2 testvg 3200MB 1 yes yes lv<br />

hd6 hdisk0 rootvg 1040MB 1 yes yes lv<br />

1. The paging00 paging space is automatically activated. Use the chps<br />

command to change its state:<br />

# chps -a n paging00<br />

2. The paging space is in use; a reboot of the system is required. Make sure that<br />

the system dump device is still pointing to a valid paging space, as follows:<br />

# sysdumpdev -l<br />

primary /dev/hd6<br />

secondary /dev/sysdumpnull<br />

copy directory /var/adm/ras<br />

forced copy flag TRUE<br />

always allow dump FALSE<br />

dump compression OFF<br />

168 <strong>IBM</strong> ^ Certification Study Guide - <strong>AIX</strong> <strong>5L</strong> <strong>Problem</strong> <strong>Determination</strong> Tools and Techniques

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!