crsctl 常用命令
admin
2023-05-15 01:22:24
0
 [oracle@rac01 ~]$ crsctl
Usage: 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   - sets a parameter override
       crsctl get    css  - gets the value of a CSS parameter
       crsctl unset  css  - sets CSS parameter to its default
       crsctl query  css votedisk    - lists the voting disks used by CSS
       crsctl add    css votedisk  - adds a new voting disk
       crsctl delete css votedisk  - 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  turns on debugging for resources
       crsctl query crs softwareversion [] - 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用户执行

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

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



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

[root@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服务

[root@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).


相关内容

热门资讯

“前半生是恶霸,后半生是学霸”... 一个人的逆袭叫传奇。一群人的集体转行,叫世道变了。文|张雪莹出品|Vista天下知识局提到日本黑帮,...
若不想成7年来第五个被赶下台的... 【文/观察者网 张菁娟】“这是自2022年保守党前首相特拉斯上任仅数周便仓促辞职以来,英国政局最动荡...
产学研各界代表齐聚一堂,共议A... 封面新闻记者 易弋力 20支战队4小时巅峰对决;三位大咖三个不同视角解读“技术打法+产业路径+数据洞...
评论丨香蕉复仇、蓝莓出轨?警惕... AI技术降低了创作门槛,不等于降低了质量门槛和责任门槛;可以利用AI“手搓”短剧,但不应没下限地制造...
人工智能如何重塑电影行业?中国... 北京5月15日电 (记者 孙自法)人工智能生成内容(AIGC)正为众多行业带来深刻巨变,引发广泛关注...
济南隆超取得便捷式喷涂装置专利... 国家知识产权局信息显示,济南隆超石油机械锻造有限公司取得一项名为“一种便捷式喷涂装置”的专利,授权公...
原创 国... ## 国际空间站宇航员在微重力环境下与新鲜水果合影 维生素C很重要,即使在太空中也是如此。 来源:...
原创 低... 手机厂商的618活动陆续都开启了,在苹果宣布iPhone 17 Pro系列降价千元后,华为也迅速跟进...
微信第一行代码曝光! IT之家 5 月 15 日消息,据 CCF 计算机博物馆官方消息,2026 年 5 月 15 日,中...
光鼎电子取得LED数码管灌胶设... 国家知识产权局信息显示,连云港光鼎电子有限公司取得一项名为“一种LED数码管灌胶设备”的专利,授权公...