ITPub博客

首页 > Linux操作系统 > Linux操作系统 > rac维护工具集系列(三)--集群层crsctl系列

rac维护工具集系列(三)--集群层crsctl系列

原创 Linux操作系统 作者:zhanglei_itput 时间:2009-06-10 14:46:17 0 删除 编辑

rac维护工具集系列(三)--集群层crsctl系列
crsctl
1.检查crs栈状态
[oracle@rac1 bin]$ crsctl check crs
CSS appears healthy
CRS appears healthy
EVM appears healthy
[oracle@rac1 bin]$ crsctl check cssd
CSS appears healthy
[oracle@rac1 bin]$ crsctl check crsd
CRS appears healthy
[oracle@rac1 bin]$ crsctl check evmd
EVM appears healthy

2.配置CRS是否自动启动
CRS进程默认随着OS的启动而启动,但是有时出于维护的目的需要关闭这个特性,root用户执行
root用户执行CRS
[root@rac1 ~]# /u01/app/oracle/product/10.2.0/crs_1/bin/crsctl disable crs
[root@rac1 ~]# more /etc/oracle/scls_scr/rac1/root/crsstart
disable
[root@rac1 ~]# /u01/app/oracle/product/10.2.0/crs_1/bin/crsctl enable crs
[root@rac1 ~]# more /etc/oracle/scls_scr/rac1/root/crsstart
enable

3.启动停止CRS
[root@rac1 ~]# /u01/app/oracle/product/10.2.0/crs_1/bin/crsctl stop crs
Stopping resources. This could take several minutes.
Error while stopping resources. Possible cause: CRSD is down.
[root@rac1 ~]# /u01/app/oracle/product/10.2.0/crs_1/bin/crsctl check crs
Failure 1 contacting CSS daemon
Cannot communicate with CRS
Cannot communicate with EVM
[root@rac1 ~]# /u01/app/oracle/product/10.2.0/crs_1/bin/crsctl start crs
Attempting to start CRS stack
The CRS stack will be started shortly
[root@rac1 ~]# /u01/app/oracle/product/10.2.0/crs_1/bin/crsctl check crs
CSS appears healthy
CRS appears healthy
EVM appears healthy
 

4.查看Votedisk磁盘位置
[oracle@rac1 ~]$ crsctl query css votedisk
 0.     0    /ocfs/clusterware/votingdisk
located 1 votedisk(s).

维护votedisk
    以图形方式安装Clustware过程中,在配置votedisk时,如果选择了External Redundancy策略,则只能填写一个votedisk,但是我们可以使用crsctl命令来添加多个votedisk.
    添加多个votedisk后,这些votedisk互为镜像,可以防止votedisk的单点故障。
    添加和删除votedisk的操作比较危险,必须在停止数据库,停止ASM,停止CRS Stack后操作,并且必须使用-force参数
1.停止crs
[root@rac1 ~]#  /u01/app/oracle/product/10.2.0/crs_1/bin/crsctl stop crs;
Stopping resources. This could take several minutes.
Successfully stopped CRS resources.
Stopping CSSD.
Shutting down CSS daemon.
Shutdown request successfully issued.
2.添加votedisk镜像
[root@rac1 ~]#  /u01/app/oracle/product/10.2.0/crs_1/bin/crsctl add css votedisk  /ocfs/clusterware/votingdisk2 -force
Now formatting voting disk: /ocfs/clusterware/votingdisk2
successful addition of votedisk /ocfs/clusterware/votingdisk2.
3.查询votedisk
[root@rac1 ~]#  /u01/app/oracle/product/10.2.0/crs_1/bin/crsctl query css votedisk
 0.     0    /ocfs/clusterware/votingdisk
 1.     0    /ocfs/clusterware/votingdisk2
located 2 votedisk(s).
4.重新启动
[root@rac1 ~]#  /u01/app/oracle/product/10.2.0/crs_1/bin/crsctl start crs;
Attempting to start CRS stack
The CRS stack will be started shortly
5.删除votedisk
[root@rac1 ~]# /u01/app/oracle/product/10.2.0/crs_1/bin/crsctl delete css votedisk /ocfs/clusterware/votingdisk2 -force
successful deletion of votedisk /ocfs/clusterware/votingdisk2.
6.查询votedisk
[root@rac1 ~]#  /u01/app/oracle/product/10.2.0/crs_1/bin/crsctl query css votedisk
 0.     0    /ocfs/clusterware/votingdisk
located 1 votedisk(s).

7.检查crs状态
[oracle@rac1 ~]$ crsctl check crs
CSS appears healthy
CRS appears healthy
EVM appears healthy

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/9252210/viewspace-605808/,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2009-02-10

  • 博文量
    400
  • 访问量
    1125789