HP XP20000/XP24000 HP StorageWorks XP Disk Array Configuration Guide (T5278-96 - Page 171

D Using Veritas Cluster Server to prevent data corruption, Using VCS I/O fencing

Page 171 highlights

D Using Veritas Cluster Server to prevent data corruption Using VCS I/O fencing By issuing a Persistent Reserve SCSI-3 command, VCS employs an I/O fencing feature that prevents data corruption from occurring if cluster communication stops. To accomplish I/O fencing, each node of VCS registers reserve keys for each disk in a disk group that is imported. The reserve key consists of a unique value for each disk group and a value to distinguish nodes. When importing a disk group, each node in a VCS cluster registers the reserve key for all paths of all disks (LUs) in the disk group, but only 1 node will succeed in reserving the disk group. Example reserve keys for Port 1A are shown in "Port 1A Key Registration Entries" (page 173) and example reserve keys for Port 2A are shown in "Port 2A Key Registration Entries" (page 173). The format of the reserve key is: node number + disk group-unique information When the Persistent Reserve command is received by the disk array, the reserve key and Port WWN of node are registered in the key registration table for each port of the disk array. To avoid duplicate registrations, the disk array checks the node Port WWN and reserve key and only adds an entry in its table if the WWN/reserve key combination do not already exist in the table for the port which received the registration request. Duplicate entries can exist across different ports. The maximum number of reserve keys that can be registered per port for each disk array is 128. Attempts to add additional registration keys will fail if the number exceeds this limit. Because of this, try to limit the number of: • Nodes • Paths to each array port • Disk groups For example, when adding an LU to increase disk capacity, do not create a new disk group. Instead, add the LU to one of the existing disk groups (see "Nodes and ports" (page 172)). For each array port, calculate the number of VCS registration keys needed as follows: number of WWNs visible to an XP port x number of disk groups = number of registration keys Where the number of WWNs visible to an XP port = number of hosts x number of WWNs per XP port. In "Nodes and ports" (page 172), the number of WWNs visible to either port (1A or 2A) is four (WWNa0 and WWNb0 for port 1A and WWNa1 and WWNb1 for port 2A). Therefore, the number of registration keys will be equal to 4. Using VCS I/O fencing 171

  • 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
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • 147
  • 148
  • 149
  • 150
  • 151
  • 152
  • 153
  • 154
  • 155
  • 156
  • 157
  • 158
  • 159
  • 160
  • 161
  • 162
  • 163
  • 164
  • 165
  • 166
  • 167
  • 168
  • 169
  • 170
  • 171
  • 172
  • 173
  • 174
  • 175
  • 176
  • 177
  • 178
  • 179
  • 180
  • 181
  • 182
  • 183

D Using Veritas Cluster Server to prevent data corruption
Using VCS I/O fencing
By issuing a Persistent Reserve SCSI-3 command, VCS employs an I/O fencing feature that prevents
data corruption from occurring if cluster communication stops. To accomplish I/O fencing, each
node of VCS registers reserve keys for each disk in a disk group that is imported. The reserve key
consists of a unique value for each disk group and a value to distinguish nodes. When importing
a disk group, each node in a VCS cluster registers the reserve key for all paths of all disks (LUs)
in the disk group, but only 1 node will succeed in reserving the disk group. Example reserve keys
for Port 1A are shown in
“Port 1A Key Registration Entries” (page 173)
and example reserve keys
for Port 2A are shown in
“Port 2A Key Registration Entries” (page 173)
. The format of the reserve
key is:
node number + disk group-unique information
When the Persistent Reserve command is received by the disk array, the reserve key and Port
WWN of node are registered in the key registration table for each port of the disk array. To avoid
duplicate registrations, the disk array checks the node Port WWN and reserve key and only adds
an entry in its table if the WWN/reserve key combination do not already exist in the table for the
port which received the registration request. Duplicate entries can exist across different ports.
The maximum number of reserve keys that can be registered per port for each disk array is 128.
Attempts to add additional registration keys will fail if the number exceeds this limit. Because of
this, try to limit the number of:
Nodes
Paths to each array port
Disk groups
For example, when adding an LU to increase disk capacity, do not create a new disk group.
Instead, add the LU to one of the existing disk groups (see
“Nodes and ports” (page 172)
).
For each array port, calculate the number of VCS registration keys needed as follows:
number of WWNs visible to an XP port x number of disk groups = number of
registration keys
Where the number of WWNs visible to an XP port = number of hosts x number of
WWNs per XP port.
In
“Nodes and ports” (page 172)
, the number of WWNs visible to either port (1A or 2A) is four
(WWNa0 and WWNb0 for port 1A and WWNa1 and WWNb1 for port 2A). Therefore, the
number of registration keys will be equal to 4.
Using VCS I/O fencing
171