ITPub博客

首页 > 数据库 > Oracle > oracle 10.2.0.5 版本之后 asm disk header 自动备份机制

oracle 10.2.0.5 版本之后 asm disk header 自动备份机制

Oracle 作者:myxylovedba 时间:2016-01-28 16:48:03 0 删除 编辑

在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/28227905/viewspace-1983623/,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论
  • 博文量
    65
  • 访问量
    313689