-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Clint,

Thank you for your patch!  And don't worry about reversing the files,
patch and I picked that up pretty quickly. :-) Unfortunately, even
applied properly, it didn't make much of a difference.

Earlier this evening I ran a 10G, 7 partition amanda run onto a tape
that had previously been used for a windows backup, and had been
prepared using "mt erase; mt retension; mt rewind."  amanda ran with
no errors, and I only got a few "expected to find marker" messages in
my logs.  So, I should have a tape with almost 10G on it, right?
Nope.  amverify can't even find a valid tape label.  Even worse, mt
status reports this:

  drive type = Generic SCSI-2 tape
  drive status = 32768
  sense key error = 0
  residue count = 0
  file number = 0
  block number = 318030
  Tape block size 32768 bytes. Density code 0x0 (default).
  Soft error count since last status=0
  General status bits on (41000000):
   BOT ONLINE

Note the "BOT"?  Yes, the driver thinks we are at the beginning of the
tape (which is true - this followed a rewind command), but we are also
at block 318030!  Indeed, this phenomena persists even after ejecting
and inserting another tape.  The only way I know to fix this is to do
an "mt erase."  Not exactly something you want to do to a backup
tape...

One interesting thing about that block number: it is almost precisely
the count I'd expect for the _end_ of my backup.  (amanda reports
backing up 9937.9 megs.)

The only answer that makes sense to me is that the tape somehow got
rewound behind the driver's back, probably while /dev/nht0 was closed,
but not positioned at the beginning of the tape.

Perhaps this has to do with firmware versions?  My drive is at 1.06.
Maybe I should I try 1.05?

  --Anil


Clint Marek <[EMAIL PROTECTED]> writes:

> Arggh!  Got the filenames transposed.  Use patch -R.  Sorry.
> 
> Clint Marek wrote:
> > 
> > Anil,
> > 
> > Here is a patch I used to get my DI-30 working.  The patch should be
> > applied to linux-2.2.15 with andre's ide patch applied.  The patch is
> > based on a posting to the list last week and Tim's patch on
> > linuxtapecert.org.  For the first time in weeks I was able to do a
> > backup and verify with BRU.  The backup consists of two sessions written
> > to the tape.
> > 
> > Hope it helps.
> > 
> > Clint
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.1 (GNU/Linux)

iEYEARECAAYFAjk58qkACgkQXOpXEmNZ3SeRHgCeNcYVlUWK9M9I5+Lf83KaQBJB
af0AnAjt0nhtYZoYGz2RiNHWvFmpFav4
=7kAv
-----END PGP SIGNATURE-----

Reply via email to