tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: mike broderick <mikebroderick@yahoo.com>
Subject: SUMMARY: how to tell if a SCSI/SAN tape is reserved?
Date: Fri, 28 Jun 2002 15:58:59 -0700 (PDT)	[thread overview]
Message-ID: <20020628225859.34857.qmail@web20702.mail.yahoo.com> (raw)
In-Reply-To: <0206281733.AA24055@nabeth.cxo.cpqcorp.net>

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


           reply	other threads:[~2002-06-28 22:58 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <0206281733.AA24055@nabeth.cxo.cpqcorp.net>]
read-only archive

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