Partner and Status Table 相关:http://www.askmaclean.com/archives/know-oracle-asm-basic-html.html 一般来说aun=1 是保留给Partner and Status Table(PST)的拷贝使用的。 一般5个ASM DISK将包含一份PST拷贝。多数的PST内容必须相同且验证有效。否则无法
Partner and Status Table
相关:http://www.askmaclean.com/archives/know-oracle-asm-basic-html.html
一般来说aun=1 是保留给Partner and Status Table(PST)的拷贝使用的。 一般5个ASM DISK将包含一份PST拷贝。多数的PST内容必须相同且验证有效。否则无法判断哪些ASM DISK实际拥有相关数据。
在 PST中每一条记录对应Diskgroup中的一个ASM DISK。每一条记录会对一个ASM disk枚举其partners的ASM DISK。同时会有一个flag来表示该DISK是否是ONLINE可读写的。这些信息对recovery是否能做很重要。
PST表的Blkn=0是PST的header,存放了如下的信息:
PST的最后一个块是heartbeat block,当diskgroup mount时其每3秒心跳更新一次。
以下为PST header
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 |
|
以下为PST table block:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 |
|
aun=1 的最后第二个block中备份了一份KFBTYP_DISKHEAD
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
|
AUN=1 的最后一个block为KFBTYP_HBEAT 心跳表:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
|
如下场景中PST 可能被重定位:
kfbh.endian
kf3.h /*endiannessofwriter*/
Little endian = 1 Big endian = 0
kfbh.hard
kf3.h /*H.A.R.D.magic#andblocksize*/
kfbh.type
kf3.h /* metadata block type */
kfbh.datfmt
kf3.h /*metadatablockdataformat */
kfbh.block
kf3.h /*blocklocationofthisblock */
blk — Disk header should have T=0 and NUMB=0×0
obj — Disk header should have TYPE=0×8 NUMB=
kfbh.check
kf3.h /*checkvaluetoverifyconsistency*/
kfbh.fcn
kf3.h /*changenumberoflastchange */
kfdpHdrB.time.hi
kf3.h HiorderedbitsfromthelastcommittedPSTupdate
kfdpHdrB.time.lo
kf3.h LoworderedbitsfromthelastcommittedPSTupdate
kfdpHdrB.last
kf3.h /* last version number */
kfdpHdrB.next
kf3.h /* next version number */
kfdpHdrB.copyCnt
kf3.h /* # of PST copies */
This defaults to “1″ for external redundancy, “3″ for normal redundancy and”5″forhighredundancy. Ifthenumberoffailuregroupsisless than the default value, the number failure groups is the value used.
kfdpHdrB.incarn
kf3.h /* incarnation of
This is set to kfdpHdrB.last when the PST is moved to another disk.
kfdpHdrB.copy[0-4]
kf3.h /* disks holding the PST copies */
[0] — external redundancy [0-2] –normalredundancy [0-4] –highredundancy
kfdpHdrB.dtaSz
kf3.h /*#dtaentriesinPST */
This is the number of disks that it needs to keep track of. ub1[0-4027]
Related posts:
原文地址:【Oracle ASM】PST Partnership Status Table介绍, 感谢原作者分享。