Note : This needs all dependent DB’s to be brought down
Check the current voting disks
[root@testdb-stg-01 crs_home]# crsctl query css votedisk
0. 0 /dev/mapper/oraMFGSTGclus02_1708_42B2_voting_1000
1. 0 /dev/mapper/oraMFGSTGclus02_1708_42B3_voting_mirror1_1000
Once DBA shutdown all the DB on hosts bring down CRS on all the nodes.
[root@testdb-stg-01 /]# /etc/init.d/init.crs stop
Shutting down Oracle Cluster Ready Services (CRS):
Stopping resources. This could take several minutes.
Successfully stopped CRS resources.
[root@testdb-stg-02 /]# /etc/init.d/init.crs stop
Shutting down Oracle Cluster Ready Services (CRS):
Stopping resources. This could take several minutes.
Successfully stopped CRS resources.
Take backup of voting disk.
[root@testdb-stg-01 /]# dd if=/dev/mapper/oraMFGSTGclus02_1708_42B2_voting_1000 of=/oracle/export/CRS/voting.dmp
2096640+0 records in
2096640+0 records out
[root@testdb-stg-01 /]# ls -l /oracle/export/CRS/voting.dmp
-rw-r--r-- 1 root root 1073479680 Jun 22 08:51 /oracle/export/CRS/voting.dmp
Add new devices .
[root@testdb-stg-01 /]# crsctl add css votedisk /dev/mapper/testdb-stg-01-02_cluster_vote_003_1000M -force
Now formatting voting disk: /dev/mapper/testdb-stg-01-02_cluster_vote_003_1000M
successful addition of votedisk /dev/mapper/testdb-stg-01-02_cluster_vote_003_1000M.
[root@testdb-stg-01 /]# crsctl add css votedisk /dev/mapper/testdb-stg-01-02_cluster_votemirr_004_1000M -force
Now formatting voting disk: /dev/mapper/testdb-stg-01-02_cluster_votemirr_004_1000M
successful addition of votedisk /dev/mapper/testdb-stg-01-02_cluster_votemirr_004_1000M.
Start CRS to check if new disks are visible. Please note this will bring up the DB’s again.
[root@testdb-stg-01 /]# /etc/init.d/init.crs start
Startup will be queued to init within 30 seconds.
[root@testdb-stg-01 /]# tail -f /var/log/messages
Jun 22 08:53:05 testdb-stg-01 prashasi: Oracle Cluster Ready Services starting by user request.
Jun 22 08:53:37 testdb-stg-01 logger: Cluster Ready Services completed waiting on dependencies.
Jun 22 08:53:39 testdb-stg-01 last message repeated 2 times
Jun 22 08:53:39 testdb-stg-01 logger: Running CRSD with TZ =
[root@testdb-stg-01 /]# crsctl check crs
CSS appears healthy
CRS appears healthy
EVM appears healthy
[root@testdb-stg-01 /]# crsctl query css votedisk
0. 0 /dev/mapper/oraMFGSTGclus02_1708_42B2_voting_1000
1. 0 /dev/mapper/oraMFGSTGclus02_1708_42B3_voting_mirror1_1000
2. 0 /dev/mapper/testdb-stg-01-02_cluster_vote_003_1000M
3. 0 /dev/mapper/testdb-stg-01-02_cluster_votemirr_004_1000M
located 4 votedisk(s).
Once new disks are visible as voting disks ask DBA’s to bring down the DB’s again and then stop the CRS again.
[root@testdb-stg-01 /]# /etc/init.d/init.crs stop
Shutting down Oracle Cluster Ready Services (CRS):
Stopping resources. This could take several minutes.
Successfully stopped CRS resources.
Stopping CSSD.
Shutting down CSS daemon.
Shutdown request successfully issued.
Shutdown has begun. The daemons should exit soon.
[root@testdb-stg-01 /]# crsctl check crs
Failure 1 contacting CSS daemon
Cannot communicate with CRS
Cannot communicate with EVM
Remove the old voting disks.
[root@testdb-stg-01 /]# crsctl delete css votedisk /dev/mapper/oraMFGSTGclus02_1708_42B2_voting_1000 -force
successful deletion of votedisk /dev/mapper/oraMFGSTGclus02_1708_42B2_voting_1000.
[root@testdb-stg-01 /]# crsctl delete css votedisk /dev/mapper/oraMFGSTGclus02_1708_42B3_voting_mirror1_1000 -force
successful deletion of votedisk /dev/mapper/oraMFGSTGclus02_1708_42B3_voting_mirror1_1000.
Start the CRS again and check the CRS status as well as voting disks.
[root@testdb-stg-01 /]# /etc/init.d/init.crs start
Startup will be queued to init within 30 seconds.
[root@testdb-stg-01 /]# tail -f /var/log/messages
Jun 22 08:58:47 testdb-stg-01 prashasi: Oracle Cluster Ready Services starting by user request.
Jun 22 08:59:00 testdb-stg-01 logger: Cluster Ready Services completed waiting on dependencies.
Jun 22 08:59:03 testdb-stg-01 last message repeated 2 times
Jun 22 08:59:03 testdb-stg-01 logger: Running CRSD with TZ =
[root@testdb-stg-01 /]# crsctl check crs
CSS appears healthy
Cannot communicate with CRS
EVM appears healthy
[root@testdb-stg-01 /]# crsctl check crs
CSS appears healthy
CRS appears healthy
EVM appears healthy
[root@testdb-stg-01 /]# crsctl query css votedisk
0. 0 /dev/mapper/testdb-stg-01-02_cluster_vote_003_1000M
1. 0 /dev/mapper/testdb-stg-01-02_cluster_votemirr_004_1000M
located 2 votedisk(s).
~~~ Cheers
No comments :
Post a Comment