oracle 10.2.0.5 版本之後 asm disk header 自動備份機制

paulyibinyi發表於2014-07-25

在10.2.0.5 版本之前 ASM disk header沒有自動備份,需要手動執行kfed read或者dd來備份,

從10.2.0.5 之後 開始ASM disk header會自動備份到第一個AU#1的倒數第二個block。


AU size是1MB的DISKGROUP,每個AU包括block數量=1024KB/4KB=256個,因此備份資訊位於AU#1的第254號block

AU size是2MB的DISKGROUP,每個AU包括block數量=2048KB/4KB=512個,因此備份資訊位於AU#1的第510號block

AU size是4MB的DISKGROUP,每個AU包括block數量=4096KB/4KB=1024個,因此備份資訊位於AU#1的第1022號block

AU size是8MB的DISKGROUP,每個AU包括block數量=8192KB/4KB=2048個,因此備份資訊位於AU#1的第2046號block

AU size是16MB的DISKGROUP,每個AU包括block數量=16384KB/4KB=4096個,因此備份資訊位於AU#1的第4094號block

如果不加au=1的引數的話,則是以下block

AU size是1MB的DISKGROUP,每個AU包括block數量=1024KB/4KB=256個,因此備份資訊位於的第510號block

AU size是2MB的DISKGROUP,每個AU包括block數量=2048KB/4KB=512個,因此備份資訊位於的第1022號block

AU size是4MB的DISKGROUP,每個AU包括block數量=4096KB/4KB=1024個,因此備份資訊位於的第2046號block

AU size是8MB的DISKGROUP,每個AU包括block數量=8192KB/4KB=2048個,因此備份資訊位於的第4094號block

AU size是16MB的DISKGROUP,每個AU包括block數量=16384KB/4KB=4096個,因此備份資訊位於的8190號block


以下是12c的測試過程,是加au=1引數的

1:au size 為1M
[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 ; 0x010: 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.grpname:                  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 為2M

[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 ; 0x010: 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.grpname:                    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=0x1 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 為4M
[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 ; 0x010: 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.grpname:                  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.grpstmp.hi:             33005044 ; 0x0e4: HOUR=0x14 DAYS=0xf MNTH=0x7 YEAR=0x7de
kfdhdb.grpstmp.lo:           1761989632 ; 0x0e8: USEC=0x0 MSEC=0x175 SECS=0x10 MINS=0x1a


4:au size 為8M

[grid@12cdb1 ~]$ kfed read /dev/sde1 aunum=1 blknum=2046 ausz=8388608|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:                    2046 ; 0x004: blk=2046
kfbh.block.obj:              2147483648 ; 0x008: disk=0
kfbh.check:                  2835544163 ; 0x00c: 0xa902f863
kfbh.fcn.base:                        0 ; 0x010: 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.grpname:                  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:           2099929088 ; 0x0ac: USEC=0x0 MSEC=0x298 SECS=0x12 MINS=0x1f
kfdhdb.mntstmp.hi:             33005044 ; 0x0b0: HOUR=0x14 DAYS=0xf MNTH=0x7 YEAR=0x7de
kfdhdb.mntstmp.lo:           2114338816 ; 0x0b4: USEC=0x0 MSEC=0x190 SECS=0x20 MINS=0x1f
kfdhdb.secsize:                     512 ; 0x0b8: 0x0200
kfdhdb.blksize:                    4096 ; 0x0ba: 0x1000
kfdhdb.ausize:                  8388608 ; 0x0bc: 0x00800000
kfdhdb.mfact:                    454272 ; 0x0c0: 0x0006ee80
kfdhdb.dsksize:                     255 ; 0x0c4: 0x000000ff
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.grpstmp.hi:             33005044 ; 0x0e4: HOUR=0x14 DAYS=0xf MNTH=0x7 YEAR=0x7de
kfdhdb.grpstmp.lo:           2098930688 ; 0x0e8: USEC=0x0 MSEC=0x2c9 SECS=0x11 MINS=0x1f

 

 

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/7199859/viewspace-1227537/,如需轉載,請註明出處,否則將追究法律責任。

相關文章