From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Andrew Raine Newsgroups: gmane.os.tru64.managers Subject: SUMMARY: vdump strangeness Date: Wed, 16 Oct 2002 10:34:23 +0100 Sender: tru64-unix-managers-owner@ornl.gov Message-ID: <20021016103423.A392@mail.mrc-dunn.cam.ac.uk> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1034760909 16658 80.91.224.249 (16 Oct 2002 09:35:09 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 16 Oct 2002 09:35:09 +0000 (UTC) Cc: IT Support Return-path: Original-Received: from sws1.ctd.ornl.gov ([160.91.20.101]) by main.gmane.org with smtp (Exim 3.35 #1 (Debian)) id 181ka3-0004KY-00 for ; Wed, 16 Oct 2002 11:35:07 +0200 Original-Received: (qmail 9604 invoked by uid 5); 16 Oct 2002 09:35:39 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 9595 invoked by uid 49493); 16 Oct 2002 09:35:38 -0000 Original-Received: from ar@mrc-dunn.cam.ac.uk by sws1 by uid 49491 with qmail-scanner-1.14 (clamscan: 0.51. spamassassin: 2.50-cvs. Clear:SA:0(-9.8/5.0):. Processed in 0.641191 secs); 16 Oct 2002 09:35:38 -0000 Original-Received: from unknown (HELO emroute3.ornl.gov) (160.91.4.110) by 0 with SMTP; 16 Oct 2002 09:35:38 -0000 Original-Received: from emroute3.ornl.gov (localhost [127.0.0.1]) by emroute3.ornl.gov (PMDF V6.1-1 #39060) with ESMTP id <0H420040UIND5H@emroute3.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Wed, 16 Oct 2002 05:35:37 -0400 (EDT) Original-Received: from purple.csi.cam.ac.uk (purple.csi.cam.ac.uk [131.111.8.4]) by emroute3.ornl.gov (PMDF V6.1-1 #39060) with ESMTP id <0H4200H29IMI4I@emroute3.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Wed, 16 Oct 2002 05:35:07 -0400 (EDT) Original-Received: from mail.mrc-dunn.cam.ac.uk ([193.60.81.53]) by purple.csi.cam.ac.uk with esmtp (Exim 4.10) id 181ka2-0005ZA-00 for tru64-unix-managers@ornl.gov; Wed, 16 Oct 2002 10:35:06 +0100 Original-Received: by mail.mrc-dunn.cam.ac.uk (8.9.3) id KAA00494; Wed, 16 Oct 2002 10:34:23 +0100 Original-To: tru64-unix-managers@ornl.gov Content-Disposition: inline User-Agent: Mutt/1.2i Xref: main.gmane.org gmane.os.tru64.managers:2084 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:2084 (I composed this summary 2 weeks ago, but forgot to send it - many apologies) Dear Managers, It seems that the behaviour I see with my NEO Overland SDLT is the one expected from vdump (I still don't know why I don't see it with the DLT8000). I should be using the -N option to suppress the rewind, and I probably need to install PK5 so that vdump doesn't crash when I use the -N option... In the interim, I'll probably end up using an "mt seod" to get back to the end of the tape after each fileset. Thanks again for your help. The answers I received: Dr Thomas Blinn: I have exactly zero personal experience with either of the two tape library devices you mention, but I do know that there are some tape libraries that "automagically" switch to a new tape (rewind, eject, load next, position to BOT, keep going) when they reach physical end of tape and the system keeps presenting data, and there are some others that return an "end of tape" indication to system software, and rely on system software to initiate a switch to the next tape. "vdump" itself has NO support at all for dealing with changers; if the changer does the "automagic" media switching, it's happy, since as far as it knows it's just continuing to write to a single tape volume. But if the changer returns "end of volume" then "vdump" is going to rewind and eject the tape and ask the operator for the next tape volume (this does NOT work very well, and especially not in a "batch" job, since "vdump" insists on talking to /dev/tty not to standard input). Again, I don't have personal experience with your media changers, but I do know some of the variations in behavior and I know that "vdump" is NOT very good with changers that don't "automagically" switch the tapes for you. Tom Paul Wilson: We have also had problems using vdump on 5.1. Looking further into it, patchkit 5 has a number of vdump fixes. It may be worth taking a look. Jim Belonis: regardless of the kind of device you use, vdump likes to send a rewind command when it is done. use the -N command-line option in vdump to disable this behaviour. Original Question: > Dear Managers, > > I've been having difficulties with my vdump scripts, using a NEO > Overland tape library containing an SuperDLT drive. Vdump seems to > behave differently on this system than it does on my TL800 containing a > DLT8000 drive. > > What I am seeing is that *vdump* is rewinding the tape at the end of > the job, when using the NEO/SDLT, but doesn't using the TL800/DLT. > (Furthermore, if there are errors, then the NEO/SDLT goes offline, but > the TL800/DLT doesn't - but this isn't my main problem). > > I'm pretty sure that I am using the non-rewind devices in both cases: > > beta # cd /dev > beta # ls -l DLT0 SDLT0 > lrwxrwxrwx 1 root system 14 Jul 23 14:52 DLT0 -> ntape/tape0_d1 > lrwxrwxrwx 1 root system 14 Jul 23 14:52 SDLT0 -> ntape/tape3_d1 > > My vdump commands were: > > /sbin/vdump -0 -u -b 64 -f /dev/DLT0 > > and > > /sbin/vdump -0 -u -b 64 -f /dev/SDLT0 > > > I noticed, that the man-page describes options: > > -N Does not rewind the storage device when it is a tape. > -U Does not unload the storage device when it is a tape. > > However, including -N, or both of these causes vdump to exit with a > Segmentation fault. Including just -U doesn't stop the tape rewinding. > > Can anyone tell me > > (a) whether it is vdump that is doing the rewinding and ignoring the > choice of non-rewinding tape device? > > (b) is there anything else that I've missed, or do I just need to make > my scripts explicitly forward the tape again (using mt) after each > vdump? > > I'm running 5.1 PK3 on an ES40 > > Regards, > > Andrew Andrew -- Dr. Andrew Raine, Head of IT, MRC Dunn Human Nutrition Unit, Wellcome Trust/MRC Building, Hills Road, Cambridge, CB2 2XY, UK phone: +44 (0)1223 252830 fax: +44 (0)1223 252835 web: www.mrc-dunn.cam.ac.uk email: Andrew.Raine@mrc-dunn.cam.ac.uk