免费注册 查看新帖 |

Chinaunix

广告
  平台 论坛 博客 文库
最近访问板块 发新帖
楼主: wangpeng1688
打印 上一主题 下一主题

[新手入门] AIX5.2下减小hd6大小 [复制链接]

论坛徽章:
0
11 [报告]
发表于 2008-06-17 17:30 |只看该作者
原帖由 hape1221 于 2008-6-17 17:09 发表
还有看看df 信息。

# lsfs
Name            Nodename   Mount Pt               VFS   Size    Options    Auto Accounting
/dev/hd4        --         /                      jfs   196608  --         yes  no
/dev/hd1        --         /home                  jfs   65536   --         yes  no
/dev/hd2        --         /usr                   jfs   4128768 --         yes  no
/dev/hd9var     --         /var                   jfs   131072  --         yes  no
/dev/hd3        --         /tmp                   jfs   2097152 --         yes  no
/proc           --         /proc                  procfs --      --         yes  no
/dev/hd10opt    --         /opt                   jfs   131072  --         yes  no
/dev/cd0        --         /cdrom                 cdrfs --      ro         no   no
/dev/lv00       --         /oracle                jfs   12582912 rw         yes  no
/dev/fslv00     --         /rman                  jfs2  --      rw         yes  no
/dev/lv02       --         /db2soft               jfs   8388608 rw         no   no
/dev/lv03       --         /backup                jfs   26017792 rw         no   no
/dev/lv01       --         /oravg_test            jfs   65536   rw         no   no

论坛徽章:
0
12 [报告]
发表于 2008-06-17 17:33 |只看该作者
跟那个没关系,我只是顺便问一下的...那个装系统时自己就定义好的,可是你的不对...
看我上边写的.....
看看/tmp的使用率,然后释放多的pp出来。。。最后再做chps。。。
不过你要保证你chps里减少的pp数没错。。。。你现在使用的hd6是64个pp.

论坛徽章:
0
13 [报告]
发表于 2008-06-17 17:34 |只看该作者
让你使用命令df 看下

论坛徽章:
0
14 [报告]
发表于 2008-06-18 09:46 |只看该作者
active状态啊!!!

论坛徽章:
0
15 [报告]
发表于 2008-06-18 09:50 |只看该作者
52能够减小吗?要重启机器重建吧

论坛徽章:
0
16 [报告]
发表于 2008-06-18 10:49 |只看该作者
以下是4.3减少hd6手工操作步骤,如果是5.2系统,可以不用重启系统

Reducing the size of hd6 paging space
The following example shows the steps involved in reducing the size of hd6 paging space from 160 MB to 120 MB.The steps in the following procedures are all necessary, even those not directly related to the hd6 paging space. The additional steps are needed because a paging space cannot be deactivated while the system is running

1. Create a temporary paging space on rootvg by executing the following command:
mkps -a -n -s 30 rootvg hdisk0

This command outputs the name of the paging space (paging00 if no others exist).

2. Use the following command to deactivate the hd6 paging spaces in preparation for the reboot later in the procedure:

chps -a n hd6

3. Change the paging space entry in the /sbin/rc.boot file from:
swapon /dev/hd6 to swapon /dev/paging00.
Note:
 AIX Version 4.2.1 and later does not support reducing the size of hd6 below 32 MB or the system will not boot.
 If you decide to reduce hd6, you must leave enough space for the software in rootvg. A rule of thumb for reducing hd6 paging space on systems prior to AIX 4.3.2 is to leave enough space to match physical memory. To find out the amount of physical memory, use the following command:

lsattr -E -l sys0 -a realmem

4. Run the following command to check the primary dump device designation:
# sysdumpdev -l

primary /dev/hd6
secondary /dev/sysdumpnull
copy directory /var/adm/ras
forced copy flag TRUE
always allow dump FALSE

5. If the primary dump device is hd6, change it to some other paging space. The following command shows how to change the primary dump device to paging00:

# sysdumpdev -P -p /dev/paging00

primary /dev/paging00
secondary /dev/sysdumpnull
copy directory /var/adm/ras
forced copy flag TRUE
always allow dump FALSE

6. Create a bootable image with the bosboot command for a hard disk image:

bosboot -d /dev/hdisk0 -a

7. Put the system key (if present) in the normal position and use the following command, which will both shutdown the operating system and reboot it:

shutdown -r

8. After the system reboots, remove the hd6 paging space:

rmps hd6

9. Create a new paging space logical volume of the size 120 MB for the hd6 paging space:

mklv -t paging -y hd6 rootvg 30

10.Use the lsps -a command to verify the reduced size of default paging space (hd6).

11.Change the primary dump device designation back to be the paging space hd6:

sysdumpdev -P -p /dev/hd6

12.Change the paging space entry in the /sbin/rc.boot file from
swapon /dev/paging00 to swapon /dev/hd6.

13.Create a bootable image with the bosboot command for a hard disk image:

bosboot -d /dev/hdisk0 -a

14.Execute the following command to make the new hd6 paging space automatically activated when the system reboots:

chps -a y hd6

15.Execute the following command to change the attribute of temporary paging space, paging00, so that it does not automatically activate after next reboot:

chps -a n paging00

16.Put the system key (if present) in the normal position and use the following command, to shutdown and reboot the system:

shutdown -r

17.After the system reboots, remove the temporary paging space:

rmps paging00




There is a simple way to decrease the hd6 in AIX 5L :

Reducing hd6 in AIX 5L Version 5.1
You can use the chps -d command to dynamically reduce the size of the primary paging space hd6. If you decrease the primary paging space, a temporary boot image and a temporary /sbin/rc.boot pointing to a temporary primary paging space will be created to make sure the system is always in a state where it can be safely rebooted.


Note: The chps -d command will prevent you from decreasing the size of hd6 below 32 MB or actually deleting it.

论坛徽章:
0
17 [报告]
发表于 2008-06-18 11:11 |只看该作者
楼上说的前面一大段没意义.....就最后一段写了chps -d,不过这和smitty chps里操作有区别吗???这根本和楼主说的问题没关系。。。

论坛徽章:
0
18 [报告]
发表于 2008-06-18 15:49 |只看该作者
楼主的问题我碰到过,具体原因不清楚,当时用smit pgsp做的,错误信息跟LZ一样。
后来用手工做的,成功。
至于为什么smit和手工做有区别,不清楚

论坛徽章:
0
19 [报告]
发表于 2008-06-18 16:03 |只看该作者
原帖由 kv3000beta 于 2008-6-18 15:49 发表
楼主的问题我碰到过,具体原因不清楚,当时用smit pgsp做的,错误信息跟LZ一样。
后来用手工做的,成功。
至于为什么smit和手工做有区别,不清楚

用命令行做也不行啊,你说的手工是啥意思

论坛徽章:
0
20 [报告]
发表于 2008-06-18 16:07 |只看该作者
我说的手工就是用命令行啊,你做到第几步报的错啊,我17步下来就OK了啊
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP