Oracle RAC ASM Disk Header backup Recovery and rebuild example description

Source: Internet
Author: User
Tags count backup

SELECT * from Dba_data_files;

Col name format A15

Col failgroup format A20

Col path format A30

Oracle kfed and Kfod Tools description

1. Check V$asm_disk.header_status toverify that the disk header was in a ' member ' state. Check the status of the Asmdisk header.

Select Path,header_status from V$asm_disk;

kfed merge/dev/raw/raw5 Text=/u01/datap1disker

1.1 Compiling kfed:

[Oracle@rac2 Lib] $cd $ORACLE _home/rdbms/lib

[Oracle@rac2 lib]$ make-f ins_rdbms.mk ikfed

1.2 View kfed Location:

[Oracle@rac2 lib]$ which kfed

Mv/u01/oracle/db/rdbms/lib/kfed/u01/oracle/db/bin/kfed

1.3 kfed command uses:

[Oracle@rac2 lib]$./kfed-h--View kfed Help

Select Group_number,disk_number,mount_status,header_status,state,name,path from v$asm_disk;//--view ASM disk Groups

This column more highlights: http://www.bianceng.cnhttp://www.bianceng.cn/database/Oracle/

Select Dg.group_number "G.no", Dg.name,d.disk_number,d.mount_status,d.header_status,dg.type,d.name,d.path

From V$asm_disk D,v$asm_diskgroup DG where Dg.group_number=d.group_number;

--View from the system level:

[Oracle@rac2 ~]$ ls-lrt/dev/oracleasm/disks/*

1.4--use kfed to view ASM Disk groups:./kfed read/dev/oracleasm/disks/data1 Text=/u01/datap1.txt

2.3 Starting DD Backup

Select Name,path from V$asm_disk;

DD if=/dev/oracleasm/disks/vol1 Of=/u01/datap1header bs=4096 count=1

DD if=/dev/oracleasm/disks/vol2 Of=/u01/fraheader bs=4096 count=1

2.4 Stop ASM Instance

Sys@anqing2 (RAC2) > select Name,state,type from V$asm_diskgroup;

/u01/oracle/oracle/product/10.2.0/crs/bin/crs_stat-t-V

/u01/oracle/oracle/product/10.2.0/crs/bin/srvctl Stop instance-d orcl-i Orcl2

[Oracle@rac2 u01]$/u01/oracle/oracle/product/10.2.0/crs/bin/srvctl Stop Asm-n RAC3

2.5 Analog Diskheader Failure

[Oracle@rac2 u01]$ dd If=/dev/zero of=/dev/oracleasm/disks/vol1 bs=4096 count=1

2.6 View the Diskheader at this time with kfed

[Oracle@rac2 u01]$ kfed read/dev/oracleasm/disks/vol1

2.7 Starting ASM Instances

[Oracle@rac2 u01]$ Export ORACLE_SID=+ASM2

2.8 Restore With Previous backup

DD If=/u01/datap1header of=/dev/oracleasm/disks/vol1 bs=4096 count=1

2.9 Verifying diskheader with kfed

[Oracle@rac2 u01]$./kfed Read//dev/oracleasm/disks/vol1

This article is from the "Technical Knowledge exchange" blog, please be sure to keep this source http://xiahouyao123.blog.51cto.com/646312/822897

Related Article

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.