public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
From: Kevin Fenzi <kevin-linux-kernel@scrye.com>
To: Kai Makisara <Kai.Makisara@kolumbus.fi>
Cc: linux-scsi@vger.kernel.org
Subject: Re: 2.4.x end of tape handling error
Date: Mon, 17 Feb 2003 20:16:43 -0700	[thread overview]
Message-ID: <20030218031646.28526.qmail@scrye.com> (raw)
In-Reply-To: <Pine.LNX.4.52.0302102249480.804@kai.makisara.local>

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

>>>>> "Kai" == Kai Makisara <Kai.Makisara@kolumbus.fi> writes:

Kai> This discussion should really be moved to linux-scsi... 

ok.

Kai> 10 Feb 2003, Kevin Fenzi wrote:

>> Greetings.
>> 
>> I have had reported from a client that they are having problems
>> with backups that span more than one tape. Instead of getting an
>> EOT error or EOM, they are getting an I/O error wich requires the
>> driver to be unloaded and reloaded before the tape will work again.
>> 
Kai> What messages have they seen in the system log? Some messages
Kai> should be after this kind of error. It is difficult to see where
Kai> the problem is without any details. There have not been any
Kai> significant changes in EOM handling in st between the 2.4
Kai> kernels.

I have duplicated the problem with a dds2 drive I have here. 

Basically, they get back a EIO error instead of a ENOSPC error when
hitting the end of tape. 

>> http://www.linuxtapecert.org/ Says that the redhat 2.4.9-34 kernel
>> is the last one that had proper EOT handling. Indeed, if they use
>> the 2.4.9-34 kernel, the tape works properly. Thats not a very good
>> solution however.
>> 
>> Is this fixed in the latest 2.4.21-pres? How about in 2.5.x?
>> 
Kai> Don't know. EOM handling has worked with my test system (HP DDS
Kai> drives connected to a SYM53c896) with both 2.4 and 2.5 kernels. I
Kai> just reran the eom tests with 2.4.20 and 2.5.60 without problems.

My test system is very similar. 

HP DDS2 drive, on a SYM53c896. ;) 
Redhat 7.3 machine, running 2.4.18-24.7.x. 

To test I just used tar and tried to put more on the tape than would
fit. 

I got: 

...
write(3, "\305\230\240=:-v\t\237&\16\317\234+x\"N(\375\0\264\000"..., 10240) = -1 EIO (Input/output error)
write(2, "tar: ", 5)                    = 5
write(2, "/dev/nst0: Wrote only 0 of 10240"..., 38) = 38
write(2, "\n", 1)                       = 1
write(2, "tar: ", 5)                    = 5
write(2, "Error is not recoverable: exitin"..., 37) = 37
write(2, "\n", 1)                       = 1
munmap(0x4002e000, 4096)                = 0
_exit(2)                                = ?

I tried loading the driver with various options, in case it was a
buffering issue: 

modprobe st buffer_kbs=0 write_threshold_kbs=0 max_buffers=0 max_sg_segs=0

Any option I seemed to give it resulted in the same thing. 
I would be happy to test anything or provide you access to the box
with the tape drive on it. 
Will also try the 2.4.9-34 kernel that is supposed to not have this
issue. 

Kai> 	Kai

kevin

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.8 <http://mailcrypt.sourceforge.net/>

iD8DBQE+UaWe3imCezTjY0ERAt84AJ9JIzGEwm5H9Id4Tg4k0/o0fzZmgwCgk3zr
bP+qoI82jXtyMY7XU2YHjWU=
=4Z2L
-----END PGP SIGNATURE-----

       reply	other threads:[~2003-02-18  3:16 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20030210182254.2913.qmail@scrye.com>
     [not found] ` <Pine.LNX.4.52.0302102249480.804@kai.makisara.local>
2003-02-18  3:16   ` Kevin Fenzi [this message]
     [not found] <mailman.1044901620.21591.linux-kernel2news@redhat.com>
     [not found] ` <200302101904.h1AJ4US05141@devserv.devel.redhat.com>
     [not found]   ` <20030218021039.28335.qmail@scrye.com>
2003-02-24 23:53     ` 2.4.x end of tape handling error Kevin Fenzi
2003-03-02 19:26       ` Kai Makisara
2003-03-03 16:49         ` Kevin Fenzi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030218031646.28526.qmail@scrye.com \
    --to=kevin-linux-kernel@scrye.com \
    --cc=Kai.Makisara@kolumbus.fi \
    --cc=linux-scsi@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox