设为首页 收藏本站
查看: 405|回复: 0

[经验分享] crsctl 常用命令

[复制链接]
累计签到:1 天
连续签到:1 天
发表于 2014-6-3 10:51:36 | 显示全部楼层 |阅读模式
[oracle@rac01 ~]$ crsctlUsage: crsctl check  crs          - checks the viability of the CRS stack
       crsctl check  cssd         - checks the viability of CSS
       crsctl check  crsd         - checks the viability of CRS
       crsctl check  evmd         - checks the viability of EVM
       crsctl set    css <parameter> <value> - sets a parameter override
       crsctl get    css <parameter> - gets the value of a CSS parameter
       crsctl unset  css <parameter> - sets CSS parameter to its default
       crsctl query  css votedisk    - lists the voting disks used by CSS
       crsctl add    css votedisk <path> - adds a new voting disk
       crsctl delete css votedisk <path> - removes a voting disk
       crsctl enable  crs    - enables startup for all CRS daemons
       crsctl disable crs    - disables startup for all CRS daemons
       crsctl start crs  - starts all CRS daemons.
       crsctl stop  crs  - stops all CRS daemons. Stops CRS resources in case of cluster.
       crsctl start resources  - starts CRS resources.
       crsctl stop resources  - stops  CRS resources.
       crsctl debug statedump evm  - dumps state info for evm objects
       crsctl debug statedump crs  - dumps state info for crs objects
       crsctl debug statedump css  - dumps state info for css objects
       crsctl debug log css [module:level]{,module:level} ...
                             - Turns on debugging for CSS
       crsctl debug trace css - dumps CSS in-memory tracing cache
       crsctl debug log crs [module:level]{,module:level} ...
                             - Turns on debugging for CRS
       crsctl debug trace crs - dumps CRS in-memory tracing cache
       crsctl debug log evm [module:level]{,module:level} ...
                             - Turns on debugging for EVM
       crsctl debug trace evm - dumps EVM in-memory tracing cache
       crsctl debug log res <resname:level> turns on debugging for resources
       crsctl query crs softwareversion [<nodename>] - lists the version of CRS software installed
       crsctl query crs activeversion - lists the CRS software operating version
       crsctl lsmodules css - lists the CSS modules that can be used for debugging
       crsctl lsmodules crs - lists the CRS modules that can be used for debugging
       crsctl lsmodules evm - lists the EVM modules that can be used for debugging

If necesary any of these commands can be run with additional tracing by
adding a "trace" argument at the very front.
Example: crsctl trace check css


1.检查crs 状态

[oracle@rac01 ~]$ crsctl  check  crs
CSS appears healthy
CRS appears healthy
EVM appears healthy

以上输出的crs css evm组件都是正常的,若有组件检查失败,

输出会给出以下Failure 信息:

[oracle@rac01 ~]$ crsctl check crs
Failure 1 contacting CSS daemon
Cannot communicate with CRS
Cannot communicate with EVM


2.检查crs各个组件的状态信息

检查cssd组件状态

[oracle@rac01 ~]$ crsctl check cssd
CSS appears healthy

检查crsd组件状态
[oracle@rac01 ~]$ crsctl check crsd
CRS appears healthy

检查evmd组件状态
[oracle@rac01 ~]$ crsctl  check evmd
EVM appears healthy



3.用以下两条命令来维护crs服务的自动启动,需要用root用户执行

[iyunv@rac01 ~]# /opt/ora10g/product/10.2.0/crs/bin/crsctl disable crs

[iyunv@rac01 ~]# /opt/ora10g/product/10.2.0/crs/bin/crsctl enable  crs



4.用root身份来停止crs服务

[iyunv@rac01 ~]# /opt/ora10g/product/10.2.0/crs/bin/crsctl  stop crs
Stopping resources.
Successfully stopped CRS resources
Stopping CSSD.
Shutting down CSS daemon.
Shutdown request successfully issued.

此时我们在rac01节点检查crs各个组件的状态会有以下的信息

[oracle@rac01 ~]$ crsctl check crs
Failure 1 contacting CSS daemon
Cannot communicate with CRS
Cannot communicate with EVM

rac02节点正常
[oracle@rac02 ~]$ crsctl check crs
CSS appears healthy
CRS appears healthy
EVM appears healthy


5.用root身份来开启CRS服务

[iyunv@rac01 ~]# /opt/ora10g/product/10.2.0/crs/bin/crsctl  start  crs
Attempting to start CRS stack
The CRS stack will be started shortly

此时系统正在启动CRS,我们来检查此时crs服务的状态,crs组件服务依次开启
只要所有组件状态都是healthy

[oracle@rac01 ~]$ crsctl check crs
CSS appears healthy
Cannot communicate with CRS
EVM appears healthy

[oracle@rac01 ~]$ crsctl check crs
CSS appears healthy
CRS appears healthy
EVM appears healthy




6. 查看votedisk的信息

[oracle@rac01 ~]$ crsctl  query css votedisk
0.     0    /dev/raw/raw1

located 1 votedisk(s).


运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.iyunv.com/thread-20035-1-1.html 上篇帖子: 在linux AS5.4 64bit 安装CRS时,执行root.sh时报错 下篇帖子: 执行srvctl报错 :error while loading shared libraries: libpthread.so.0:
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表