日期:2014-05-16 浏览次数:20468 次
系统检查
检查共享设备
一般情况下, 存放OCR 和 Voting Disk 的OCFS2 或者raw 都是自动启动的。 如果他们没有启动,RAC 肯定是启动不了的。
如果使用ocfs2的,检查ocfs2 状态
/etc/init.d/o2cb status
在挂载之前,/etc/init.d/o2cb status 显示为Checking O2CB heartbeat: Not active。
在格式化和挂载文件系统之前,应验证 O2CB 在两个节点上均联机;O2CB 心跳当前没有活动,因为文件系统还没有挂载 。挂载之后就会变成active。
mount -t ocfs2 -o datavolume /dev/sdb1 /u02/oradata/orcl
如果使用raw device.
# /etc/init.d/rawdevices status
/dev/raw/raw1:? bound to major 8, minor 17
/dev/raw/raw2:? bound to major 8, minor 18
检查ASM ?
/etc/init.d/oracleasm listdisks
RAC检查crs、css等进程是否是自动启动的:
# ls -l /etc/init.d/init.*
-r-xr-xr-x? 1 root root? 1951 Feb 26 22:38 /etc/init.d/init.crs
-r-xr-xr-x? 1 root root? 4714 Feb 26 22:38 /etc/init.d/init.crsd
-r-xr-xr-x? 1 root root? 35394 Feb 26 22:38 /etc/init.d/init.cssd
-r-xr-xr-x? 1 root root? 3190 Feb 26 22:38 /etc/init.d/init.evmd
如果css和crs不是随系统启动而启动,可手工启动命令如下,注意crsd进程的启动默认会带动所有资源启动
#/etc/init.d/init.cssd start
#./crsctl? start crs
手动启、停crs资源过程如下所示
停止RAC:
emctl stop dbconsole
srvctl stop instance -d raw -i raw1
srvctl stop instance -d raw -i raw2
srvctl stop asm -n raw1
srvctl stop asm -n raw2
srvctl stop nodeapps -n raw1
srvctl stop nodeapps -n raw2
启动RAC:???? ?
srvctl start nodeapps -n raw1
srvctl start nodeapps -n raw2
srvctl start asm -n raw1
srvctl start asm -n raw2
srvctl start instance -d raw -i raw2
srvctl start instance -d orcl -i raw1
emctl start dbconsole?????
??????? ?
使用 SRVCTL 启动/停止所有实例及其启用的服务。
srvctl start database -d orcl
srvctl stop database -d orcl
注:CRS Resource 包括GSD(Global Serveice Daemon),ONS(Oracle Notification Service),VIP, Database, Instance 和 Service. 这些资源被分成2类:
GSD,ONS,VIP 和 Listener 属于Noteapps类
Database,Instance 和Service 属于 Database-Related Resource 类。
正常情况下, 进程都是online的:
# ./crs_stat -t
Name?????????? Type?????????? Target??? State???? Host
------------------------
ora.raw.db????? application??? ONLINE??? ONLINE??? raw1
ora.raw.raw.cs?? application??? ONLINE??? ONLINE??? raw1
ora....aw1.srv?? application??? ONLINE??? ONLINE??? raw1
ora....aw2.srv?? application??? ONLINE??? ONLINE??? raw2
ora....w1.inst??? application??? ONLINE??? ONLINE??? raw1
ora....w2.inst??? application??? ONLINE??? ONLINE??? raw2
ora....SM1.asm? application??? ONLINE??? ONLINE??? raw1
ora....W1.lsnr?? application??? ONLINE??? ONLINE??? raw1
ora.raw1.gsd??? application??? ONLINE??? ONLINE??? raw1
ora.raw1.ons??? application??? ONLINE??? ONLINE??? raw1
ora.raw1.vip??? application??? ONLINE??? ONLINE??? raw1
ora....SM2.asm? application??? ONLINE??? ONLINE??? raw2
ora....W2.lsnr?? application??? ONLINE??? ONLINE??? raw2
ora.raw2.gsd?? application??? ONLINE??? ONLINE??? raw2
ora.raw2.ons?? application??? ONLINE??? ONLINE??? raw2
ora.raw2.vip?? application??? ONLINE??? ONLINE??? raw2
unknown和offline
查看crs资源如果出现以下情况:<