Note: This activity can be done online.
[root@testdb-stg-01 crs_home]# export PATH=$PATH:/oracle/product/crs_home/bin
Check the current status
[root@testdb-stg-01 crs_home]# ocrcheck
Status of Oracle Cluster Registry is as follows :
Version : 2
Total space (kbytes) : 1048040
Used space (kbytes) : 3636
Available space (kbytes) : 1044404
ID : 1397237804
Device/File Name : /dev/mapper/MFGSTGclus02_1708_42B6_ocr_1000
Device/File integrity check succeeded
Device/File Name : /dev/mapper/MFGSTGclus02_1708_42B0_ocr_mirror1_1000
Device/File integrity check succeeded
Cluster registry integrity check succeeded
Take OCR backup.
[root@testdb-stg-01 CRS]# ocrconfig -export /oracle/export/CRS/OCR_Backup -s online
Change the OCR config. Please make sure new OCR disk have right permission ( root:dba) else CRS won’t come up once brought down.
[root@testdb-stg-01 CRS]# ocrconfig -replace ocr /dev/mapper/testdb-stg-01-02_cluster_ocr_001_1000M
[root@testdb-stg-01 CRS]# ocrconfig -replace ocrmirror /dev/mapper/testdb-stg-01-02_cluster_ocrmirr_002_1000M
Check the current status.
[root@testdb-stg-01 CRS]# ocrcheck
Status of Oracle Cluster Registry is as follows :
Version : 2
Total space (kbytes) : 1048040
Used space (kbytes) : 3636
Available space (kbytes) : 1044404
ID : 1397237804
Device/File Name : /dev/mapper/testdb-stg-01-02_cluster_ocr_001_1000M
Device/File integrity check succeeded
Device/File Name : /dev/mapper/testdb-stg-01-02_cluster_ocrmirr_002_1000M
Device/File integrity check succeeded
Cluster registry integrity check succeeded.
~~~ Cheers
No comments :
Post a Comment