AIX 5L 安装在 rootvg 的第一块硬盘上设置默认的分页逻辑卷 (hd6) ,rootvg 包含部分或全部的根(/)和 /usr 文件系统。

查看分页空间的使用率

要查看分页空间的使用率,以 -a 参数运行 lsps 命令。下例显示,分页空间使用率为 1%。



增加分页空间

可使用 chps -s 命令,动态地增加分页空间的大小,包含 hd6。
如,若想增加 hd6 大小 3 LP,运行命令:

# chps -s 3 hd6
#

缩小分页空间

可使用 chps -d 命令,动态地缩小分页空间的大小,包括 hd6。如要缩小主分页空间,需创建指向临时主机分页空间的一个临时引导映像和一个临时的 /sbin/rc.boot,以确保系统可安全重启。

注意:chps -d 命令禁止把 hd6 的大小缩小到 32MB 以下,或删除。

例如,若缩小 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.