Oracle Study之-AIX6.1構建Oracle 11gR2 RAC(2)
一、修改系統內核參數
[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
二、配置系統異步I/O
[root@aix209 /]#ioo -a |grep aio
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需求時自動激活,無需配置。
三、時鐘同步配置
ntp:
[root@aix209 /]#smit xntpd
[root@aix209 /]#mv /etc/ntp.conf /etc/ntp.conf.bak
---- 對于Oracle 11g RAC時鐘通過通過grid的ctssd進程解決,可以關閉系統的ntp服務
四、配置tcp/udp參數
[root@aix209 /]#lsattr -E -l sys0 -a pre520tune
pre520tune disable Pre-520 tuning compatibility mode True
對于disable compatibility,做以下配置:
[root@aix209 /]#cat mknet.sh
/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
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
五、配置共享存儲
構建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
六、配置主機間的信任關系
通過ssh配置主機間的信任關系,具體文檔見:
http://blog.csdn.net/lqx0405/article/details/51191832
---- 精彩繼續...
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。