Tuesday, January 8, 2013
Steps To Add Swap Space In AIX
1) Run lsps -a command to retrieve all the swap space in the system.
#lsps -a
Page Space Physical Volume Volume Group Size %Used Active Auto Type Chksum
hd6 hdisk2 rootvg 4608MB 81 yes yes lv 0
#
2) Run prtconf and look for hdisk2 physical volume. From below we noticed that there are free PPs so we are able to add more swap space.
#prtconf
←-- snipped ---->
=====================================================================
rootvg:
PV_NAME PV STATE TOTAL PPs FREE PPs FREE DISTRIBUTION
hdisk2 active 639 172 35..00..00..09..128
hdisk3 active 639 172 35..00..00..09..128
=====================================================================
←-- snipped ---->
3) To check more details on rootvg volume group follow this:
#lsvg rootvg
VOLUME GROUP: rootvg VG IDENTIFIER: 00f619aa00004c0000000131f69ac173
VG STATE: active PP SIZE: 32 megabyte(s)
VG PERMISSION: read/write TOTAL PPs: 1278 (40896 megabytes)
MAX LVs: 256 FREE PPs: 344 (11008 megabytes)
LVs: 11 USED PPs: 934 (29888 megabytes)
OPEN LVs: 10 QUORUM: 1 (Disabled)
TOTAL PVs: 2 VG DESCRIPTORS: 3
STALE PVs: 0 STALE PPs: 0
ACTIVE PVs: 2 AUTO ON: no
MAX PPs per VG: 32512
MAX PPs per PV: 1016 MAX PVs: 32
LTG size (Dynamic): 256 kilobyte(s) AUTO SYNC: no
HOT SPARE: no BB POLICY: relocatable
PV RESTRICTION: none INFINITE RETRY: no
4) To add 250MB swap space you need to add 8 PPs(8 x 32MB).
# mkps -a -n -s 8 rootvg
paging00
#
5)Verify the newly added paging space:
#cat /etc/swapspaces
* /etc/swapspaces
*
* This file lists all the paging spaces that are automatically put into
* service on each system restart (the 'swapon -a' command executed from
* /etc/rc swaps on every device listed here).
*
* WARNING: Only paging space devices should be listed here.
*
* This file is modified by the chps, mkps and rmps commands and referenced
* by the lsps and swapon commands.
hd6:
dev = /dev/hd6
auto = yes
checksum_size = 0
paging00:
dev = /dev/paging00
Check the status using lsps command.
#lsps -a
Page Space Physical Volume Volume Group Size %Used Active Auto Type Chksum
hd6 hdisk2 rootvg 4608MB 78 yes yes lv 0
paging00 hdisk2 rootvg 250MB 0 yes yes lv 0
#
Now to remove the paging space, we need to use the below commands.
# swapoff /dev/paging00
#
# rmps paging00
rmlv: Logical volume paging00 is removed.
#
#lsps -a
Page Space Physical Volume Volume Group Size %Used Active Auto Type Chksum
hd6 hdisk2 rootvg 4608MB 78 yes yes lv 0#
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment