免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1782 | 回复: 0
打印 上一主题 下一主题

[新手入门] 减小hd6页面空间大小 [复制链接]

论坛徽章:
1
荣誉会员
日期:2011-11-23 16:44:17
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-04-12 17:30 |只看该作者 |倒序浏览

1. 建立一个临时的页面空间: mkps -a -n -s 20 rootvg (-a指明页面空间在系统重启时被配置, -n指明立刻激活页面空间, -s 20创建的页面空间大小为20个逻辑分区,
rootvg指明在该卷组上创建此临时页面空间.)
2. 设置 hd6 在系统重新启动后不被激活: chps -a n hd6
3. 在 /sbin/rc.boot 文件中改变页面空间对应的条目: 从 swapon /dev/hd6 改为 swapon /dev/paging00 , 其中, paging00是步骤1中创建的临时页面空间.
4. 如果页面空间 hd6 为主 dump 设备, 则将 paging00 设置为主 dump 设备: sysdumpdev -P -p /dev/paging00
5. 创建用于引导系统的映像文件: bosboot -d /dev/hdisk0 -a
6. 重新启动系统
7. 删除 hd6 页面空间: rmps hd6
8. 为 hd6 页面空间创建新的逻辑卷: mklv -t paging -y hd6 rootvg 10
9. 将主 dump 设备设置回 hd6: sysdumpdev -P -p /dev/hd6
10. 在 /sbin/rc.boot 文件中改变页面空间对应的条目: 从 swapon /dev/paging00 改为 swapon /dev/hd6
11. 创建用于引导系统的映像文件: bosboot -d /dev/hdisk0 -a
12. 激活 hd6 页面空间: swapon /dev/hd6
13. 设置 paging00 在系统重新启动后不被激活: chps -a n paging00
14. 重新启动系统
15. 删除临时页面空间 paging00 : rmps paging00



在AIX5L下,可以动态缩小hd6空间,使用chps –d命令 缩小  
chps –a为增加

ibm150:[/]#lsps -a
Page Space  Physical Volume   Volume Group    Size   %Used  Active  Auto  Type
hd6         hdisk2            rootvg        2464MB       1     yes    no    lv
ibm150:[/]#lsvg rootvg
VOLUME GROUP:   rootvg                   VG IDENTIFIER:  000af70d00004c000000010
31b54d22b
VG STATE:       active                   PP SIZE:        16 megabyte(s)
VG PERMISSION:  read/write               TOTAL PPs:      1084 (17344 megabytes)
MAX LVs:        256                      FREE PPs:       602 (9632 megabytes)
LVs:            11                       USED PPs:       482 (7712 megabytes)
OPEN LVs:       8                        QUORUM:         2
TOTAL PVs:      2                        VG DESCRIPTORS: 3
STALE PVs:      0                        STALE PPs:      0
ACTIVE PVs:     2                        AUTO ON:        yes
MAX PPs per PV: 1016                     MAX PVs:        32
LTG size:       128 kilobyte(s)          AUTO SYNC:      no
HOT SPARE:      no
ibm150:[/]#chps -d 2 hd6
shrinkps: Temporary paging space paging00 created.
shrinkps: Dump device moved to temporary paging space.
shrinkps: New boot image created with temporary paging space.
shrinkps: Paging space hd6 removed.
shrinkps: Paging space hd6 recreated with new size.
shrinkps: New boot image created with resized paging space.
ibm150:[/]#lsps -a
Page Space  Physical Volume   Volume Group    Size   %Used  Active  Auto  Type
hd6         hdisk2            rootvg        2432MB       1     yes    no    lv


本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/16252/showart_98860.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP