12.07.2015 Views

SCSI Primary Commands - 2.pdf

SCSI Primary Commands - 2.pdf

SCSI Primary Commands - 2.pdf

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

18 July 2001 T10/1236-D Revision 205.5.3.5 Creating a persistent reservation when there is no persistent reservationAn application client creates a persistent reservation by issuing a PERSISTENT RESERVE OUT command with aservice action of RESERVE through a registered initiator with the following parameters:a) RESERVATION KEY set to the value of the initiator/logical unit pair’s established reservation key; andb) TYPE and SCOPE set to the reservation being created.Only one persistent reservation with a scope of logical unit is allowed at a time per logical unit. Multiple persistentreservations with a scope of element may be created in a logical unit that contains multiple elements. However,there shall only be one persistent reservation per element.If the target receives a PERSISTENT RESERVE OUT command that attempts to create a persistent reservationwhen a persistent reservation already exists for the logical unit from an initiator other than the initiator that createdthe reservation, then the command shall be rejected with a RESERVATION CONFLICT status.If the initiator that created the persistent reservation attempts to modify the TYPE or SCOPE of an existing reservation,then the command shall be rejected with a RESERVATION CONFLICT status.If the device server receives a PERSISTENT RESERVE OUT command with a service action of RESERVE wherethe TYPE and SCOPE are the same as the existing TYPE and SCOPE from the initiator that created the persistentreservation, it shall not make any change to the existing reservation and shall return a GOOD status.If the target receives a RESERVE(10) or RESERVE(6) command when a persistent reservation exists for thelogical unit then the command shall be rejected with a RESERVATION CONFLICT.See 5.5.1 for information on when a persistent reservation takes effect.5.5.3.6 Removing registrations and persistent reservations5.5.3.6.1 Overview of removing registrations and persistent reservationsA registered initiator using the value of the initiator/logical unit pair’s established reservation key may release orpreempt a persistent reservation by issuing one of the following commands:a) a PERSISTENT RESERVE OUT command with a service action of RELEASE from the initiator thatperformed the reservation (see 5.5.3.6.2);b) a PERSISTENT RESERVE OUT command with a PREEMPT service action specifying the reservation keyof the initiator holding the reservation (see 5.5.3.6.3);c) a PERSISTENT RESERVE OUT command with a PREEMPT AND ABORT service action specifying thereservation key of the initiator holding the reservation (see 5.5.3.6.4); ord) a PERSISTENT RESERVE OUT command with a service action of CLEAR service action (see 5.5.3.6.5).A registered initiator using the value of the initiator/logical unit pair’s established reservation key may remove aregistration by issuing one of the following commands:a) a PERSISTENT RESERVE OUT command with a PREEMPT service action specifying that reservationkey (see 5.5.3.6.3);b) a PERSISTENT RESERVE OUT command with a PREEMPT AND ABORT service action specifying thatreservation key (see 5.5.3.6.4);c) a PERSISTENT RESERVE OUT command with a CLEAR service action (see 5.5.3.6.5); ord) a PERSISTENT RESERVE OUT command with a REGISTER or a REGISTER AND IGNORE EXISTINGKEY service action from the same initiator with the value of the service action reservation key field set tozero.dpANS <strong>SCSI</strong> <strong>Primary</strong> <strong>Commands</strong> - 2 (SPC-2) 31

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!