RAC11gR2 simulates OCR and Votedisk damage recovery

Source: Internet
Author: User
1) Check the pre-destruction ocr and votedisk information and check the ocr automatic backup [root @ rac1 ~] # Ocrconfig-showbackuprac22013101309: 45: 30u01gridproduct11. 2.0cdatarac-clusterbacku

1) Check the pre-destruction ocr and votedisk information and check the ocr automatic backup [root @ rac1 ~] # Ocrconfig-showbackuprac22013/10/1309: 45: 30/u01/grid/product/11.2.0/cdata/rac-cluster/backu


1) Check ocr and votedisk information before destruction

Check ocr automatic backup

[Root @ rac1 ~] # Ocrconfig-showbackup


Rac2 09:45:30/u01/grid/product/11.2.0/cdata/rac-cluster/backup00.ocr


Rac2 05:45:29/u01/grid/product/11.2.0/cdata/rac-cluster/backup01.ocr


Rac2 01:45:28/u01/grid/product/11.2.0/cdata/rac-cluster/backup02.ocr


Rac2 01:45:26/u01/grid/product/11.2.0/cdata/rac-cluster/day. ocr


Rac2 02:55:56/u01/grid/product/11.2.0/cdata/rac-cluster/week. ocr

PROT-25: Manual backups for the Oracle Cluster Registry are not available.


There is a PROT-25 prompt information, manual backup is not valid, so after destruction directly with Automatic Backup Recovery


Check ocr disk Information

[Root @ rac1 ~] # Ocrcheck

Status of Oracle Cluster Registry is as follows:

Version: 3

Total space (kbytes): 262120

Used space (kbytes): 2720

Available space (kbytes): 259400

ID: 2026562699

Device/File Name: + OCRDATA

Device/File integrity check succeeded

Device/File not configured

Device/File not configured


Device/File not configured


Device/File not configured


Cluster registry integrity check succeeded


Logical upload uption check succeeded



View votedisk disk Information

[Root @ rac1 ~] # Crsctl query css votedisk

# STATE File Universal Id File Name Disk group

------------------------------------------

1. ONLINE 5c316e6ab4c04facbfdd4ca0e836a798 (ORCL: OCR1) [OCRDATA]

2. ONLINE abcc18afe6214fbcbfa02fad1c41b21b (ORCL: OCR2) [OCRDATA]

3. ONLINE 31e0a9df91514f73bf50a4e0a344af3d (ORCL: o301) [OCRDATA]

Located 3 voting disk (s ).



You can see that both the OCR disk and votedisk are managed through the asm ocrdata disk group.


View ASM disk group OCRDATA information, my OCRDATA disk group is composed of OCR1-3, so directly query through the following command

[Root @ rac1 ~] #/Etc/init. d/oracleasm querydisk-d OCR1

Disk "OCR1" is a valid ASM disk on device/dev/sda1 [8, 1]


[Root @ rac1 ~] #/Etc/init. d/oracleasm querydisk-d OCR2

Disk "OCR2" is a valid ASM disk on device/dev/sdh1 [2, 8,113]


[Root @ rac1 ~] #/Etc/init. d/oracleasm querydisk-d o3303.

Disk "oconvention" is a valid ASM disk on device/dev/sdb1 [8, 17]


Because the ASM parameter file is stored in OCRDATA, A spfile is used for backup.


SQL> show parameter spfile;


NAMETYPE VALUE

-----------------------------------------------------------------------------

Spfilestring + OCRDATA/rac-cluster/asmparame

Terfile/registry.253.825083547



SQL> create pfile = '/tmp/asmbak. ora' from spfile; -- back up to/tmp/asmbak. ora


File created.



2) simulate damage

Use the dd command to destroy these disks,

[Root @ rac1 ~] # Dd if =/dev/zero of =/dev/sda1 bs = 1 M count = 10

10 + 0 records in

10 + 0 records out

10485760 bytes (10 MB) copied, 0.005454 seconds, 1.9 GB/s

[Root @ rac1 ~] # Dd if =/dev/zero of =/dev/sdh1 bs = 1 M count = 10

10 + 0 records in

10 + 0 records out

10485760 bytes (10 MB) copied, 0.00603 seconds, 1.7 GB/s



Run the following command to find that the services on each node are normal.

[Root @ rac1 ~] # Crs_stat-t

Name Type Target State Host

