tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* SUMMARY: how to tell if a SCSI/SAN tape is reserved?
       [not found] <0206281733.AA24055@nabeth.cxo.cpqcorp.net>
@ 2002-06-28 22:58 ` mike broderick
  0 siblings, 0 replies; only message in thread
From: mike broderick @ 2002-06-28 22:58 UTC (permalink / raw)


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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-06-28 22:58 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <0206281733.AA24055@nabeth.cxo.cpqcorp.net>
2002-06-28 22:58 ` SUMMARY: how to tell if a SCSI/SAN tape is reserved? mike broderick

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox