构建AIX环境下的RAC之--配置系统环境(1)
环境:
操作系统: AIX 5300-09
集群软件: CRS 10.2.0.1
数据库: Oracle 10.2.0.1
构建AIX平台下RAC 依据共享存储的使用方式可以分两种:
1、建立基于并发卷组(VG concurrent)的共享存储
2、建立基于ASM下的RAW的共享存储
如下图所示:
本案例是用于基于VG Concurrent 的共享存储:
一、检测系统环境
1、系统版本
[root@aix211 /]#oslevel -r
5300-09
2、系统硬件环境
[root@aix211 /]#prtconf |more
System Model: IBM,7028-6C4 Machine Serial Number: 1040F8A Processor Type: PowerPC_POWER4 Processor Implementation Mode: POWER 4 Processor Version: PV_4_2 Number Of Processors: 2 Processor Clock Speed: 1453 MHz CPU Type: 64-bit Kernel Type: 64-bit LPAR Info: 1 NULL Memory Size: 4096 MB Good Memory Size: 4096 MB Platform Firmware level: 3R061030 Firmware Version: IBM,RG061030_d79e19_r Console Login: enable Auto Restart: true Full Core: false Network Information Host Name: aix211 IP Address: 192.168.8.211 Sub Netmask: 255.255.255.0 Gateway: 192.168.8.1
3、系统内存
[root@aix211 /]#lsattr -El sys0 -a realmem
realmem 4194304 Amount of usable physical memory in Kbytes False
4、检测rootvg空间
[root@aix211 /]#lsvg -p rootvg
rootvg: PV_NAME PV STATE TOTAL PPs FREE PPs FREE DISTRIBUTION hdisk0 active 546 287 45..18..06..109..109 [root@aix211 /]#lsvg rootvg VOLUME GROUP: rootvg VG IDENTIFIER: 00040f8a00004c00000001389bd022c1 VG STATE: active PP SIZE: 128 megabyte(s) VG PERMISSION: read/write TOTAL PPs: 546 (69888 megabytes) MAX LVs: 256 FREE PPs: 287 (36736 megabytes) LVs: 14 USED PPs: 259 (33152 megabytes)
5、检测换页空间(内存的2倍,适用既可以)
[root@aix211 /]#lsps -a Page Space Physical Volume Volume Group Size %Used Active Auto Type paging00 hdisk0 rootvg 2048MB 1 yes yes lv hd6 hdisk0 rootvg 2048MB 1 yes yes lv [root@aix211 /]#lsps -s Total Paging Space Percent Used 4096MB 1%
6、调整文件系统空间(如空间不够可以通过smit fs 调整)
----/tmp 需要最少400m空间
----对于安装crs 和 Oracle 软件的文件系统留有足够的空间,建议建立独立的文件系统,如/u01
[root@aix211 /]#df -m /tmp
Filesystem MB blocks Free %Used Iused %Iused Mounted on
/dev/hd3 640.00 369.20 43% 856 1% /tmp
[root@aix211 /]#
[root@aix212 disk1]#df -m
Filesystem MB blocks Free %Used Iused %Iused Mounted on /dev/hd4 2048.00 1860.16 10% 4539 1% / /dev/hd2 2048.00 137.49 94% 45804 9% /usr /dev/hd9var 2048.00 1968.26 4% 549 1% /var /dev/hd3 640.00 614.70 4% 62 1% /tmp /dev/hd1 1024.00 956.77 7% 89 1% /home /proc - - - - - /proc /dev/hd10opt 256.00 34.44 87% 3440 6% /opt /dev/lv01 10240.00 9918.54 4% 17 1% /u01
7、查看所需的软件包
[root@aix212 disk1]#lslpp -l |grep bos.adt
bos.adt.base 5.3.8.0 COMMITTED Base Application Development bos.adt.debug 5.3.8.0 COMMITTED Base Application Development bos.adt.graphics 5.3.7.0 COMMITTED Base Application Development bos.adt.include 5.3.8.0 COMMITTED Base Application Development bos.adt.insttools 5.3.8.0 COMMITTED Tool to Create installp bos.adt.lib 5.3.8.0 COMMITTED Base Application Development bos.adt.libm 5.3.8.0 COMMITTED Base Application Development bos.adt.libmio 5.3.8.0 COMMITTED Modular IO Library bos.adt.prof 5.3.8.1 COMMITTED Base Profiling Support bos.adt.prt_tools 5.3.0.0 COMMITTED Printer Support Development bos.adt.samples 5.3.7.0 COMMITTED Base Operating System Samples bos.adt.sccs 5.3.8.0 COMMITTED SCCS Application Development bos.adt.syscalls 5.3.7.0 COMMITTED System Calls Application bos.adt.utils 5.3.8.0 COMMITTED Base Application Development bos.adt.data 5.3.0.0 COMMITTED Base Application Development
[root@aix212 disk1]#lslpp -l |grep bos.perf
bos.perf.diag_tool 5.3.0.50 COMMITTED Performance Diagnostic Tool bos.perf.libperfstat 5.3.8.0 COMMITTED Performance Statistics Library bos.perf.perfstat 5.3.8.1 COMMITTED Performance Statistics bos.perf.proctools 5.3.8.0 COMMITTED Proc Filesystem Tools bos.perf.tools 5.3.8.0 COMMITTED Base Performance Tools bos.perf.tune 5.3.8.0 COMMITTED Performance Tuning Support bos.perf.diag_tool 5.3.0.50 COMMITTED Performance Diagnostic Tool bos.perf.libperfstat 5.3.8.0 COMMITTED Performance Statistics Library bos.perf.perfstat 5.3.8.1 COMMITTED Performance Statistics bos.perf.tools 5.3.8.0 COMMITTED Base Performance Tools bos.perf.tune 5.3.8.0 COMMITTED Performance Tuning Support
[root@aix212 disk1]#lslpp -l |grep rsct
rsct.basic.hacmp 2.4.9.0 COMMITTED RSCT Basic Function (HACMP/ES rsct.basic.rte 2.4.9.0 COMMITTED RSCT Basic Function rsct.basic.sp 2.4.9.0 COMMITTED RSCT Basic Function (PSSP rsct.clients.rte 99.99.999.999 COMMITTED Supersede Entry - Not really rsct.compat.basic.hacmp 2.4.9.0 COMMITTED RSCT Event Management Basic rsct.compat.basic.rte 2.4.9.0 COMMITTED RSCT Event Management Basic rsct.compat.basic.sp 2.4.9.0 COMMITTED RSCT Event Management Basic rsct.compat.clients.hacmp 2.4.9.0 COMMITTED RSCT Event Management Client rsct.compat.clients.rte 2.4.9.0 COMMITTED RSCT Event Management Client rsct.compat.clients.sp 2.4.9.0 COMMITTED RSCT Event Management Client rsct.core.auditrm 2.4.9.0 COMMITTED RSCT Audit Log Resource rsct.core.errm 2.4.9.0 COMMITTED RSCT Event Response Resource rsct.core.fsrm 2.4.9.0 COMMITTED RSCT File System Resource rsct.core.gui 2.4.9.0 COMMITTED RSCT Graphical User Interface rsct.core.hostrm 2.4.9.0 COMMITTED RSCT Host Resource Manager rsct.core.lprm 2.4.9.0 COMMITTED RSCT Least Privilege Resource rsct.core.rmc 2.4.9.0 COMMITTED RSCT Resource Monitoring and rsct.core.sec 2.4.9.0 COMMITTED RSCT Security rsct.core.sensorrm 2.4.9.0 COMMITTED RSCT Sensor Resource Manager rsct.core.sr 2.4.9.0 COMMITTED RSCT Registry rsct.core.utils 2.4.9.0 COMMITTED RSCT Utilities rsct.lapi.rte 2.4.5.0 COMMITTED RSCT LAPI Runtime rsct.lapi.samp 2.4.5.0 COMMITTED RSCT LAPI Samples rsct.opt.fence.blade 2.4.9.0 COMMITTED RSCT BLADE Fence Agent rsct.opt.fence.hmc 2.4.9.0 COMMITTED RSCT Fence Agent rsct.opt.saf.amf 2.4.9.0 COMMITTED RSCT SAF Resource Manager rsct.opt.storagerm 2.4.9.0 COMMITTED RSCT Storage Resource Manager rsct.vsd.cmds 4.1.0.0 COMMITTED VSD Commands rsct.vsd.rvsd 4.1.0.0 COMMITTED Recoverable VSD rsct.vsd.vsdd 4.1.0.0 COMMITTED VSD Device Driver rsct.vsd.vsdrm 4.1.0.0 COMMITTED VSD Resource Manager rsct.basic.rte 2.4.9.0 COMMITTED RSCT Basic Function rsct.compat.basic.rte 2.4.9.0 COMMITTED RSCT Event Management Basic rsct.core.auditrm 2.4.9.0 COMMITTED RSCT Audit Log Resource rsct.core.errm 2.4.9.0 COMMITTED RSCT Event Response Resource rsct.core.fsrm 2.4.9.0 COMMITTED RSCT File System Resource rsct.core.hostrm 2.4.9.0 COMMITTED RSCT Host Resource Manager rsct.core.lprm 2.4.9.0 COMMITTED RSCT Least Privilege Resource rsct.core.rmc 2.4.9.0 COMMITTED RSCT Resource Monitoring and rsct.core.sec 2.4.9.0 COMMITTED RSCT Security rsct.core.sensorrm 2.4.9.0 COMMITTED RSCT Sensor Resource Manager rsct.core.sr 2.4.9.0 COMMITTED RSCT Registry rsct.core.utils 2.4.9.0 COMMITTED RSCT Utilities rsct.lapi.rte 2.4.5.0 COMMITTED RSCT LAPI Runtime rsct.opt.saf.amf 2.4.9.0 COMMITTED RSCT SAF Resource Manager rsct.opt.storagerm 2.4.9.0 COMMITTED RSCT Storage Resource Manager rsct.vsd.cmds 4.1.0.0 COMMITTED VSD Commands rsct.vsd.rvsd 4.1.0.0 COMMITTED Recoverable VSD rsct.vsd.vsdrm 4.1.0.0 COMMITTED VSD Resource Manager [root@aix212 disk1]#lslpp -l |grep dt X11.Dt.adt 5.3.7.0 COMMITTED AIX CDE Application X11.Dt.xdt2cde 5.3.0.0 COMMITTED AIX CDE Migration Tool X11.adt.bitmaps 5.3.0.0 COMMITTED AIXwindows Application X11.adt.ext 5.3.0.60 COMMITTED AIXwindows Application X11.adt.imake 5.3.7.0 COMMITTED AIXwindows Application X11.adt.include 5.3.8.0 COMMITTED AIXwindows Application X11.adt.lib 5.3.0.0 COMMITTED AIXwindows Application X11.adt.motif 5.3.0.50 COMMITTED AIXwindows Application X11.compat.adt.Motif12 5.3.0.50 COMMITTED AIXwindows Motif 1.2 X11.man.en_US.Dt.adt 5.3.0.0 COMMITTED AIX CDE Toolkit Man Pages
[root@aix212 disk1]#lslpp -l |grep xlC
xlC.aix50.rte 9.0.0.1 COMMITTED XL C/C++ Runtime for AIX 5.2 xlC.cpp 9.0.0.0 COMMITTED C for AIX Preprocessor xlC.rte 9.0.0.1 COMMITTED XL C/C++ Runtime
[root@aix212 disk1]#
8、查看系统补丁
[root@aix211 /]#instfix -i -k "IY58143 IY59386 IY60930 IY66513"
All filesets for IY58143 were found. All filesets for IY59386 were found. All filesets for IY60930 were found. All filesets for IY66513 were found.
9、安装bos.clvm* 用于vg的并发
[root@aix211 /]#lslpp -L bos.clvm.enh
Fileset Level State Type Description (Uninstaller) ---------------------------------------------------------------------------- lslpp: Fileset bos.clvm.enh not installed. State codes: A -- Applied. B -- Broken. C -- Committed. E -- EFIX Locked. O -- Obsolete. (partially migrated to newer version) ? -- Inconsistent State...Run lppchk -v. Type codes: F -- Installp Fileset P -- Product C -- Component T -- Feature R -- RPM Package E -- Interim Fix
[root@aix211 /]#lslpp -l |grep clvm
bos.clvm.enh 5.3.8.0 COMMITTED Enhanced Concurrent Logical bos.clvm.enh 5.3.8.0 COMMITTED Enhanced Concurrent Logical
-----未完,待续!