AIX 动态更改swap空间

增加SWAP交换页空间

查看SWAP,使用lsps –a命令查看,默认安装SWAP是512M,例如:

# lsps -a              
Page Space      Physical Volume   Volume Group    Size   %Used     Active  Auto  Type
hd6          hdisk0        rootvg       512MB  1     yes       yes    lv

增加SWAP,chps -s number hd6 ,例如:

# chps -s 28 hd6                      ----20表示以上面pp*28,计算如下:pp=128M  PP*28=3584M
#

# lsps -a              
Page Space      Physical Volume   Volume Group    Size         %Used      Active  Auto  Type
hd6          hdisk0        rootvg       4096MB     1      yes        yes    lv

   

减少SWAP 交换页空间 

首先需要运行 

# lsps -a 查看相关信息

例如,若缩小 hd6  1 LP,运行命令:
# chps -d 1 hd6(注:这个命令需要执行一段时间,大约为半分钟)
shrinkps: Temporary paging space paging00 created.
shrinkps: Dump device moved to temporary paging space.
shrinkps: Paging space hd6 removed.
shrinkps: Paging space hd6 recreated with new size.
#


转载地址:http://libingk9999.blog.163.com/blog/static/3811485720138309171428/

你可能感兴趣的:(AIX)