标签:aix下扩充swap大小
1、查看swap空间大小以及使用情况# lsps -a
Page Space Physical Volume Volume Group Size %Used Active Auto Type Chksum
hd6 hdisk0 rootvg 512MB 61 yes yes lv 0
# lsps -s
Total Paging Space Percent Used
512MB 61%
2、查看rootvg的特征和状态
# lsvg rootvg
VOLUME GROUP: rootvg VG IDENTIFIER: 00c6a66600004c0000000136f813cab4
VG STATE: active PP SIZE: 256 megabyte(s)
VG PERMISSION: read/write TOTAL PPs: 599 (153344 megabytes)
MAX LVs: 256 FREE PPs: 101 (25856 megabytes)
LVs: 12 USED PPs: 498 (127488 megabytes)
OPEN LVs: 11 QUORUM: 2 (Enabled)
TOTAL PVs: 1 VG DESCRIPTORS: 2
STALE PVs: 0 STALE PPs: 0
ACTIVE PVs: 1 AUTO ON: yes
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
说明:每一个pp的大小为256M,目前可用的空间为153G
# lsvg -l rootvg
rootvg:
LV NAME TYPE LPs PPs PVs LV STATE MOUNT POINT
hd5 boot 1 1 1 closed/syncd N/A
hd6 paging 2 2 1 open/syncd N/A
hd8 jfs2log 1 1 1 open/syncd N/A
hd4 jfs2 400 400 1 open/syncd /
hd2 jfs2 16 16 1 open/syncd /usr
hd9var jfs2 5 5 1 open/syncd /var
hd3 jfs2 60 60 1 open/syncd /tmp
hd1 jfs2 5 5 1 open/syncd /home
hd10opt jfs2 2 2 1 open/syncd /opt
hd11admin jfs2 1 1 1 open/syncd /admin
lg_dumplv sysdump 4 4 1 open/syncd N/A
livedump jfs2 1 1 1 open/syncd /var/adm/ras/livedump
说明:paging为swap分区,分布在hd6上
3、动态扩充swap分区
# chps -s 6 hd6
4、检查SWAP大小的变化
# lsvg -l rootvg
rootvg:
LV NAME TYPE LPs PPs PVs LV STATE MOUNT POINT
hd5 boot 1 1 1 closed/syncd N/A
hd6 paging 8 8 1 open/syncd N/A
hd8 jfs2log 1 1 1 open/syncd N/A
hd4 jfs2 400 400 1 open/syncd /
hd2 jfs2 16 16 1 open/syncd /usr
hd9var jfs2 5 5 1 open/syncd /var
hd3 jfs2 60 60 1 open/syncd /tmp
hd1 jfs2 5 5 1 open/syncd /home
hd10opt jfs2 2 2 1 open/syncd /opt
hd11admin jfs2 1 1 1 open/syncd /admin
lg_dumplv sysdump 4 4 1 open/syncd N/A
livedump jfs2 1 1 1 open/syncd /var/adm/ras/livedump
# lsps -s
Total Paging Space Percent Used
2048MB 16%
标签:aix下扩充swap大小
原文地址:http://blog.51cto.com/sf1314/2108169