Increasing SWAP space on AIX machine

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.



Powered by ScribeFire.

Comments:

AIX operating system divide it's hardisk into a small pakcet called physical part. The size of each physical part can be vary depend on how it was set before. For example, the size of physical part is 512 kB, and every logical volume we ceated is multiplication of the physical part. EX: the PP is 512 kB, so we can only create a logical volume at size 512 kB, 1 MB, 1.5 MB, 2MB, ... In some command, the size of logical volume is written in that unit. 3 MB = 6 PP....

Posted by Benny Manullang on June 14, 2010 at 05:55 AM CEST #

Post a Comment:
  • HTML Syntax: NOT allowed
About

Members of the EMEA Globalization Center are blogging about the products that comprise the Java Enterprise System stack.

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today