From owner-freebsd-stable Tue Apr 2 11:11:43 2002 Delivered-To: freebsd-stable@freebsd.org Received: from mail.quantified.com (ns2.quantified.com [63.212.171.3]) by hub.freebsd.org (Postfix) with ESMTP id 7FD2B37B416 for ; Tue, 2 Apr 2002 11:11:32 -0800 (PST) Received: from danzig.sd.quantified.net (web.quantified.com [63.212.171.5]) by mail.quantified.com (8.12.1/8.12.1) with ESMTP id g32JBsw8059660; Tue, 2 Apr 2002 11:11:54 -0800 (PST) (envelope-from dsilver@quantified.com) Date: Tue, 2 Apr 2002 11:11:32 -0800 (PST) From: Doug Silver X-Sender: dsilver@danzig.sd.quantified.net To: "Kenneth D. Merry" Cc: stable@FreeBSD.ORG Subject: Re: SCSI tape error using Amanda/dump In-Reply-To: <20020401210806.A59384@panzer.kdm.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Filter-Version: 1.7 (mail.quantified.com) Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Mon, 1 Apr 2002, Kenneth D. Merry wrote: > On Mon, Apr 01, 2002 at 17:32:24 -0800, Doug Silver wrote: > > I just changed my longtime Amanda server from BSDI to FBSD 4.4-Stable and > > I'm not sure if I'm using the correct tape device. > > [snip] > > Not sure what is going on there. If there is more information in the > dmesg, that might help diagnose things. See below for entire dmesg. > > > so I run 'mt -f /dev/nsa0 rewind' and things appear to be okay, but I > > still get that error. Also tried this: > > > > # dump 0f /dev/nsa0 /etc > > DUMP: Date of this level 0 dump: Mon Apr 1 17:27:47 2002 > > DUMP: Date of last level 0 dump: the epoch > > DUMP: Dumping /etc to /dev/nsa0 > > DUMP: bad sblock magic number > > DUMP: The ENTIRE dump is aborted. > > dump(8) works on filesystems. I suppose /etc is not a separate filesystem? > > Ken > oops, you got me! Guess I didn't RTFM close enough ;) However, this morning I came in and the same error happened last night when Amanda ran (using /dev/nsa0). When I tried to flush it to tape (on a fairly new tape, only used 17 times), it failed again. I even ran the tape cleaner. Only putting in a brand new tape did it work. Is the sa driver that particular about used tapes?!! Note to developers, there's a discrepency in the documentation for sa(4) and mt(1) for the proper SCSI tape devices. from mt(1): FILES /dev/*rwt* QIC-02/QIC-36 magnetic tape interface /dev/*rsa[0-9]* SCSI magnetic tape interface from sa(4): FILES /dev/[n][e]sa[0-9] general form: /dev/sa0 Rewind on close /dev/nsa0 No rewind on close /dev/esa0 Eject on close (if capable) /dev/sa0.ctl Control mode device (to examine state while another program is accessing the device, e.g.). I think I saw it was mentioned that the /dev/r* device was only there for historical reasons and was probably going away -- but don't quote me on that ;) -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Doug Silver Network Manager Quantified Systems, Inc ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ dmesg output: FreeBSD 4.4-STABLE #0: Thu Mar 28 17:55:43 PST 2002 Timecounter "i8254" frequency 1193182 Hz Timecounter "TSC" frequency 367502422 Hz CPU: Pentium III/Pentium III Xeon/Celeron (367.50-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0x683 Stepping = 3 Features=0x383f9ff real memory = 401539072 (392128K bytes) avail memory = 387747840 (378660K bytes) Preloaded elf kernel "kernel" at 0xc02f5000. Preloaded userconfig_script "/boot/kernel.conf" at 0xc02f509c. Pentium Pro MTRR support enabled md0: Malloc disk Using $PIR table, 10 entries at 0xc00fdea0 npx0: on motherboard npx0: INT 16 interface pcib0: on motherboard pci0: on pcib0 pci0: at 2.0 irq 11 pcib1: at device 30.0 on pci0 pci1: on pcib1 ahc0: port 0xc000-0xc0ff mem 0xd5021000-0xd5021fff irq 11 at device 0.0 on pci1 aic7890/91: Ultra2 Wide Channel A, SCSI Id=7, 32/255 SCBs fxp0: port 0xc400-0xc43f mem 0xd5000000-0xd501ffff,0xd5020000-0xd5020fff irq 5 at device 1.0 on pci1 fxp0: Ethernet address 00:d0:b7:85:e8:82 inphy0: on miibus0 inphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto isab0: at device 31.0 on pci0 isa0: on isab0 atapci0: port 0xf000-0xf00f at device 31.1 on pci0 ata0: at 0x1f0 irq 14 on atapci0 ata1: at 0x170 irq 15 on atapci0 pci0: at 31.2 irq 11 pci0: at 31.4 irq 9 pci0: (vendor=0x8086, dev=0x2445) at 31.5 irq 5 orm0: