构建AIX环境下的RAC之--配置系统环境(1)
环境:
操作系统: AIX 5300-09
集群软件: CRS 10.2.0.1
数据库: Oracle 10.2.0.1
构建AIX平台下RAC 依据共享存储的使用方式可以分两种:
1、建立基于并发卷组(VG concurrent)的共享存储
2、建立基于ASM下的RAW的共享存储
如下图所示:
<a href="http://s3.51cto.com/wyfs02/M02/23/AE/wKioL1M-VLOwJXeeAAFsPugZXrI480.jpg" target="_blank"></a>
本案例是用于基于VG Concurrent 的共享存储:
一、检测系统环境
1、系统版本
[root@aix211 /]#oslevel -r
5300-09
2、系统硬件环境
[root@aix211 /]#prtconf |more
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<code>System Model: IBM,</code><code>7028</code><code>-6C4</code>
<code>Machine Serial </code><code>Number</code><code>: 1040F8A</code>
<code>Processor Type: PowerPC_POWER4</code>
<code>Processor Implementation Mode: POWER </code><code>4</code>
<code>Processor Version: PV_4_2</code>
<code>Number</code> <code>Of Processors: </code><code>2</code>
<code>Processor Clock Speed: </code><code>1453</code> <code>MHz</code>
<code>CPU Type: </code><code>64</code><code>-bit</code>
<code>Kernel Type: </code><code>64</code><code>-bit</code>
<code>LPAR Info: </code><code>1</code> <code>NULL</code>
<code>Memory Size: </code><code>4096</code> <code>MB</code>
<code>Good Memory Size: </code><code>4096</code> <code>MB</code>
<code>Platform Firmware level: 3R061030</code>
<code>Firmware Version: IBM,RG061030_d79e19_r</code>
<code>Console Login: enable</code>
<code>Auto Restart: </code><code>true</code>
<code>Full Core: </code><code>false</code>
<code>Network Information</code>
<code> </code><code>Host Name: aix211</code>
<code> </code><code>IP Address: </code><code>192.168.</code><code>8.211</code>
<code> </code><code>Sub Netmask: </code><code>255.255.</code><code>255.0</code>
<code> </code><code>Gateway: </code><code>192.168.</code><code>8.1</code>
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
<code>rootvg:</code>
<code>PV_NAME PV STATE TOTAL PPs FREE PPs FREE DISTRIBUTION</code>
<code>hdisk0 active </code><code>546</code> <code>287</code> <code>45</code><code>..</code><code>18</code><code>..</code><code>06</code><code>..</code><code>109</code><code>..</code><code>109</code>
<code>[root</code><code>@aix211</code> <code>/]#lsvg rootvg</code>
<code>VOLUME GROUP: rootvg VG IDENTIFIER: 00040f8a00004c00000001389bd022c1</code>
<code>VG STATE: active PP SIZE: </code><code>128</code> <code>megabyte(s)</code>
<code>VG PERMISSION: read/write TOTAL PPs: </code><code>546</code> <code>(</code><code>69888</code> <code>megabytes)</code>
<code>MAX LVs: </code><code>256</code> <code>FREE PPs: </code><code>287</code> <code>(</code><code>36736</code> <code>megabytes)</code>
<code>LVs: </code><code>14</code> <code>USED PPs: </code><code>259</code> <code>(</code><code>33152</code> <code>megabytes)</code>
5、检测换页空间(内存的2倍,适用既可以)
<code>[root@aix211 /]#lsps -a</code>
<code>Page Space Physical Volume Volume Group Size %Used Active Auto Type</code>
<code>paging00 hdisk0 rootvg 2048MB </code><code>1</code> <code>yes yes lv</code>
<code>hd6 hdisk0 rootvg 2048MB </code><code>1</code> <code>yes yes lv</code>
<code>[root@aix211 /]#lsps -s</code>
<code>Total Paging Space Percent Used</code>
<code> </code><code>4096MB </code><code>1</code><code>%</code>
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
<code>Filesystem MB blocks Free %Used Iused %Iused Mounted on</code>
<code>/dev/hd4 </code><code>2048.00</code> <code>1860.16</code> <code>10</code><code>% </code><code>4539</code> <code>1</code><code>% /</code>
<code>/dev/hd2 </code><code>2048.00</code> <code>137.49</code> <code>94</code><code>% </code><code>45804</code> <code>9</code><code>% /usr</code>
<code>/dev/hd9var </code><code>2048.00</code> <code>1968.26</code> <code>4</code><code>% </code><code>549</code> <code>1</code><code>% /var</code>
<code>/dev/hd3 </code><code>640.00</code> <code>614.70</code> <code>4</code><code>% </code><code>62</code> <code>1</code><code>% /tmp</code>
<code>/dev/hd1 </code><code>1024.00</code> <code>956.77</code> <code>7</code><code>% </code><code>89</code> <code>1</code><code>% /home</code>
<code>/proc - - - - - /proc</code>
<code>/dev/hd10opt </code><code>256.00</code> <code>34.44</code> <code>87</code><code>% </code><code>3440</code> <code>6</code><code>% /opt</code>
<code>/dev/lv01 </code><code>10240.00</code> <code>9918.54</code> <code>4</code><code>% </code><code>17</code> <code>1</code><code>% /u01</code>
7、查看所需的软件包
[root@aix212 disk1]#lslpp -l |grep bos.adt
<code>bos.adt.base </code><code>5.3</code><code>.</code><code>8.0</code> <code>COMMITTED Base Application Development</code>
<code> </code><code>bos.adt.debug </code><code>5.3</code><code>.</code><code>8.0</code> <code>COMMITTED Base Application Development</code>
<code> </code><code>bos.adt.graphics </code><code>5.3</code><code>.</code><code>7.0</code> <code>COMMITTED Base Application Development</code>
<code> </code><code>bos.adt.include </code><code>5.3</code><code>.</code><code>8.0</code> <code>COMMITTED Base Application Development</code>
<code> </code><code>bos.adt.insttools </code><code>5.3</code><code>.</code><code>8.0</code> <code>COMMITTED Tool to Create installp</code>
<code> </code><code>bos.adt.lib </code><code>5.3</code><code>.</code><code>8.0</code> <code>COMMITTED Base Application Development</code>
<code> </code><code>bos.adt.libm </code><code>5.3</code><code>.</code><code>8.0</code> <code>COMMITTED Base Application Development</code>
<code> </code><code>bos.adt.libmio </code><code>5.3</code><code>.</code><code>8.0</code> <code>COMMITTED Modular IO Library </code>
<code> </code><code>bos.adt.prof </code><code>5.3</code><code>.</code><code>8.1</code> <code>COMMITTED Base Profiling Support </code>
<code> </code><code>bos.adt.prt_tools </code><code>5.3</code><code>.</code><code>0.0</code> <code>COMMITTED Printer Support Development</code>
<code> </code><code>bos.adt.samples </code><code>5.3</code><code>.</code><code>7.0</code> <code>COMMITTED Base Operating System Samples </code>
<code> </code><code>bos.adt.sccs </code><code>5.3</code><code>.</code><code>8.0</code> <code>COMMITTED SCCS Application Development</code>
<code> </code><code>bos.adt.syscalls </code><code>5.3</code><code>.</code><code>7.0</code> <code>COMMITTED System Calls Application</code>
<code> </code><code>bos.adt.utils </code><code>5.3</code><code>.</code><code>8.0</code> <code>COMMITTED Base Application Development</code>
<code> </code><code>bos.adt.data </code><code>5.3</code><code>.</code><code>0.0</code> <code>COMMITTED Base Application Development</code>
[root@aix212 disk1]#lslpp -l |grep bos.perf
<code> </code><code>bos.perf.diag_tool </code><code>5.3.</code><code>0.50</code> <code>COMMITTED Performance Diagnostic Tool </code>
<code> </code><code>bos.perf.libperfstat </code><code>5.3.</code><code>8.0</code> <code>COMMITTED Performance Statistics Library</code>
<code> </code><code>bos.perf.perfstat </code><code>5.3.</code><code>8.1</code> <code>COMMITTED Performance Statistics</code>
<code> </code><code>bos.perf.proctools </code><code>5.3.</code><code>8.0</code> <code>COMMITTED Proc Filesystem Tools </code>
<code> </code><code>bos.perf.tools </code><code>5.3.</code><code>8.0</code> <code>COMMITTED Base Performance Tools </code>
<code> </code><code>bos.perf.tune </code><code>5.3.</code><code>8.0</code> <code>COMMITTED Performance Tuning Support </code>
<code> </code><code>bos.perf.diag_tool </code><code>5.3.</code><code>0.50</code> <code>COMMITTED Performance Diagnostic Tool </code>
<code> </code><code>bos.perf.tune </code><code>5.3.</code><code>8.0</code> <code>COMMITTED Performance Tuning Support</code>
[root@aix212 disk1]#lslpp -l |grep rsct
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<code>rsct.basic.hacmp </code><code>2.4.</code><code>9.0</code> <code>COMMITTED RSCT Basic Function (HACMP/ES</code>
<code> </code><code>rsct.basic.rte </code><code>2.4.</code><code>9.0</code> <code>COMMITTED RSCT Basic Function</code>
<code> </code><code>rsct.basic.sp </code><code>2.4.</code><code>9.0</code> <code>COMMITTED RSCT Basic Function (PSSP</code>
<code> </code><code>rsct.clients.rte </code><code>99.99.</code><code>999.999</code> <code>COMMITTED Supersede Entry - Not really</code>
<code> </code><code>rsct.compat.basic.hacmp </code><code>2.4.</code><code>9.0</code> <code>COMMITTED RSCT Event Management Basic</code>
<code> </code><code>rsct.compat.basic.rte </code><code>2.4.</code><code>9.0</code> <code>COMMITTED RSCT Event Management Basic</code>
<code> </code><code>rsct.compat.basic.sp </code><code>2.4.</code><code>9.0</code> <code>COMMITTED RSCT Event Management Basic</code>
<code> </code><code>rsct.compat.clients.hacmp </code><code>2.4.</code><code>9.0</code> <code>COMMITTED RSCT Event Management Client</code>
<code> </code><code>rsct.compat.clients.rte </code><code>2.4.</code><code>9.0</code> <code>COMMITTED RSCT Event Management Client</code>
<code> </code><code>rsct.compat.clients.sp </code><code>2.4.</code><code>9.0</code> <code>COMMITTED RSCT Event Management Client</code>
<code> </code><code>rsct.core.auditrm </code><code>2.4.</code><code>9.0</code> <code>COMMITTED RSCT Audit Log Resource</code>
<code> </code><code>rsct.core.errm </code><code>2.4.</code><code>9.0</code> <code>COMMITTED RSCT Event Response Resource</code>
<code> </code><code>rsct.core.fsrm </code><code>2.4.</code><code>9.0</code> <code>COMMITTED RSCT File System Resource</code>
<code> </code><code>rsct.core.gui </code><code>2.4.</code><code>9.0</code> <code>COMMITTED RSCT Graphical User Interface</code>
<code> </code><code>rsct.core.hostrm </code><code>2.4.</code><code>9.0</code> <code>COMMITTED RSCT Host Resource Manager</code>
<code> </code><code>rsct.core.lprm </code><code>2.4.</code><code>9.0</code> <code>COMMITTED RSCT Least Privilege Resource</code>
<code> </code><code>rsct.core.rmc </code><code>2.4.</code><code>9.0</code> <code>COMMITTED RSCT Resource Monitoring </code><code>and</code>
<code> </code><code>rsct.core.sec </code><code>2.4.</code><code>9.0</code> <code>COMMITTED RSCT Security</code>
<code> </code><code>rsct.core.sensorrm </code><code>2.4.</code><code>9.0</code> <code>COMMITTED RSCT Sensor Resource Manager</code>
<code> </code><code>rsct.core.sr </code><code>2.4.</code><code>9.0</code> <code>COMMITTED RSCT Registry</code>
<code> </code><code>rsct.core.utils </code><code>2.4.</code><code>9.0</code> <code>COMMITTED RSCT Utilities</code>
<code> </code><code>rsct.lapi.rte </code><code>2.4.</code><code>5.0</code> <code>COMMITTED RSCT LAPI Runtime</code>
<code> </code><code>rsct.lapi.samp </code><code>2.4.</code><code>5.0</code> <code>COMMITTED RSCT LAPI Samples</code>
<code> </code><code>rsct.opt.fence.blade </code><code>2.4.</code><code>9.0</code> <code>COMMITTED RSCT BLADE Fence Agent</code>
<code> </code><code>rsct.opt.fence.hmc </code><code>2.4.</code><code>9.0</code> <code>COMMITTED RSCT Fence Agent</code>
<code> </code><code>rsct.opt.saf.amf </code><code>2.4.</code><code>9.0</code> <code>COMMITTED RSCT SAF Resource Manager</code>
<code> </code><code>rsct.opt.storagerm </code><code>2.4.</code><code>9.0</code> <code>COMMITTED RSCT Storage Resource Manager</code>
<code> </code><code>rsct.vsd.cmds </code><code>4.1.</code><code>0.0</code> <code>COMMITTED VSD Commands</code>
<code> </code><code>rsct.vsd.rvsd </code><code>4.1.</code><code>0.0</code> <code>COMMITTED Recoverable VSD</code>
<code> </code><code>rsct.vsd.vsdd </code><code>4.1.</code><code>0.0</code> <code>COMMITTED VSD Device Driver</code>
<code> </code><code>rsct.vsd.vsdrm </code><code>4.1.</code><code>0.0</code> <code>COMMITTED VSD Resource Manager</code>
<code>[root@aix212 disk1]#lslpp -l |grep dt</code>
<code> </code><code>X11.Dt.adt </code><code>5.3.</code><code>7.0</code> <code>COMMITTED AIX CDE Application</code>
<code> </code><code>X11.Dt.xdt2cde </code><code>5.3.</code><code>0.0</code> <code>COMMITTED AIX CDE Migration Tool </code>
<code> </code><code>X11.adt.bitmaps </code><code>5.3.</code><code>0.0</code> <code>COMMITTED AIXwindows Application</code>
<code> </code><code>X11.adt.ext </code><code>5.3.</code><code>0.60</code> <code>COMMITTED AIXwindows Application</code>
<code> </code><code>X11.adt.imake </code><code>5.3.</code><code>7.0</code> <code>COMMITTED AIXwindows Application</code>
<code> </code><code>X11.adt.include </code><code>5.3.</code><code>8.0</code> <code>COMMITTED AIXwindows Application</code>
<code> </code><code>X11.adt.lib </code><code>5.3.</code><code>0.0</code> <code>COMMITTED AIXwindows Application</code>
<code> </code><code>X11.adt.motif </code><code>5.3.</code><code>0.50</code> <code>COMMITTED AIXwindows Application</code>
<code> </code><code>X11.compat.adt.Motif12 </code><code>5.3.</code><code>0.50</code> <code>COMMITTED AIXwindows Motif </code><code>1.2</code>
<code> </code><code>X11.man.en_US.Dt.adt </code><code>5.3.</code><code>0.0</code> <code>COMMITTED AIX CDE Toolkit Man Pages</code>
[root@aix212 disk1]#lslpp -l |grep xlC
<code> </code><code>xlC.aix50.rte </code><code>9.0.</code><code>0.1</code> <code>COMMITTED XL C/C++ Runtime </code><code>for</code> <code>AIX </code><code>5.2</code>
<code> </code><code>xlC.cpp </code><code>9.0.</code><code>0.0</code> <code>COMMITTED C </code><code>for</code> <code>AIX Preprocessor</code>
<code> </code><code>xlC.rte </code><code>9.0.</code><code>0.1</code> <code>COMMITTED XL C/C++ Runtime</code>
[root@aix212 disk1]#
8、查看系统补丁
[root@aix211 /]#instfix -i -k "IY58143 IY59386 IY60930 IY66513"
<code> </code><code>All filesets </code><code>for</code> <code>IY58143 were found.</code>
<code> </code><code>All filesets </code><code>for</code> <code>IY59386 were found.</code>
<code> </code><code>All filesets </code><code>for</code> <code>IY60930 were found.</code>
<code> </code><code>All filesets </code><code>for</code> <code>IY66513 were found.</code>
9、安装bos.clvm* 用于vg的并发
[root@aix211 /]#lslpp -L bos.clvm.enh
<code>Fileset Level State Type Description (Uninstaller)</code>
<code> </code><code>----------------------------------------------------------------------------</code>
<code>lslpp: Fileset bos.clvm.enh </code><code>not</code> <code>installed.</code>
<code>State codes: </code>
<code> </code><code>A -- Applied. </code>
<code> </code><code>B -- Broken. </code>
<code> </code><code>C -- Committed. </code>
<code> </code><code>E -- EFIX Locked. </code>
<code> </code><code>O -- Obsolete. (partially migrated to newer version) </code>
<code> </code><code>? -- Inconsistent State...Run lppchk -v. </code>
<code> </code>
<code>Type codes: </code>
<code> </code><code>F -- Installp Fileset </code>
<code> </code><code>P -- Product </code>
<code> </code><code>C -- Component </code>
<code> </code><code>T -- Feature </code>
<code> </code><code>R -- RPM Package </code>
<code> </code><code>E -- Interim Fix</code>
[root@aix211 /]#lslpp -l |grep clvm
<code>bos.clvm.enh </code><code>5.3.</code><code>8.0</code> <code>COMMITTED Enhanced Concurrent Logical</code>
<code> </code><code>bos.clvm.enh </code><code>5.3.</code><code>8.0</code> <code>COMMITTED Enhanced Concurrent Logical</code>
-----未完,待续!
本文转自 客居天涯 51CTO博客,原文链接:http://blog.51cto.com/tiany/1390555,如需转载请自行联系原作者