| 1、把vmware装在一台机子上,用另一台机子(如自己的便携机)来操作,这样比较流畅,不会出一些机器性能、虚拟机方面带来的问题。
 2、共享存储用iscsi来装,这样更合理、更易于理解。
 3、用上述办法cluvfy检查,正式安装一个报错都没有。
 4、以后使用中若虚拟的几台机子弄死了,检查步骤很清晰:
 4.1、在node1上#fdisk -l
 看不到之sdb1、sdb2、sdb3则把node1、node2、storage的iscsi重启.
 [root@storage init.d]# ./iscsi-target restart
 Stopping iSCSI target service: [  OK  ]
 Starting iSCSI target service: [  OK  ]
 [root@storage init.d]# hostname
 storage
 [root@storage init.d]#
 [root@node1 init.d]# ./iscsi restart
 Stopping iSCSI daemon:
 iscsid dead but pid file exists
 Turning off network shutdown. Starting iSCSI daemon: [  OK  ]
 [  OK  ]
 Setting up iSCSI targets: Logging in to [iface: default, target: iqn.2001-04.com.example:storage.disk2.sys1.xyz, portal: 192.168.195.13,3260]
 Login to [iface: default, target: iqn.2001-04.com.example:storage.disk2.sys1.xyz, portal: 192.168.195.13,3260]: successful
 [  OK  ]
 4.2、共享存储刚挂上,得改权限
 [root@node1 dev]# chown root:oinstall ./sdb1
 [root@node1 dev]# chown oracle:dba ./sdb2
 [root@node1 dev]# chown oracle:dba ./sdb3
 4。3、再启动ocr,和检查状态
 [root@node1 bin]# ./crsctl start crs
 Attempting to start Oracle Clusterware stack
 The CRS stack will be started shortly
 [root@node1 bin]# ./crsctl check crs
 Cluster Synchronization Services appears healthy
 Cluster Ready Services appears healthy
 Event Manager appears healthy
 [root@node1 bin]# ./crs_stat -t
 Name           Type           Target    State     Host
 ------------------------------------------------------------
 ora....w1.inst application    ONLINE    OFFLINE
 ora....w2.inst application    ONLINE    OFFLINE
 ora.cjw.db     application    ONLINE    OFFLINE
 ora....SM1.asm application    ONLINE    ONLINE    node1
 ora....E1.lsnr application       ONLINE    ONLINE    node1
 ora.node1.gsd  application    ONLINE    ONLINE    node1
 ora.node1.ons  application    ONLINE    ONLINE    node1
 ora.node1.vip  application    ONLINE    ONLINE    node1
 ora....SM2.asm application    ONLINE    ONLINE    node2
 ora....E2.lsnr application       ONLINE    ONLINE    node2
 ora.node2.gsd  application    ONLINE    ONLINE    node2
 ora.node2.ons  application    ONLINE    ONLINE    node2
 ora.node2.vip  application    ONLINE    ONLINE    node2
 再就可以摆弄了。
 5、小结:
 用多台机配置和操作避免了虚拟机的性能影响问题,iscsi连共享存储原理上更好理解,也就便于排错,想进一步研究ocr、votedisk的冗余问题,database files的asm多个磁盘配置,都可以再加。
 6、文档
 “Oracle RAC 常用维护工具和命令”这篇简洁得好,
 它的来源又是联机文档里的“Oracle Database Oracle Clusterware and Oracle Real Application Clusters Administration and Deployment Guide”
 足以慢慢玩了。
 
 
 |