------------------------------------------------------------

Ora. DATA. dg ora... up. type ONLINE rac1

Ora. FRA. dg ora... up. type ONLINE rac1

Ora... ER. lsnr ora... er. type ONLINE rac1

Ora... N1.lsnr ora... er. type ONLINE rac1

Ora. OCRDATA. dg ora... up. type ONLINE rac1

Ora. asm ora. asm. type ONLINE rac1

Ora. eons ora. eons. type ONLINE rac1

Ora. gsd ora. gsd. type OFFLINE

Ora... network ora... rk. type ONLINE rac1

Ora. Solaris ora. productname. type OFFLINE

Ora. ons ora. ons. type ONLINE rac1

Ora... SM1.asm application ONLINE rac1

Ora... C1.lsnr application ONLINE rac1

Ora. rac1.gsd application OFFLINE

Ora. rac1.ons application ONLINE rac1

Ora. rac1.vip ora... t1.type ONLINE rac1

Ora... SM2.asm application ONLINE rac2

Ora... C2.lsnr application ONLINE rac2

Ora. rac2.gsd application OFFLINE

Ora. rac2.ons application ONLINE rac2

Ora. rac2.vip ora... t1.type ONLINE rac2

Ora. ractest. db ora... se. type ONLINE rac1

Ora... ry. acfs ora... fs. type ONLINE rac1

Ora. scan1.vip ora... ip. type ONLINE rac1

[Root @ rac1 ~] # Ocrcheck

Status of Oracle Cluster Registry is as follows:

Version: 3

Total space (kbytes): 262120

Used space (kbytes): 2720

Available space (kbytes): 259400

ID: 2026562699

Device/File Name: + OCRDATA

Device/File integrity check succeeded


Device/File not configured


Device/File not configured


Device/File not configured


Device/File not configured


Cluster registry integrity check succeeded


Logical upload uption check succeeded


[Root @ rac1 ~] # Crsctl query css votedisk

# STATE File Universal Id File Name Disk group

------------------------------------------

1. ONLINE 5c316e6ab4c04facbfdd4ca0e836a798 (ORCL: OCR1) [OCRDATA]

2. ONLINE abcc18afe6214fbcbfa02fad1c41b21b (ORCL: OCR2) [OCRDATA]

3. ONLINE 31e0a9df91514f73bf50a4e0a344af3d (ORCL: o301) [OCRDATA]

Located 3 voting disk (s ).



Stop RAC1crs Service

[Root @ rac1 ~] # Crsctl stop crs

CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on 'rac1'

CRS-2673: Attempting to stop 'ora. crsd' on 'rac1'

CRS-2790: Starting shutdown of Cluster Ready Services-managed resources on 'rac1'

CRS-2673: Attempting to stop 'ora. LISTENER. lsnr 'on 'rac1'

CRS-2673: Attempting to stop 'ora. LISTENER_SCAN1.lsnr 'on 'rac1'

CRS-2673: Attempting to stop 'ora. OCRDATA. dg 'on 'rac1'

CRS-2673: Attempting to stop 'ora. ractest. db' on 'rac1'

CRS-2673: Attempting to stop 'ora. registry. acfs 'on 'rac1'

CRS-2677: Stop of 'ora. registry. acfs 'on 'rac1' succeeded

CRS-2677: Stop of 'ora. LISTENER. lsnr 'on 'rac1' succeeded

CRS-2673: Attempting to stop 'ora. rac1.vip 'on 'rac1'

CRS-2677: Stop of 'ora. LISTENER_SCAN1.lsnr 'on 'rac1' succeeded

CRS-2673: Attempting to stop 'ora. scan1.vip 'on 'rac1'

CRS-2677: Stop of 'ora. rac1.vip 'on 'rac1' succeeded

CRS-2672: Attempting to start 'ora. rac1.vip 'on 'rac2'

CRS-2677: Stop of 'ora. scan1.vip 'on 'rac1' succeeded

CRS-2672: Attempting to start 'ora. scan1.vip 'on 'rac2'

CRS-2676: Start of 'ora. rac1.vip 'on 'rac2' succeeded

CRS-2676: Start of 'ora. scan1.vip 'on 'rac2' succeeded

CRS-2672: Attempting to start 'ora. LISTENER_SCAN1.lsnr 'on 'rac2'

