rac維護工具集系列(三)--叢集層crsctl系列
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/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- rac叢集日常維護命令
- redis系列:叢集Redis
- 徹底搞懂 etcd 系列文章(三):etcd 叢集運維部署運維
- Redis系列:搭建Redis叢集(叢集模式)Redis模式
- Oracle叢集技術 | 叢集的自啟動系列(一)Oracle
- Oracle RAC日常運維-NetworkManager導致叢集故障Oracle運維
- Elasticsearch使用系列-Docker搭建Elasticsearch叢集ElasticsearchDocker
- 微服務Consul系列之叢集搭建微服務
- Docker部署系列之Docker Compose安裝Redis三主三從叢集DockerRedis
- Elasticsearch系列---生產叢集的索引管理Elasticsearch索引
- RabbitMQ系列(五)使用Docker部署RabbitMQ叢集MQDocker
- 深入剖析Redis系列(三) - Redis叢集模式搭建與原理詳解Redis模式
- 掌握 Kubernetes 故障排除:有效維護叢集的優秀實踐和工具
- Druid.io系列3:Druid叢集節點UI
- 從0到1使用Kubernetes系列(三)——使用Ansible安裝Kubernetes叢集
- k8s叢集自動化維護PODK8S
- Hadoop 系列(二)—— 叢集資源管理器 YARNHadoopYarn
- 【kubernetes叢集系列(二)】Worker(node)安裝(使用kubeadm)
- kafka系列二:多節點分散式叢集搭建Kafka分散式
- oracle RAC 診斷叢集狀態命令Oracle
- spring cloud系列教程第六篇-Eureka叢集版SpringCloud
- 深入理解Redis系列之叢集環境SpringBoot整合RedisSpring Boot
- oracle 11.2.0.4 rac叢集等待事件enq: TM - contentionOracle事件ENQ
- Oracle叢集(RAC)時間同步(ntp和CTSS)Oracle
- redis哨兵,叢集和運維Redis運維
- RabbitMQ叢集運維實踐MQ運維
- Kubernetes 上安裝 EMQ X 系列文章之三 :使用 Helm 管理、部署 EMQ X 叢集MQ
- Redis三種叢集模式Redis模式
- (三)docker-Elasticsearch 叢集DockerElasticsearch
- kubernetes叢集管理命令(三)
- rocketMq之叢集搭建(三)MQ
- elasticsearch(三)---分散式叢集Elasticsearch分散式
- Zookeeper叢集 + Kafka叢集Kafka
- 深入剖析Redis系列(二) - Redis哨兵模式與高可用叢集Redis模式
- 達夢資料庫主備實時叢集搭建和維護資料庫
- Captial One如何實現Artifactory HA叢集的自動化維護APT
- Redis叢集搭建(三主三從)Redis
- Redis叢集搭建 三主三從Redis
- 【ASK_ORACLE】Relink RAC叢集詳細步驟Oracle