Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 2 Apr 2002 11:11:32 -0800 (PST)
From:      Doug Silver <dsilver@quantified.com>
To:        "Kenneth D. Merry" <ken@kdm.org>
Cc:        stable@FreeBSD.ORG
Subject:   Re: SCSI tape error using Amanda/dump
Message-ID:  <Pine.LNX.4.21.0204021057590.14106-100000@danzig.sd.quantified.net>
In-Reply-To: <20020401210806.A59384@panzer.kdm.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE>
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: <math processor> on motherboard
npx0: INT 16 interface
pcib0: <Host to PCI bridge> on motherboard
pci0: <PCI bus> on pcib0
pci0: <Intel model 1132 VGA-compatible display device> at 2.0 irq 11
pcib1: <Intel 82801BA/BAM (ICH2) Hub to PCI bridge> at device 30.0 on pci0
pci1: <PCI bus> on pcib1
ahc0: <Adaptec 2930 Ultra2 SCSI adapter> 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: <Intel Pro 10/100B/100+ Ethernet> 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: <i82555 10/100 media interface> on miibus0
inphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
isab0: <Intel 82801BA/BAM (ICH2) PCI to LPC bridge> at device 31.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel ICH2 ATA100 controller> port 0xf000-0xf00f at device 31.1
on pci0
ata0: at 0x1f0 irq 14 on atapci0
ata1: at 0x170 irq 15 on atapci0
pci0: <Intel 82801BA/BAM (ICH2) USB controller USB-A> at 31.2 irq 11
pci0: <Intel 82801BA/BAM (ICH2) USB controller USB-B> at 31.4 irq 9
pci0: <unknown card> (vendor=0x8086, dev=0x2445) at 31.5 irq 5
orm0: <Option ROMs> at iomem
0xc0000-0xc9fff,0xcc000-0xcc7ff,0xcd000-0xce7ff on isa0
fdc0: <NEC 72065B or clone> at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0
fdc0: FIFO enabled, 8 bytes threshold
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0
kbd0 at atkbd0
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
ad0: 39082MB <Maxtor 54098U8> [79406/16/63] at ata0-master UDMA66
acd0: CDROM <ATAPI 52X CDROM> at ata1-master using PIO4
Waiting 15 seconds for SCSI devices to settle
sa0 at ahc0 bus 0 target 6 lun 0
sa0: <SEAGATE DAT    06240-XXX 8071> Removable Sequential Access SCSI-3
device 
sa0: 80.000MB/s transfers (40.000MHz, offset 32, 16bit)
Mounting root from ufs:/dev/ad0s1a

then a bunch of:
(sa0:ahc0:0:6:0): tape is now frozen- use an OFFLINE, REWIND or MTEOM
command to clear this state.
(sa0:ahc0:0:6:0): tape is now frozen- use an OFFLINE, REWIND or MTEOM
command to clear this state.



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.LNX.4.21.0204021057590.14106-100000>