SUMMARY: how to tell if a SCSI/SAN tape is reserved?

From: mike broderick (mikebroderick@yahoo.com)
Date: Fri Jun 28 2002 - 18:58:59 EDT


I wanted to know how to tell if a SAN/SCSI tape drive was reserved as the SCSI
level w/ SCSI-2 only. As Alan indicated, using (SCU) "reserve dev" from one
system, then "tur" from another clearly indicated when a device was reserved:

scu> tur
scu: 'test unit ready' failed on device 'DLT7000' at nexus [2/19/5]
     SCSI Status = SCSI_STAT_RESERVATION_CONFLICT (0x18) - Target reservation
conflict
scu>

The same output resulted whether a tape was loaded ot not.

Thanks Alan (and others who responded so quickly).

                                                         _Mike

--- alan@nabeth.cxo.cpqcorp.net wrote:
>
> The device being SCSI-2 explains why the command to show
> the persistent reservations failed. SCSI-2 supported a
> less useful sort of reservation command, which I think has
> scu(8) command; reserve and release. I'd guess that if
> another system has a device reserved using this command,
> then command which fails as a consequence of the reservation
> would be a way to test for it. Inquiry and Read Capacity
> may not fail, but Test Unit Ready might. Some of the mode
> page manipulation command may also fail. Those are pretty
> safe ways of seeing if a device is usable.
>
> So, set the nexus for the device and do a "tur". If it
> fails with the appropriate status, then the device is
> reserved by some other system on the bus.

__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com



This archive was generated by hypermail 2.1.7 : Sat Apr 12 2008 - 10:48:45 EDT