Patent ID: 8645586

Claim:
A computer implemented method for determining reservation status information for a logical unit number (LUN), the computer implemented method comprising: a host transmitting a first persistent reservation in command with a read reservation to a first LUN, wherein the host is connected to a port of a data storage server to which the first LUN belongs; receiving a message from the first LUN; determining that the message is a success message; responsive to a determination that the message is a success message, sending to the first LUN, a second persistent reservation in command with read keys; determining that the first LUN responds with a message containing an additional length field set to zero; responsive to a determination that the first LUN responds with the message containing an additional length field set to zero, sending a Small Computer System Interface (SCSI) command test unit ready to the first LUN, wherein the SCSI command test unit ready is a message having a command descriptor block set to zero; determining that the SCSI command test unit ready (TUR) succeeds; responsive to a determination that the SCSI command TUR succeeds, verifying a reservation policy attribute of the first LUN; responsive to a determination that the reservation policy is a type 1 reservation, identifying the first LUN as reserved with a type 1 reservation by the host; transmitting a third persistent reservation in command with read keys to a second LUN, wherein the host is connected to a port of the data storage server of the second LUN; determining that the second LUN responds with a message containing an additional length field not set to zero; and responsive to determining that the second LUN responds with a message containing an additional length field not set to zero, identifying the second LUN as reserved with a type 2 reservation by the host simultaneously with the first LUN being reserved with the type 1 reservation, wherein the second LUN is configured to respond to persistent reservation in commands without a SCSI error and a SCSI status of a reservation conflict, and the first LUN is configured not to respond to persistent reservation in commands without a SCSI error and a SCSI status of a reservation conflict.