From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: mike broderick Newsgroups: gmane.os.tru64.managers Subject: SUMMARY: how to tell if a SCSI/SAN tape is reserved? Date: Fri, 28 Jun 2002 15:58:59 -0700 (PDT) Sender: tru64-unix-managers-owner@ornl.gov Message-ID: <20020628225859.34857.qmail@web20702.mail.yahoo.com> References: <0206281733.AA24055@nabeth.cxo.cpqcorp.net> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1025305142 12723 127.0.0.1 (28 Jun 2002 22:59:02 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 28 Jun 2002 22:59:02 +0000 (UTC) Return-path: Original-Received: from sws1.ctd.ornl.gov ([160.91.20.101]) by main.gmane.org with smtp (Exim 3.33 #1 (Debian)) id 17O4hi-0003Iq-00 for ; Sat, 29 Jun 2002 00:59:02 +0200 Original-Received: (qmail 16625 invoked by uid 5); 28 Jun 2002 22:59:17 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 16553 invoked from network); 28 Jun 2002 22:59:17 -0000 Original-Received: from unknown (HELO emroute2.cind.ornl.gov) (128.219.159.41) by 0 with SMTP; 28 Jun 2002 22:59:17 -0000 Original-Received: from emroute2.cind.ornl.gov (LOCALHOST [127.0.0.1]) by emroute2.cind.ornl.gov (PMDF V6.1-1 #39060) with ESMTP id <0GYF00F2SUIQ7P@emroute2.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Fri, 28 Jun 2002 18:59:17 -0400 (EDT) Original-Received: from web20702.mail.yahoo.com (web20702.mail.yahoo.com [216.136.226.175]) by emroute2.cind.ornl.gov (PMDF V6.1-1 #39060) with SMTP id <0GYF00KJCUIBMP@emroute2.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Fri, 28 Jun 2002 18:59:00 -0400 (EDT) Original-Received: from [18.94.0.87] by web20702.mail.yahoo.com via HTTP; Fri, 28 Jun 2002 15:58:59 -0700 (PDT) In-Reply-To: <0206281733.AA24055@nabeth.cxo.cpqcorp.net> Original-To: tru64-unix-managers@ornl.gov Xref: main.gmane.org gmane.os.tru64.managers:753 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:753 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