PartnerandStatusTable related: www.askmaclean.comarchivesknow-oracle-asm-basic-html.html in general aun1 is reserved for PartnerandStatusTable (PST) Copies used. Generally, five asmdisks will contain a copy of PST. Most PST contents must be the same and valid for verification. Otherwise
Partner and Status Table related: http://www.askmaclean.com/archives/know-oracle-asm-basic-html.html in general aun = 1 is reserved for Partner and Status Table (PST) Copies used. Generally, five ASM disks will contain a copy of PST. Most PST contents must be the same and valid for verification. Otherwise
Partner and Status Table
Related: http://www.askmaclean.com/archives/know-oracle-asm-basic-html.html
In general, aun = 1 is reserved for copying Partner and Status Table (PST. Generally, five ASM disks will contain a copy of PST. Most PST contents must be the same and valid for verification. Otherwise, you cannot determine which ASM disks actually have relevant data.
Each record in PST corresponds to an asm disk in Diskgroup. Each record will enumerate the ASM disk of its partners for an asm disk. At the same time, a flag is provided to indicate whether the DISK is ONLINE and readable. This information is very important for rediscovery.
Blkn = 0 in the PST table is the PST header, which stores the following information:
- Timestamp to indicate PST is valid
- Version number to compare with other PST copies
- List of disks containing PST copies
- Bit map for shadow paging updates
The last block of PST is the heartbeat block. When diskgroup is mounted, its heartbeat is updated every 3 seconds.
PST header
kfed read /oracleasm/asm-disk01 aun=1 blkn=0 aus=4194304 |less kfbh.endian: 1 ; 0x000: 0x01kfbh.hard: 130 ; 0x001: 0x82kfbh.type: 17 ; 0x002: KFBTYP_PST_METAkfbh.datfmt: 2 ; 0x003: 0x02kfbh.block.blk: 1024 ; 0x004: blk=1024kfbh.block.obj: 2147483648 ; 0x008: disk=0kfbh.check: 3813974007 ; 0x00c: 0xe3549ff7kfbh.fcn.base: 0 ; 0x010: 0x00000000kfbh.fcn.wrap: 0 ; 0x014: 0x00000000kfbh.spare1: 0 ; 0x018: 0x00000000kfbh.spare2: 0 ; 0x01c: 0x00000000kfdpHdrPairBv1.first.super.time.hi:32999670 ; 0x000: HOUR=0x16 DAYS=0x7 MNTH=0x2 YEAR=0x7dekfdpHdrPairBv1.first.super.time.lo:1788841984 ; 0x004: USEC=0x0 MSEC=0x3e4 SECS=0x29 MINS=0x1akfdpHdrPairBv1.first.super.last: 2 ; 0x008: 0x00000002kfdpHdrPairBv1.first.super.next: 2 ; 0x00c: 0x00000002kfdpHdrPairBv1.first.super.copyCnt: 5 ; 0x010: 0x05kfdpHdrPairBv1.first.super.version: 1 ; 0x011: 0x01kfdpHdrPairBv1.first.super.ub2spare: 0 ; 0x012: 0x0000kfdpHdrPairBv1.first.super.incarn: 1 ; 0x014: 0x00000001kfdpHdrPairBv1.first.super.copy[0]: 0 ; 0x018: 0x0000kfdpHdrPairBv1.first.super.copy[1]: 1 ; 0x01a: 0x0001kfdpHdrPairBv1.first.super.copy[2]: 2 ; 0x01c: 0x0002kfdpHdrPairBv1.first.super.copy[3]: 3 ; 0x01e: 0x0003kfdpHdrPairBv1.first.super.copy[4]: 4 ; 0x020: 0x0004kfdpHdrPairBv1.first.super.dtaSz: 15 ; 0x022: 0x000fkfdpHdrPairBv1.first.asmCompat:186646528 ; 0x024: 0x0b200000kfdpHdrPairBv1.first.newCopy[0]: 0 ; 0x028: 0x0000kfdpHdrPairBv1.first.newCopy[1]: 0 ; 0x02a: 0x0000kfdpHdrPairBv1.first.newCopy[2]: 0 ; 0x02c: 0x0000kfdpHdrPairBv1.first.newCopy[3]: 0 ; 0x02e: 0x0000kfdpHdrPairBv1.first.newCopy[4]: 0 ; 0x030: 0x0000kfdpHdrPairBv1.first.newCopyCnt: 0 ; 0x032: 0x00kfdpHdrPairBv1.first.contType: 1 ; 0x033: 0x01kfdpHdrPairBv1.first.spares[0]: 0 ; 0x034: 0x00000000kfdpHdrPairBv1.first.spares[1]: 0 ; 0x038: 0x00000000kfdpHdrPairBv1.first.spares[2]: 0 ; 0x03c: 0x00000000kfdpHdrPairBv1.first.spares[3]: 0 ; 0x040: 0x00000000kfdpHdrPairBv1.first.spares[4]: 0 ; 0x044: 0x00000000kfdpHdrPairBv1.first.spares[5]: 0 ; 0x048: 0x00000000kfdpHdrPairBv1.first.spares[6]: 0 ; 0x04c: 0x00000000kfdpHdrPairBv1.first.spares[7]: 0 ; 0x050: 0x00000000kfdpHdrPairBv1.first.spares[8]: 0 ; 0x054: 0x00000000kfdpHdrPairBv1.first.spares[9]: 0 ; 0x058: 0x00000000kfdpHdrPairBv1.first.spares[10]: 0 ; 0x05c: 0x00000000kfdpHdrPairBv1.first.spares[11]: 0 ; 0x060: 0x00000000kfdpHdrPairBv1.first.spares[12]: 0 ; 0x064: 0x00000000kfdpHdrPairBv1.first.spares[13]: 0 ; 0x068: 0x00000000kfdpHdrPairBv1.first.spares[14]: 0 ; 0x06c: 0x00000000kfdpHdrPairBv1.first.spares[15]: 0 ; 0x070: 0x00000000kfdpHdrPairBv1.first.spares[16]: 0 ; 0x074: 0x00000000kfdpHdrPairBv1.first.spares[17]: 0 ; 0x078: 0x00000000kfdpHdrPairBv1.first.spares[18]: 0 ; 0x07c: 0x00000000kfdpHdrPairBv1.first.spares[19]: 0 ; 0x080: 0x00000000
- Super. time wall clock time of last PST commit
- Super. last? Last committed content version number
- Super. next available content version number
- Super. copyCnt? # Of disks holding PST copies
- Super. version ?? Version of PST header format
- Super. ub2spare? Pad to ub4 align
- Super. incarn incarnation List
- Super. copy [0]? Disks holding the PST copies
- Super. dtaSz? Data entries in PST
- NewCopy [0]? New disks holding PST copies
- NewCopyCnt? New # disks holding PST copies
PST table block:
kfed read /oracleasm/asm-disk02 aun=1 blkn=3 aus=4194304 |less kfbh.endian: 1 ; 0x000: 0x01kfbh.hard: 130 ; 0x001: 0x82kfbh.type: 18 ; 0x002: KFBTYP_PST_DTAkfbh.datfmt: 2 ; 0x003: 0x02kfbh.block.blk: 1027 ; 0x004: blk=1027kfbh.block.obj: 2147483649 ; 0x008: disk=1kfbh.check: 4204644293 ; 0x00c: 0xfa9dc7c5kfbh.fcn.base: 0 ; 0x010: 0x00000000kfbh.fcn.wrap: 0 ; 0x014: 0x00000000kfbh.spare1: 0 ; 0x018: 0x00000000kfbh.spare2: 0 ; 0x01c: 0x00000000kfdpDtaEv1[0].status: 127 ; 0x000: I=1 V=1 V=1 P=1 P=1 A=1 D=1kfdpDtaEv1[0].fgNum: 1 ; 0x002: 0x0001kfdpDtaEv1[0].addTs: 2022663849 ; 0x004: 0x788f66a9kfdpDtaEv1[0].partner[0]: 49154 ; 0x008: P=1 P=1 PART=0x2kfdpDtaEv1[0].partner[1]: 49153 ; 0x00a: P=1 P=1 PART=0x1kfdpDtaEv1[0].partner[2]: 49155 ; 0x00c: P=1 P=1 PART=0x3kfdpDtaEv1[0].partner[3]: 49166 ; 0x00e: P=1 P=1 PART=0xekfdpDtaEv1[0].partner[4]: 49165 ; 0x010: P=1 P=1 PART=0xdkfdpDtaEv1[0].partner[5]: 49164 ; 0x012: P=1 P=1 PART=0xckfdpDtaEv1[0].partner[6]: 49156 ; 0x014: P=1 P=1 PART=0x4kfdpDtaEv1[0].partner[7]: 49163 ; 0x016: P=1 P=1 PART=0xbkfdpDtaEv1[0].partner[8]: 10000 ; 0x018: P=0 P=0 PART=0x2710kfdpDtaEv1[0].partner[9]: 0 ; 0x01a: P=0 P=0 PART=0x0kfdpDtaEv1[0].partner[10]: 0 ; 0x01c: P=0 P=0 PART=0x0kfdpDtaEv1[0].partner[11]: 0 ; 0x01e: P=0 P=0 PART=0x0kfdpDtaEv1[0].partner[12]: 0 ; 0x020: P=0 P=0 PART=0x0kfdpDtaEv1[0].partner[13]: 0 ; 0x022: P=0 P=0 PART=0x0kfdpDtaEv1[0].partner[14]: 0 ; 0x024: P=0 P=0 PART=0x0kfdpDtaEv1[0].partner[15]: 0 ; 0x026: P=0 P=0 PART=0x0kfdpDtaEv1[0].partner[16]: 0 ; 0x028: P=0 P=0 PART=0x0kfdpDtaEv1[0].partner[17]: 0 ; 0x02a: P=0 P=0 PART=0x0kfdpDtaEv1[0].partner[18]: 0 ; 0x02c: P=0 P=0 PART=0x0kfdpDtaEv1[0].partner[19]: 0 ; 0x02e: P=0 P=0 PART=0x0kfdpDtaEv1[1].status: 127 ; 0x030: I=1 V=1 V=1 P=1 P=1 A=1 D=1kfdpDtaEv1[1].fgNum: 2 ; 0x032: 0x0002kfdpDtaEv1[1].addTs: 2022663849 ; 0x034: 0x788f66a9kfdpDtaEv1[1].partner[0]: 49155 ; 0x038: P=1 P=1 PART=0x3kfdpDtaEv1[1].partner[1]: 49152 ; 0x03a: P=1 P=1 PART=0x0kfdpDtaEv1[1].partner[2]: 49154 ; 0x03c: P=1 P=1 PART=0x2kfdpDtaEv1[1].partner[3]: 49166 ; 0x03e: P=1 P=1 PART=0xekfdpDtaEv1[1].partner[4]: 49157 ; 0x040: P=1 P=1 PART=0x5kfdpDtaEv1[1].partner[5]: 49156 ; 0x042: P=1 P=1 PART=0x4kfdpDtaEv1[1].partner[6]: 49165 ; 0x044: P=1 P=1 PART=0xdkfdpDtaEv1[1].partner[7]: 49164 ; 0x046: P=1 P=1 PART=0xckfdpDtaEv1[1].partner[8]: 10000 ; 0x048: P=0 P=0 PART=0x2710kfdpDtaEv1[1].partner[9]: 0 ; 0x04a: P=0 P=0 PART=0x0kfdpDtaEv1[1].partner[10]: 0 ; 0x04c: P=0 P=0 PART=0x0kfdpDtaEv1[1].partner[11]: 0 ; 0x04e: P=0 P=0 PART=0x0kfdpDtaEv1[1].partner[12]: 0 ; 0x050: P=0 P=0 PART=0x0kfdpDtaEv1[1].partner[13]: 0 ; 0x052: P=0 P=0 PART=0x0kfdpDtaEv1[1].partner[14]: 0 ; 0x054: P=0 P=0 PART=0x0kfdpDtaEv1[1].partner[15]: 0 ; 0x056: P=0 P=0 PART=0x0kfdpDtaEv1[1].partner[16]: 0 ; 0x058: P=0 P=0 PART=0x0
- KfdpDtaEv1 [0]. status: 127; 0 × 000: I = 1 V = 1 V = 1 P = 1 P = 1 A = 1 D = 1 disk status
- FgNum ?? Fail group number
- AddTs ?? Timestamp of the addition to the diskgroup
- KfdpDtaEv1 [0]. partner [0]: ??? 49154; 0x008: P = 1 P = 1 PART = 0x2? Partner list
The last second block of aun = 1 backs up a copy of KFBTYP_DISKHEAD.
[oracle@mlab2 hzy]$ kfed read /oracleasm/asm-disk02 aun=1 blkn=1022 aus=4194304 |less kfbh.endian: 1 ; 0x000: 0x01kfbh.hard: 130 ; 0x001: 0x82kfbh.type: 1 ; 0x002: KFBTYP_DISKHEADkfbh.datfmt: 1 ; 0x003: 0x01kfbh.block.blk: 1022 ; 0x004: blk=1022kfbh.block.obj: 2147483649 ; 0x008: disk=1kfbh.check: 3107059260 ; 0x00c: 0xb931f63ckfbh.fcn.base: 0 ; 0x010: 0x00000000kfbh.fcn.wrap: 0 ; 0x014: 0x00000000kfbh.spare1: 0 ; 0x018: 0x00000000kfbh.spare2: 0 ; 0x01c: 0x00000000kfdhdb.driver.provstr: ORCLDISK ; 0x000: length=8kfdhdb.driver.reserved[0]: 0 ; 0x008: 0x00000000kfdhdb.driver.reserved[1]: 0 ; 0x00c: 0x00000000kfdhdb.driver.reserved[2]: 0 ; 0x010: 0x00000000kfdhdb.driver.reserved[3]: 0 ; 0x014: 0x00000000kfdhdb.driver.reserved[4]: 0 ; 0x018: 0x00000000kfdhdb.driver.reserved[5]: 0 ; 0x01c: 0x00000000kfdhdb.compat: 186646528 ; 0x020: 0x0b200000kfdhdb.dsknum: 1 ; 0x024: 0x0001kfdhdb.grptyp: 3 ; 0x026: KFDGTP_HIGHkfdhdb.hdrsts: 3 ; 0x027: KFDHDR_MEMBERkfdhdb.dskname: DATA1_0001 ; 0x028: length=10kfdhdb.grpname: DATA1 ; 0x048: length=5kfdhdb.fgname: DATA1_0001 ; 0x068: length=10kfdhdb.capname: ; 0x088: length=0kfdhdb.crestmp.hi: 32999670 ; 0x0a8: HOUR=0x16 DAYS=0x7 MNTH=0x2 YEAR=0x7dekfdhdb.crestmp.lo: 1788720128 ; 0x0ac: USEC=0x0 MSEC=0x36d SECS=0x29 MINS=0x1akfdhdb.mntstmp.hi: 32999670 ; 0x0b0: HOUR=0x16 DAYS=0x7 MNTH=0x2 YEAR=0x7dekfdhdb.mntstmp.lo: 1812990976 ; 0x0b4: USEC=0x0 MSEC=0x3 SECS=0x1 MINS=0x1bkfdhdb.secsize: 512 ; 0x0b8: 0x0200kfdhdb.blksize: 4096 ; 0x0ba: 0x1000kfdhdb.ausize: 4194304 ; 0x0bc: 0x00400000
The last block of AUN = 1 is the kfbtyp_deskat heartbeat table:
[oracle@mlab2 hzy]$ kfed read /oracleasm/asm-disk02 aun=1 blkn=1023 aus=4194304 |less kfbh.endian: 1 ; 0x000: 0x01kfbh.hard: 130 ; 0x001: 0x82kfbh.type: 19 ; 0x002: KFBTYP_HBEATkfbh.datfmt: 2 ; 0x003: 0x02kfbh.block.blk: 2047 ; 0x004: blk=2047kfbh.block.obj: 2147483649 ; 0x008: disk=1kfbh.check: 1479766671 ; 0x00c: 0x5833728fkfbh.fcn.base: 0 ; 0x010: 0x00000000kfbh.fcn.wrap: 0 ; 0x014: 0x00000000kfbh.spare1: 0 ; 0x018: 0x00000000kfbh.spare2: 0 ; 0x01c: 0x00000000kfdpHbeatB.instance: 1 ; 0x000: 0x00000001kfdpHbeatB.ts.hi: 32999734 ; 0x004: HOUR=0x16 DAYS=0x9 MNTH=0x2 YEAR=0x7dekfdpHbeatB.ts.lo: 3968041984 ; 0x008: USEC=0x0 MSEC=0xe1 SECS=0x8 MINS=0x3bkfdpHbeatB.rnd[0]: 1065296177 ; 0x00c: 0x3f7f2131kfdpHbeatB.rnd[1]: 857037208 ; 0x010: 0x33155998kfdpHbeatB.rnd[2]: 2779184235 ; 0x014: 0xa5a6fc6bkfdpHbeatB.rnd[3]: 2660793989 ; 0x018: 0x9e987e85
- KfdpHbeatB. instance ?? Instance id
- KfdpHbeatB. ts. hi timestamp
- KfdpHbeatB. rnd [0]? Random Salt Addition
- ? External Redundancy generally has a PST
- Normal Redundancy has at most three PST
- High Redundancy has up to 5 PST
PST may be relocated in the following scenarios:
- The asm disk with PST is unavailable (when ASM starts East)
- ASM DISK OFFLINE
- When an I/O error occurs during PST read/write
- The disk is normally dropped.
- ? Check PST before reading other ASM metadata
- When the ASM instance is required to mount diskgroup, The GMON process will read all disks in the diskgroup to find and confirm the PST copy.
- If he finds that there is enough PST, it will mount diskgroup
- PST will be cached in the ASM cache and in the PGA of GMON and protected by exclusive PT. n.0 locks.
- Other ASM instances in the same cluster also cache PST to the PGA of GMON and use the shared PT. n. olock to protect
- Only the GMON holding the exclusive lock can update the PST information on the disk.
- AUN = 1 on each asm disk is reserved for PST, but only a few disks actually have PST data.
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 shocould have T = 0 and NUMB = 0 × 0
Obj-Disk header shocould have TYPE = 0 × 8 NUMB = Blkandobjvaluesarederivedfromaseriesofmacrosinkf3.h. See "KFBL Macros" in kf3.h for more information.
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 */
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 data recovery] ERROR: no PST quorum in group 1: required 2, found 0 problem Parsing
- [Oracle ASM data recovery] how to restore the ASM Disk deleted by oracleasm deletedisk
- Oracle ASM data recovery ORA-15032, ORA-15075 asm disk path Problem
- [Oracle ASM] asm file number #2 DISK Directory
- [ASM data recovery] How to fix ASM Disk header_status = FORMER Disk re-join Diskgroup ORA-15017 ORA-15063 ORA-15032
- [Oracle ASM Metadata] Template Directory (file #5)
- [Oracle ASM] asm file number 3 Active Change Directory
- [Oracle ASM Metadata] Alias Directory (file #6)
- [Oracle ASM] Continuing Operations Directory (file #4)
- [Oracle ASM data recovery] ORA-15042: ASM disk is missing after add disk took place error Parsing
Original article address: [Oracle ASM] PST Partnership Status Table introduction, thanks to the original author for sharing.