Automatic asmdiskheader backup mechanism after Oracle10.2.0.5
Automatic Backup of asm disk header after Oracle 10.2.0.5
Before Version 10.2.0.5, the ASM disk header is not automatically backed up. You must manually run kfed read or dd to back up the disk,
From 10.2.0.5 onwards, the ASM disk header will be automatically backed up to the penultimate block of the first AU #1.
The AU size is a 1 mb diskgroup. Each AU includes 256 KB/4 kb blocks. Therefore, the backup information is located in block 254th of AU #1.
The AU size is a 2 mb diskgroup. Each AU contains 512 KB/4 kb blocks. Therefore, the backup information is located in block 510th of AU #1.
The AU size is a 4 mb diskgroup, and each AU contains a block quantity of = 4096KB/4KB = 1024. Therefore, the backup information is located in block 1,022nd of AU #1.
The AU size is an 8 Mb DISKGROUP. Each AU contains 2048 blocks (8192KB/4KB). Therefore, the backup information is located in block 2046th of AU #1.
The AU size is a 16 mb diskgroup. Each AU contains 4096 blocks (4,094th KB/4 kb). Therefore, the backup information is located in block of AU #1.
If the au = 1 parameter is not added, it is the following block
The AU size is a 1 mb diskgroup. Each AU includes 256 KB/4 kb blocks. Therefore, the backup information is located in block 510th.
The AU size is a 2 mb diskgroup. Each AU contains 512 KB/4 kb blocks. Therefore, the backup information is located in block 1,022nd.
The size of the AU is a 4 mb diskgroup. Each AU contains 1024 blocks, with the number of blocks equal to 4096KB/4KB. Therefore, the backup information is located in block 2046th.
The AU size is an 8 Mb DISKGROUP. Each AU contains 2048 blocks (8192KB/4KB). Therefore, the backup information is located in block 4,094th.
The AU size is a 16 mb diskgroup. Each AU contains 4096 blocks (8190 KB/4 kb). Therefore, the backup information is located in block.
The following is the test process of 12c, with the au = 1 parameter added:
1: au size is 1 M
[Grid @ 12cdb1 ~] $ Kfed read/dev/sde1 aunum = 1 blknum = 254 ausz = 1048576 | more
Kfbh. endian: 1; 0x000: 0x01
Kfbh. hard: 130; 0x001: 0x82
Kfbh. type: 1; 0x002: KFBTYP_DISKHEAD
Kfbh. datfmt: 1; 0x003: 0x01
Kfbh. block. blk: 254; 0x004: blk = 254
Kfbh. block. obj: 2147483648; 0x008: disk = 0
Kfbh. check: 2583217763; 0x00c: 0x99f8c663
Kfbh. fcn. base: 0; 0x10: 0x00000000
Kfbh. fcn. wrap: 0; 0x014: 0x00000000
Kfbh. spare1: 0; 0x018: 0x00000000
Kfbh. spare2: 0; 0x01c: 0x00000000
Kfdhdb. driver. provstr: ORCLDISK; 0x000: length = 8
Kfdhdb. driver. reserved [0]: 0; 0x008: 0x00000000
Kfdhdb. driver. reserved [1]: 0; 0x00c: 0x00000000
Kfdhdb. driver. reserved [2]: 0; 0x010: 0x00000000
Kfdhdb. driver. reserved [3]: 0; 0x014: 0x00000000
Kfdhdb. driver. reserved [4]: 0; 0x018: 0x00000000
Kfdhdb. driver. reserved [5]: 0; 0x01c: 0x00000000
Kfdhdb. compat: 202375168; 0x020: 0x0c100000
Kfdhdb. dsknum: 0; 0x024: 0x0000
Kfdhdb. grptyp: 1; 0x026: KFDGTP_EXTERNAL
Kfdhdb. hdrsts: 3; 0x027: KFDHDR_MEMBER
Kfdhdb. dskname: DGTEST_0000; 0x028: length = 11
Kfdhdb. kgname: DGTEST; 0x048: length = 6
Kfdhdb. fgname: DGTEST_0000; 0x068: length = 11
Kfdhdb. capname:; 0x088: length = 0
Kfdhdb. crestmp. hi: 33005044; 0x0a8: HOUR = 0x14 DAYS = 0xf MNTH = 0x7 YEAR = 0x7de
Kfdhdb. crestmp. lo: 1303226368; 0x0ac: USEC = 0x0 MSEC = 0x36a SECS = 0x1a MINS = 0x13
Kfdhdb. mntstmp. hi: 33005044; 0x0b0: HOUR = 0x14 DAYS = 0xf MNTH = 0x7 YEAR = 0x7de
Kfdhdb. mntstmp. lo: 1314846720; 0x0b4: USEC = 0x0 MSEC = 0x3be SECS = 0x25 MINS = 0x13
Kfdhdb. secsize: 512; 0x0b8: 0x0200
Kfdhdb. blksize: 4096; 0x0ba: 0x1000
Kfdhdb. ausize: 1048576; 0x0bc: 0x00100000
Kfdhdb. mfact: 113792; 0x0c0: 0x0001bc80
Kfdhdb. dsksize: 2047; 0x0c4: 0x000007ff
Kfdhdb. pmcnt: 3; 0x0c8: 0x00000003
Kfdhdb. fstlocn: 1; 0x0cc: 0x00000001
Kfdhdb. altlocn: 2; 0x0d0: 0x00000002
Kfdhdb. f1b1locn: 10; 0x0d4: 0x0000000a
2: au size is 2 M
[Grid @ 12cdb1 ~] $ Kfed read/dev/sdd1 aunum = 1 blknum = 510 ausz = 2097512 | more
Kfbh. endian: 1; 0x000: 0x01
Kfbh. hard: 130; 0x001: 0x82
Kfbh. type: 1; 0x002: KFBTYP_DISKHEAD
Kfbh. datfmt: 1; 0x003: 0x01
Kfbh. block. blk: 510; 0x004: blk = 510
Kfbh. block. obj: 2147483648; 0x008: disk = 0
Kfbh. check: 1308985061; 0x00c: 0x4e0586e5
Kfbh. fcn. base: 0; 0x10: 0x00000000
Kfbh. fcn. wrap: 0; 0x014: 0x00000000
Kfbh. spare1: 0; 0x018: 0x00000000
Kfbh. spare2: 0; 0x01c: 0x00000000
Kfdhdb. driver. provstr: ORCLDISK; 0x000: length = 8
Kfdhdb. driver. reserved [0]: 0; 0x008: 0x00000000
Kfdhdb. driver. reserved [1]: 0; 0x00c: 0x00000000
Kfdhdb. driver. reserved [2]: 0; 0x010: 0x00000000
Kfdhdb. driver. reserved [3]: 0; 0x014: 0x00000000
Kfdhdb. driver. reserved [4]: 0; 0x018: 0x00000000
Kfdhdb. driver. reserved [5]: 0; 0x01c: 0x00000000
Kfdhdb. compat: 202375168; 0x020: 0x0c100000
Kfdhdb. dsknum: 0; 0x024: 0x0000
Kfdhdb. grptyp: 1; 0x026: KFDGTP_EXTERNAL
Kfdhdb. hdrsts: 3; 0x027: KFDHDR_MEMBER
Kfdhdb. dskname: DATA_0000; 0x028: length = 9
Kfdhdb. kgname: DATA; 0x048: length = 4
Kfdhdb. fgname: DATA_0000; 0x068: length = 9
Kfdhdb. capname:; 0x088: length = 0
Kfdhdb. crestmp. hi: 33005024; 0x0a8: HOUR = 0x0 DAYS = 0xf MNTH = 0x7 YEAR = 0x7de
Kfdhdb. crestmp. lo: 18385920; 0x0ac: USEC = 0x0 MSEC = 0x223 SECS = 0x11 MINS = 0x0
Kfdhdb. mntstmp. hi: 33005058; 0x0b0: HOUR = 0x2 DAYS = 0x10 MNTH = 0x7 YEAR = 0x7de
Kfdhdb. mntstmp. lo: 2644348929; 0x0b4: USEC = 0 X1 MSEC = 0x364 SECS = 0x19 MINS = 0x27
Kfdhdb. secsize: 512; 0x0b8: 0x0200
Kfdhdb. blksize: 4096; 0x0ba: 0x1000
Kfdhdb. ausize: 2097152; 0x0bc: 0x00200000
Kfdhdb. mfact: 228480; 0x0c0: 0x00037c80
Kfdhdb. dsksize: 5118; 0x0c4: 0x000013fe
Kfdhdb. pmcnt: 3; 0x0c8: 0x00000003
Kfdhdb. fstlocn: 1; 0x0cc: 0x00000001
Kfdhdb. altlocn: 2; 0x0d0: 0x00000002
Kfdhdb. f1b1locn: 10; 0x0d4: 0x0000000a
3: au size is 4 M
[Grid @ 12cdb1 ~] $ Kfed read/dev/sde1 aunum = 1 blknum = 1022 ausz = 4194304 | more
Kfbh. endian: 1; 0x000: 0x01
Kfbh. hard: 130; 0x001: 0x82
Kfbh. type: 1; 0x002: KFBTYP_DISKHEAD
Kfbh. datfmt: 1; 0x003: 0x01
Kfbh. block. blk: 1022; 0x004: blk = 1022
Kfbh. block. obj: 2147483648; 0x008: disk = 0
Kfbh. check: 3190465891; 0x00c: 0xbe2aa563
Kfbh. fcn. base: 0; 0x10: 0x00000000
Kfbh. fcn. wrap: 0; 0x014: 0x00000000
Kfbh. spare1: 0; 0x018: 0x00000000
Kfbh. spare2: 0; 0x01c: 0x00000000
Kfdhdb. driver. provstr: ORCLDISK; 0x000: length = 8
Kfdhdb. driver. reserved [0]: 0; 0x008: 0x00000000
Kfdhdb. driver. reserved [1]: 0; 0x00c: 0x00000000
Kfdhdb. driver. reserved [2]: 0; 0x010: 0x00000000
Kfdhdb. driver. reserved [3]: 0; 0x014: 0x00000000
Kfdhdb. driver. reserved [4]: 0; 0x018: 0x00000000
Kfdhdb. driver. reserved [5]: 0; 0x01c: 0x00000000
Kfdhdb. compat: 202375168; 0x020: 0x0c100000
Kfdhdb. dsknum: 0; 0x024: 0x0000
Kfdhdb. grptyp: 1; 0x026: KFDGTP_EXTERNAL
Kfdhdb. hdrsts: 3; 0x027: KFDHDR_MEMBER
Kfdhdb. dskname: DGTEST_0000; 0x028: length = 11
Kfdhdb. kgname: DGTEST; 0x048: length = 6
Kfdhdb. fgname: DGTEST_0000; 0x068: length = 11
Kfdhdb. capname:; 0x088: length = 0
Kfdhdb. crestmp. hi: 33005044; 0x0a8: HOUR = 0x14 DAYS = 0xf MNTH = 0x7 YEAR = 0x7de
Kfdhdb. crestmp. lo: 1762242560; 0x0ac: USEC = 0x0 MSEC = 0x26c SECS = 0x10 MINS = 0x1a
Kfdhdb. mntstmp. hi: 33005044; 0x0b0: HOUR = 0x14 DAYS = 0xf MNTH = 0x7 YEAR = 0x7de
Kfdhdb. mntstmp. lo: 1775450112; 0x0b4: USEC = 0x0 MSEC = 0xce SECS = 0x1d MINS = 0x1a
Kfdhdb. secsize: 512; 0x0b8: 0x0200
Kfdhdb. blksize: 4096; 0x0ba: 0x1000
Kfdhdb. ausize: 4194304; 0x0bc: 0x00400000
Kfdhdb. mfact: 454272; 0x0c0: 0x0006ee80
Kfdhdb. dsksize: 511; 0x0c4: 0x000001ff
Kfdhdb. pmcnt: 3; 0x0c8: 0x00000003
Kfdhdb. fstlocn: 1; 0x0cc: 0x00000001
Kfdhdb. altlocn: 2; 0x0d0: 0x00000002
Kfdhdb. f1b1locn: 10; 0x0d4: 0x0000000a
Kfdhdb. redomirrors [0]: 0; 0x0d8: 0x0000
Kfdhdb. redomirrors [1]: 0; 0x0da: 0x0000
Kfdhdb. redomirrors [2]: 0; 0x0dc: 0x0000
Kfdhdb. redomirrors [3]: 0; 0x0de: 0x0000
Kfdhdb. dbcompat: 168820736; 0x0e0: 0x0a100000
Kfdhdb. kgstmp. hi: 33005044; 0x0e4: HOUR = 0x14 DAYS = 0xf MNTH = 0x7 YEAR = 0x7de
Kfdhdb. kgstmp. lo: 1761989632; 0x0e8: USEC = 0x0 MSEC = 0x175 SECS = 0x10 MINS = 0x1a
4: au size is 8 M