[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 狀態
[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).
創新互聯建站專注于冀州企業網站建設,
成都響應式網站建設公司,
商城網站開發。冀州網站建設公司,為冀州等地區提供建站服務。全流程按需網站設計,專業設計,全程項目跟蹤,
創新互聯建站專業和態度為您提供的服務
另外有需要云服務器可以了解下創新互聯cdcxhl.cn,海內外云服務器15元起步,三天無理由+7*72小時售后在線,公司持有idc許可證,提供“云服務器、裸金屬服務器、高防服務器、香港服務器、美國服務器、虛擬主機、免備案服務器”等云主機租用服務以及企業上云的綜合解決方案,具有“安全穩定、簡單易用、服務可用性高、性價比高”等特點與優勢,專為企業上云打造定制,能夠滿足用戶豐富、多元化的應用場景需求。
分享文章:crsctl常用命令-創新互聯
轉載來于:http://vcdvsql.cn/article8/jieop.html
成都網站建設公司_創新互聯,為您提供品牌網站建設、網站導航、網站內鏈、定制開發、電子商務、微信小程序
廣告
聲明:本網站發布的內容(圖片、視頻和文字)以用戶投稿、用戶轉載內容為主,如果涉及侵權請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網站立場,如需處理請聯系客服。電話:028-86922220;郵箱:631063699@qq.com。內容未經允許不得轉載,或轉載時需注明來源:
創新互聯