I/O Fencing places the SCSI-3 PR keys on coordinator LUNs. The format of the key follows the naming convention wherein ASCII "A" is prefixed to the LLT ID of the system that is followed by 7 dash characters.
For example:
node 0 uses A-------
node 1 uses B-------
In an SF Oracle RAC/SF CFS/SF HA environment, VxVM/CVM registers the keys on data disks, the format of which is ASCII "A" prefixed to the LLT ID of the system followed by the characters "PGRxxxx" where 'xxxx' = i such that the disk group is the ith shared group to be imported.
For example: node 0 uses APGR0001 (for the first imported shared group).
In addition to the registration keys, VCS/CVM also installs a reservation key on the data LUN. There is one reservation key per cluster as only one node can reserve the LUN.
The following command lists the keys on a data disk group:
# vxdg list |grep data
sys1_data1 enabled,shared,cds 1201715530.28.pushover
Select the data disk belonging to sys1_data1:
# vxdisk -o alldgs list |grep sys1_data1
emc_1_64 auto:cdsdisk emc_1_64 sys1_data1 online shared emc_1_65 auto:cdsdisk emc_1_65 sys1_data1 online shared emc_1_66 auto:cdsdisk emc_1_66 sys1_data1 online shared
The following command lists the PR keys:
# vxdisk -o listreserve list emc_1_64
........
........
Multi-pathing information: numpaths: 1 c4t50060E8005654565d9s2 state=enabled Reservations: BPGR0000 (type: Write Exclusive Registrants Only, scope: LUN(0x0)) 2 registered pgr keys BPGR0004 APGR0004
Alternatively, the PR keys can be listed using vxfenadm command:
# echo "/dev/vx/dmp/emc_1_64" > /tmp/disk71
# vxfenadm -s all -f /tmp/disk71
Device Name: /dev/vx/dmp/emc_1_64 Total Number Of Keys: 2 key[0]: Key Value [Numeric Format]: 66,80,71,82,48,48,48,52 Key Value [Character Format]: BPGR0004 key[1]: Key Value [Numeric Format]: 65,80,71,82,48,48,48,52 Key Value [Character Format]: APGR0004