Googling a bit with "Increase SWAP size AIX" or "change page space AIX", I quicly found the different commands I needed. Here it goes:
bash-3.00# sysdumpdev -l
primary /dev/hd6
secondary /dev/sysdumpnull
copy directory /var/adm/ras
forced copy flag TRUE
always allow dump FALSE
dump compression ON
OK, so my swap is using /dev/hd6.
Let's look at its size:
bash-3.00# lsps -a
Page Space Physical Volume Volume Group Size %Used Active Auto Type
hd6 hdisk0 rootvg 512MB 1 yes yes lv
bash-3.00# pstat -s
PAGE SPACE:
USED PAGES FREE PAGES
1072 130000
Right, 512, which seems to be equivalent to 130 000 pages. I don't really know what are those pages about though...
Now let's inscrese the size of the swap partition:
bash-3.00# extendlv hd6 1G
Doing this, it updated the values displayed via lsps, but not via the pstat...
bash-3.00# lsps -a
Page Space Physical Volume Volume Group Size %Used Active Auto Type
hd6 hdisk0 rootvg 1536MB 1 yes yes lv
bash-3.00# pstat -s
PAGE SPACE:
USED PAGES FREE PAGES
1072 130000
I didn't know why only value has been updated, so I decided to reboot. After reboot, everything was OK:
bash-3.00# lsps -a
Page Space Physical Volume Volume Group Size %Used Active Auto Type
hd6 hdisk0 rootvg 1536MB 1 yes yes lv
bash-3.00# pstat -s
PAGE SPACE:
USED PAGES FREE PAGES
651 392565
I've seen that you can change the swap size on the fly without any reboot, so I don't know if it was just a refresh problem or not...
One more thing: I don't know exactly where it takes the 1G I've added to SWAP. It seems AIX is handeling it for you, but I am curious to know from where...
If you know anything about it, please feel free to share.
bash-3.00# sysdumpdev -l
primary /dev/hd6
secondary /dev/sysdumpnull
copy directory /var/adm/ras
forced copy flag TRUE
always allow dump FALSE
dump compression ON
OK, so my swap is using /dev/hd6.
Let's look at its size:
bash-3.00# lsps -a
Page Space Physical Volume Volume Group Size %Used Active Auto Type
hd6 hdisk0 rootvg 512MB 1 yes yes lv
bash-3.00# pstat -s
PAGE SPACE:
USED PAGES FREE PAGES
1072 130000
Right, 512, which seems to be equivalent to 130 000 pages. I don't really know what are those pages about though...
Now let's inscrese the size of the swap partition:
bash-3.00# extendlv hd6 1G
Doing this, it updated the values displayed via lsps, but not via the pstat...
bash-3.00# lsps -a
Page Space Physical Volume Volume Group Size %Used Active Auto Type
hd6 hdisk0 rootvg 1536MB 1 yes yes lv
bash-3.00# pstat -s
PAGE SPACE:
USED PAGES FREE PAGES
1072 130000
I didn't know why only value has been updated, so I decided to reboot. After reboot, everything was OK:
bash-3.00# lsps -a
Page Space Physical Volume Volume Group Size %Used Active Auto Type
hd6 hdisk0 rootvg 1536MB 1 yes yes lv
bash-3.00# pstat -s
PAGE SPACE:
USED PAGES FREE PAGES
651 392565
I've seen that you can change the swap size on the fly without any reboot, so I don't know if it was just a refresh problem or not...
One more thing: I don't know exactly where it takes the 1G I've added to SWAP. It seems AIX is handeling it for you, but I am curious to know from where...
If you know anything about it, please feel free to share.
Powered by ScribeFire.