溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊(cè)×
其他方式登錄
點(diǎn)擊 登錄注冊(cè) 即表示同意《億速云用戶服務(wù)條款》

crsctl 常用命令

發(fā)布時(shí)間:2020-08-03 20:36:26 來源:網(wǎng)絡(luò) 閱讀:613 作者:Evils798 欄目:關(guān)系型數(shù)據(jù)庫
 [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 <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 狀態(tài)

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

以上輸出的crs css evm組件都是正常的,若有組件檢查失敗,

輸出會(huì)給出以下Failure 信息:

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


2.檢查crs各個(gè)組件的狀態(tài)信息

檢查cssd組件狀態(tài)

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

檢查crsd組件狀態(tài)
[oracle@rac01 ~]$ crsctl check crsd
CRS appears healthy

檢查evmd組件狀態(tài)
[oracle@rac01 ~]$ crsctl  check evmd
EVM appears healthy



3.用以下兩條命令來維護(hù)crs服務(wù)的自動(dòng)啟動(dòng),需要用root用戶執(zhí)行

[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服務(wù)

[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.

此時(shí)我們?cè)趓ac01節(jié)點(diǎn)檢查crs各個(gè)組件的狀態(tài)會(huì)有以下的信息

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

rac02節(jié)點(diǎn)正常
[oracle@rac02 ~]$ crsctl check crs
CSS appears healthy
CRS appears healthy
EVM appears healthy


5.用root身份來開啟CRS服務(wù)

[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

此時(shí)系統(tǒng)正在啟動(dòng)CRS,我們來檢查此時(shí)crs服務(wù)的狀態(tài),crs組件服務(wù)依次開啟
只要所有組件狀態(tài)都是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).


向AI問一下細(xì)節(jié)

免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如果涉及侵權(quán)請(qǐng)聯(lián)系站長(zhǎng)郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。

AI