AIX Study之--AIX重新配置hd6

原创 2015年11月19日 15:55:24
AIX Study之--AIX重新配置hd6

系统环境 :AIX5.3.8

集群软件: CRS 10.2.0

Oracle 软件: Oracle 10g (10.2.0.1)


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.

For more details , pls see the AIX pSeries System Support  redbook



版权声明:本文为博主原创文章,未经博主允许不得转载。

相关文章推荐

AIX 系统故障之--hd5修复

AIX 系统修复hd5系统环境:操作系统: AIX5308故障现象:hd5 被误删除,在执行cfgmgr 时报错!1、查看rootvg 信息# lsvg -l rootvgrootvg: LV NAM...
  • lqx0405
  • lqx0405
  • 2015年03月31日 11:58
  • 3101

Oracle Study之-AIX6.1构建Oracle 10gR2 RAC(2)

Oracle Study之-AIX6.1构建Oracle 10gR2 RAC(2) 一、查看系统I/O(对于Oracle数据库需启用异步I/O) 对于AIX6.1,默认异步I/O在有需求时,自动被...
  • lqx0405
  • lqx0405
  • 2016年03月28日 11:22
  • 560

Oracle Study之-AIX6.1构建Oracle 10gR2 RAC(1)

Oracle Study之-AIX6.1构建Oracle 10gR2 RAC(1) 系统架构: 一、查看系统环境信息 [root@aix203 /] #prtconf |more Syste...
  • lqx0405
  • lqx0405
  • 2016年03月22日 18:29
  • 394

Oracle Study之--AIX RAC下OCR磁盘故障(PROT-602)

Oracle Study之--AIX RAC下OCR磁盘故障(PROT-602) ******************************************************...
  • lqx0405
  • lqx0405
  • 2016年02月25日 14:53
  • 1082

Unix Study之--AIX6.1 Install hacmp6.1

Unix Study之--AIX6.1 Install hacmp6.1 在AIX 6100-01环境下安装,需要安装以下软件包支持: 6100-01 :     bos.adt.libm 6...
  • lqx0405
  • lqx0405
  • 2016年03月14日 09:51
  • 727

Oracle Study之--AIX install RAC运行root.sh(PRKR-1062)错误

Oracle Study之--AIX RAC运行root.sh(PRKR-1062)错误 环境: 操作系统: AIX 5300-09 集群软件: CRS 10.2.0.1 数据库:   Or...
  • lqx0405
  • lqx0405
  • 2016年02月23日 14:49
  • 897

Oracle Study之--AIX 6.1安装Oracle 11gR2

Oracle Study之--AIX 6.1安装Oracle 11gR2 系统环境:AIX6100-09 (补丁:sp3) Oracle:   Oracle 11gR2 1、查看系统硬件信息 ...
  • lqx0405
  • lqx0405
  • 2016年03月18日 16:48
  • 530

Oracle Study之-AIX6.1构建Oracle 10gR2 RAC(4)

Oracle Study之-AIX6.1构建Oracle 10gR2 RAC(4) 一、安装CRS补丁 在安装CRS之前,需要安装补丁p6718715_10203_AIX64-5L,否则在安装时会...
  • lqx0405
  • lqx0405
  • 2016年04月01日 10:39
  • 811

Oracle Study之-AIX6.1构建Oracle 11gR2 RAC(2)

Oracle Study之-AIX6.1构建Oracle 11gR2 RAC(2) 一、修改系统内核参数 [root@aix209 app]#chdev -l sys0 -a ncargs=256 s...
  • lqx0405
  • lqx0405
  • 2016年04月19日 17:29
  • 381
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:AIX Study之--AIX重新配置hd6
举报原因:
原因补充:

(最多只允许输入30个字)