[Linux-ha-dev] SCSI Reservation problem on Linux 2.4.21

Evelyn Z evelyn_jzhu at yahoo.ca
Wed Feb 23 08:53:37 MST 2005


Hello All,

I'm currently writing SCSI RESERVE/RELEASE codes for
two Linux servers to share an IBM3583 tape library via
FC switch. 

My problems are: 
- when i executed my code to reserve the whole library
unit, both servers can reserve the tape library
successfully, i.e., the reservation made by one server
cannot block the reservation request from the other.
- when i executed my code to reserve an element, say,
a drive, within the library, I always get Illegal
Request. 

My linux box running RH 7.3 with kernel 2.4.21. I
don't know if there's something I missed but as I know
kernel 2.4.21 supports SCSI Reservation. I enclosed
the CDB I used in my codes below. Can anyone take a
look the issue? Thanks a lot. 

Regards,

Evelyn
  
P.S. Following is the 6-byte CDB I used in my codes:
==== to reserve the whole library unit ====
CDB[0] = 0x16
CDB[1] to CDB[5] = 0x00
Note: with this command executed one reservation from
an initiator cannot block the one from the other.

==== to reserve an element within the library ====
CDB[0] = 0x16
CDB[1] = 0x01 //element bit is set
CDB[2] = Reservation ID
CDB[3] = 0x00
CDB[4] = 0x06 //element descriptor length
CDB[5] = 0x00

--- element descriptor ----
BUF[0] - [2] = 0x00
BUF[3] = 0x01 //to reserve one element
BUF[4], [5] = element address

When I try to reserve a single element using above
CDB, I always get Sense Key 0x05, ASC/ASCQ 2400, which
is ILLEGAL REQUEST.


______________________________________________________________________ 
Post your free ad now! http://personals.yahoo.ca


More information about the Linux-HA-Dev mailing list