CRS-2676: Start of 'ora. LISTENER_SCAN1.lsnr 'on 'rac2' succeeded

CRS-2677: Stop of 'ora. OCRDATA. dg 'on 'rac1' succeeded

CRS-2677: Stop of 'ora. ractest. db 'on 'rac1' succeeded

CRS-2673: Attempting to stop 'ora. DATA. dg 'on 'rac1'

CRS-2673: Attempting to stop 'ora. FRA. dg 'on 'rac1'

CRS-2677: Stop of 'ora. FRA. dg 'on 'rac1' succeeded

CRS-2677: Stop of 'ora. DATA. dg 'on 'rac1' succeeded

CRS-2673: Attempting to stop 'ora. asm 'on 'rac1'

CRS-2677: Stop of 'ora. asm 'on 'rac1' succeeded

CRS-2673: Attempting to stop 'ora. ons 'on 'rac1'

CRS-2673: Attempting to stop 'ora. eons 'on 'rac1'

CRS-2677: Stop of 'ora. ons 'on 'rac1' succeeded

CRS-2673: Attempting to stop 'ora. net1.network 'on 'rac1'

CRS-2677: Stop of 'ora. net1.network 'on 'rac1' succeeded

CRS-2677: Stop of 'ora. eons 'on 'rac1' succeeded

CRS-2792: Shutdown of Cluster Ready Services-managed resources on 'rac1' has completed

CRS-2677: Stop of 'ora. crsd' on 'rac1' succeeded

CRS-2673: Attempting to stop 'ora.css dmonitor 'on 'rac1'

CRS-2673: Attempting to stop 'ora. ctssd 'on 'rac1'

CRS-2673: Attempting to stop 'ora. evmd 'on 'rac1'

CRS-2673: Attempting to stop 'ora. asm 'on 'rac1'

CRS-2673: Attempting to stop 'ora. drivers. acfs 'on 'rac1'

CRS-2673: Attempting to stop 'ora. mdnsd' on 'rac1'

CRS-2677: Stop of 'ora.css dmonitor 'on 'rac1' succeeded

CRS-2677: Stop of 'ora. evmd 'on 'rac1' succeeded

CRS-2677: Stop of 'ora. mdnsd' on 'rac1' succeeded

CRS-2677: Stop of 'ora. ctssd 'on 'rac1' succeeded

CRS-2677: Stop of 'ora. drivers. acfs 'on 'rac1' succeeded

CRS-2677: Stop of 'ora. asm 'on 'rac1' succeeded

CRS-2673: Attempting to stop 'ora.css d' on 'rac1'

CRS-2677: Stop of 'ora.css d' on 'rac1' succeeded

CRS-2673: Attempting to stop 'ora. gpnpd 'on 'rac1'

CRS-2673: Attempting to stop 'ora. diskmon 'on 'rac1'

CRS-2677: Stop of 'ora. gpnpd 'on 'rac1' succeeded

CRS-2673: Attempting to stop 'ora. gipcd 'on 'rac1'

CRS-2677: Stop of 'ora. gipcd' on 'rac1' succeeded

CRS-2677: Stop of 'ora. diskmon' on 'rac1' succeeded

CRS-2793: Shutdown of Oracle High Availability Services-managed resources on 'rac1' has completed

CRS-4133: Oracle High Availability Services has been stopped.




3) Fault Locating


The system logs cannot be started properly and the alter logs are tracked. (The system logs do not contain any important information)


[Root @ rac1 ~] # Tail-f/u01/grid/product/11.2.0/log/rac1/alertrac1.log


........

[Ohasd (28327)] CRS-2765: Resource 'ora.css dmonitor 'has failed on server 'rac1 '.

11:22:46. 094

[Cssd (28791)] CRS-1713: CSSD daemon is started in clustered mode

11:22:46. 178

[Cssd (28791)] CRS-1637: Unable to locate configured voting file with ID 5c%e6a-b4c04fac-bfdd4ca0-e836a798; details (: CSSNM00020 :) in/u01/grid/product/11.2.0/log/rac1/cssd/ocssd. log

11:22:46. 179

[Cssd (28791)] CRS-1637: Unable to locate configured voting file with ID abcc18af-e6214fbc-bfa02fad-1c41b21b; details (: CSSNM00020 :) in/u01/grid/product/11.2.0/log/rac1/cssd/ocssd. log

11:22:46. 179

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.