Oracle Study之-AIX6.1構建Oracle 11gR2 RAC(2)java
1、修改系統內核參數node
[root@aix209 app]#chdev -l sys0 -a ncargs=256
sys0 changed
[root@aix209 app]#lsattr -El sys0 -a ncargs
ncargs 256 ARG/ENV list size in 4K byte blocks True
[root@aix209 app]#vmo -p -o minperm%=3
Setting minperm% to 3 in nextboot file
Setting minperm% to 3
[root@aix209 app]#vmo -p -o maxperm%=90
Modification to restricted tunable maxperm%, confirmation required yes/no yes
Setting maxperm% to 90 in nextboot file
Setting maxperm% to 90
Warning: a restricted tunable has been modified
[root@aix209 app]#vmo -p -o maxclient%=90
Modification to restricted tunable maxclient%, confirmation required yes/no yes
Setting maxclient% to 90 in nextboot file
Setting maxclient% to 90
Warning: a restricted tunable has been modified
[root@aix209 app]#vmo -p -o lru_file_repage=0
Modification to restricted tunable lru_file_repage, confirmation required yes/no yes
Setting lru_file_repage to 0 in nextboot file
Setting lru_file_repage to 0
Warning: a restricted tunable has been modified
[root@aix209 app]#vmo -p -o strict_maxclient=1
Modification to restricted tunable strict_maxclient, confirmation required yes/no yes
Setting strict_maxclient to 1 in nextboot file
Setting strict_maxclient to 1
Warning: a restricted tunable has been modified
[root@aix209 app]#vmo -p -o strict_maxperm=0
Modification to restricted tunable strict_maxperm, confirmation required yes/no yes
Setting strict_maxperm to 0 in nextboot file
Setting strict_maxperm to 0
Warning: a restricted tunable has been modified併發
2、配置系統異步I/Oapp
[root@aix209 /]#ioo -a |grep aio
ssh
aio_active = 0 aio_maxreqs = 65536 aio_maxservers = 30 aio_minservers = 3 aio_server_inactivity = 300 posix_aio_active = 0 posix_aio_maxreqs = 65536 posix_aio_maxservers = 30 posix_aio_minservers = 3 posix_aio_server_inactivity = 300
----- 對於aix 6.1,異步I/O(AIO)系統在有異步I/O需求時自動激活,無需配置。
3、時鐘同步配置
ntp:
[root@aix209 /]#smit xntpd
[root@aix209 /]#mv /etc/ntp.conf /etc/ntp.conf.bak
---- 對於Oracle 11g RAC時鐘經過經過grid的ctssd進程解決,能夠關閉系統的ntp服務
異步
4、配置tcp/udp參數tcp
[root@aix209 /]#lsattr -E -l sys0 -a pre520tune
pre520tune disable Pre-520 tuning compatibility mode True
對於disable compatibility,作如下配置:
[root@aix209 /]#cat mknet.sh
ide
/usr/sbin/no -r -o ipqmaxlen=512 /usr/sbin/no -p -o rfc1323=1 /usr/sbin/no -p -o sb_max=4194304 /usr/sbin/no -p -o tcp_recvspace=65536 /usr/sbin/no -p -o tcp_sendspace=65536 /usr/sbin/no -p -o udp_recvspace=655360 /usr/sbin/no -p -o udp_sendspace=65536
執行,有的參數須要系統重啓後生效:
[root@aix209 /]#sh mknet.sh
ui
Setting ipqmaxlen to 512 in nextboot file Warning: changes will take effect only at next reboot Setting rfc1323 to 1 Setting rfc1323 to 1 in nextboot file Change to tunable rfc1323, will only be effective for future connections Setting sb_max to 4194304 Setting sb_max to 4194304 in nextboot file Setting tcp_recvspace to 65536 Setting tcp_recvspace to 65536 in nextboot file Change to tunable tcp_recvspace, will only be effective for future connections Setting tcp_sendspace to 65536 Setting tcp_sendspace to 65536 in nextboot file Change to tunable tcp_sendspace, will only be effective for future connections Setting udp_recvspace to 655360 Setting udp_recvspace to 655360 in nextboot file Change to tunable udp_recvspace, will only be effective for future connections Setting udp_sendspace to 65536 Setting udp_sendspace to 65536 in nextboot file Change to tunable udp_sendspace, will only be effective for future connections
5、配置共享存儲spa
構建RAC,DataBase是存儲在共享存儲上(即陣列設備上),因爲這次系統使用的是Sun T300的存儲陣列,磁盤不支持併發訪問,故這次的存儲的共享須要配置hacmp加concurrent VG實現;若是陣列支持併發,可直接使用ASM和raw實現存儲共享。
[root@aix210 /]#lsdev -c disk
hdisk0 Available 1S-08-00-8,0 16 Bit LVD SCSI Disk Drive
hdisk1 Available 1n-08-02 Other FC SCSI Disk Drive
[root@aix209 /]#lspv
hdisk0 00096b0dc9e3531f rootvg active
hdisk1 000f823ae67f2ef2 None
hdisk2 00096b0dbf3e15be None
[root@aix210 /]#lsattr -El hdisk1
clr_q no Device CLEARS its Queue on error True location Location Label True lun_id 0x0 Logical Unit Number ID False max_transfer 0x40000 Maximum TRANSFER Size True node_name 0x50020f2000004999 FC Node Name False pvid 000f823ae67f2ef20000000000000000 Physical volume identifier False q_err yes Use QERR bit True q_type simple Queuing TYPE True queue_depth 1 Queue DEPTH True reassign_to 120 REASSIGN time out value True rw_timeout 30 READ/WRITE time out value True scsi_id 0x10800 SCSI ID False start_timeout 60 START unit time out value True ww_name 0x50020f2300004999 FC World Wide Name False
------- hdisk1爲陣列共享磁盤,不具備reserve_polic 或reserve_lock屬性
配置併發卷組經過HACMP實現共享:
HACMP Install:http://blog.csdn.net/lqx0405/article/details/50883875
併發卷組的配置:http://blog.csdn.net/lqx0405/article/details/51007358
配置HACMP:http://blog.csdn.net/lqx0405/article/details/51007358
6、配置主機間的信任關係
經過ssh配置主機間的信任關係,具體文檔見:
http://blog.csdn.net/lqx0405/article/details/51191832
---- 精彩繼續...