public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* ATAPI Tape Driver Failure in Kernel 2.4.4
@ 2001-05-09 14:34 Mark Bratcher
  2001-05-09 21:18 ` ATAPI Tape Driver Failure in Kernel 2.4.4, More Mark Bratcher
  0 siblings, 1 reply; 7+ messages in thread
From: Mark Bratcher @ 2001-05-09 14:34 UTC (permalink / raw)
  To: linux-kernel

[-- Attachment #1: Type: text/plain, Size: 419 bytes --]

Hi,

I just upgraded from kernel 2.2.17 to 2.4.4. I use a Seagate ATAPI tape drive,
model STT20000A. I use dump to do backups (probably not relevant).

In version 2.2.17 kernel, backups worked fine. In 2.4.4, I get the following
error message:

ide-tape: bh == NULL in idetape_copy_stage_to_user.

Anyone know what causes this problem?

Please reply directly, as I'm not a member of this list.

Thanks :-)
Mark Bratcher

[-- Attachment #2: Card for Mark Bratcher --]
[-- Type: text/x-vcard, Size: 349 bytes --]

begin:vcard 
n:Bratcher;Mark
tel;fax:716/288-4604
tel;work:716/288-7220
x-mozilla-html:FALSE
url:www.tpr.com
org:Torrey Pines Research
version:2.1
email;internet:bratcher@tpr.com
title:Director of Software Development
adr;quoted-printable:;;565 Blossom Road=0D=0ASuite A;Rochester;New York;14610;USA
x-mozilla-cpt:;19472
fn:Bratcher, Mark
end:vcard

^ permalink raw reply	[flat|nested] 7+ messages in thread

* ATAPI Tape Driver Failure in Kernel 2.4.4, More
  2001-05-09 14:34 ATAPI Tape Driver Failure in Kernel 2.4.4 Mark Bratcher
@ 2001-05-09 21:18 ` Mark Bratcher
  2001-05-09 21:36   ` Tim Moore
  0 siblings, 1 reply; 7+ messages in thread
From: Mark Bratcher @ 2001-05-09 21:18 UTC (permalink / raw)
  To: linux-kernel; +Cc: bratcher

[-- Attachment #1: Type: text/plain, Size: 1850 bytes --]

Hi,

I just upgraded from kernel 2.2.17 to 2.4.4. I use a Seagate ATAPI tape drive,
model STT20000A. I use dump to do backups (probably not relevant).

I have more data regarding tape backup failures. Here is what I get:

* In a full tape dump of about 50MB or so, everything goes smoothly. No errors.

* In a full tape dump of a little over 1GB (to a 10GB tape), I get the following
errors
immediately after the backup completes and I try to write a file mark with "mt":

May  9 16:50:49 isaiah kernel: ide-tape: Reached idetape_chrdev_open 
May  9 16:52:05 isaiah kernel: hdd: irq timeout: status=0xd0 { Busy } 
May  9 16:52:05 isaiah kernel: hdd: ATAPI reset complete 
May  9 16:52:05 isaiah kernel: ide-tape: Couldn't write a filemark 
May  9 16:52:06 isaiah kernel: ide-tape: Reached idetape_chrdev_open 
May  9 16:54:06 isaiah kernel: ide-tape: ht0: DSC timeout 
May  9 16:54:06 isaiah kernel: hdd: ATAPI reset complete 
May  9 16:54:06 isaiah kernel: ide-tape: ht0: I/O error, pc = 10, key =  2, asc
=  4,
ascq =  1 
May  9 16:54:06 isaiah kernel: ide-tape: ht0: I/O error, pc = 34, key =  2, asc
=  4,
ascq =  1 

* In a full tape dump of between 6GB and 7GB, the backup completes, I
successfully write a tape file mark with "mt", rewind, then attempt to compare.
I get:

May  9 04:21:18 isaiah kernel: ide-tape: Reached idetape_chrdev_open 
May  9 04:22:35 isaiah kernel: ide-tape: bh == NULL in
idetape_copy_stage_to_user 
May  9 04:22:35 isaiah kernel: ide-tape: bh == NULL in
idetape_copy_stage_to_user 
May  9 04:22:36 isaiah kernel: ide-tape: Reached idetape_chrdev_open 

The errors are repeatable and do not occur in 2.2.17. At this rate, I'll have to
go back to 2.2.17 to get successful backup scripts working.

Anyone know what causes this problem?

Please reply directly, as I'm not a member of this list.

Thanks :-)
Mark Bratcher

[-- Attachment #2: Card for Mark Bratcher --]
[-- Type: text/x-vcard, Size: 349 bytes --]

begin:vcard 
n:Bratcher;Mark
tel;fax:716/288-4604
tel;work:716/288-7220
x-mozilla-html:FALSE
url:www.tpr.com
org:Torrey Pines Research
version:2.1
email;internet:bratcher@tpr.com
title:Director of Software Development
adr;quoted-printable:;;565 Blossom Road=0D=0ASuite A;Rochester;New York;14610;USA
x-mozilla-cpt:;19472
fn:Bratcher, Mark
end:vcard

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: ATAPI Tape Driver Failure in Kernel 2.4.4, More
  2001-05-09 21:18 ` ATAPI Tape Driver Failure in Kernel 2.4.4, More Mark Bratcher
@ 2001-05-09 21:36   ` Tim Moore
  2001-05-10 12:31     ` Mark Bratcher
  0 siblings, 1 reply; 7+ messages in thread
From: Tim Moore @ 2001-05-09 21:36 UTC (permalink / raw)
  To: Mark Bratcher; +Cc: linux-kernel

Use SCSI emulation instead of ATAPI for the tape device.  Also make sure
your mt is >= 0.5.

[tim@abit tim]# mt -v
mt-st v. 0.5b
[tim@abit linux]# dump -v
dump 0.4b
[tim@abit linux]# restore -v
restore 0.4b17


[dmesg exerpts - tape is /dev/st0]
...
hdd: HP COLORADO 20GB, ATAPI TAPE drive
...
scsi0 : SCSI host adapter emulation for IDE ATAPI devices
scsi : 1 host.
  Vendor: HP        Model: COLORADO 20GB     Rev: 4.01
  Type:   Sequential-Access                  ANSI SCSI revision: 02
Detected scsi tape st0 at scsi0, channel 0, id 0, lun 0
...

for 2.2.x .config:

CONFIG_BLK_DEV_IDESCSI
#CONFIG_BLK_DEV_IDETAPE
CONFIG_SCSI
CONFIG_CHR_DEV_ST


> immediately after the backup completes and I try to write a file mark with "mt":
> 
> May  9 16:50:49 isaiah kernel: ide-tape: Reached idetape_chrdev_open
> May  9 16:52:05 isaiah kernel: hdd: irq timeout: status=0xd0 { Busy }
> May  9 16:52:05 isaiah kernel: hdd: ATAPI reset complete
> May  9 16:52:05 isaiah kernel: ide-tape: Couldn't write a filemark
> May  9 16:52:06 isaiah kernel: ide-tape: Reached idetape_chrdev_open
> May  9 16:54:06 isaiah kernel: ide-tape: ht0: DSC timeout
> May  9 16:54:06 isaiah kernel: hdd: ATAPI reset complete
> ...

-- 
  |  650.390.9613  |  6502247437@messaging.cellone-sf.com

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: ATAPI Tape Driver Failure in Kernel 2.4.4, More
  2001-05-09 21:36   ` Tim Moore
@ 2001-05-10 12:31     ` Mark Bratcher
  2001-05-10 17:33       ` Mike Dresser
  0 siblings, 1 reply; 7+ messages in thread
From: Mark Bratcher @ 2001-05-10 12:31 UTC (permalink / raw)
  To: Tim Moore; +Cc: linux-kernel

[-- Attachment #1: Type: text/plain, Size: 2244 bytes --]

Tim,

Thanks for the input.

Sadly, it didn't work. I tried the SCSI emulation (which I already had running
on the CD-ROM, which works), but it fails for the tape.

With SCSI emulation turned on, the system recognizes the tape drive as SCSI. 
However, an attempt at the following command:

mt -f /dev/st0 rewind

yields the following errors:

May 10 07:49:33 isaiah kernel: st0: Error with sense data: [valid=0] Info
fld=0x0,
Current st09:00: sense key Illegal Request 
May 10 07:49:33 isaiah kernel: Additional sense indicates Invalid command
operation code 

This all works OK in kernel 2.2.17. But it fails in 2.4.4.

Mark

Tim Moore wrote:
> 
> Use SCSI emulation instead of ATAPI for the tape device.  Also make sure
> your mt is >= 0.5.
> 
> [tim@abit tim]# mt -v
> mt-st v. 0.5b
> [tim@abit linux]# dump -v
> dump 0.4b
> [tim@abit linux]# restore -v
> restore 0.4b17
> 
> [dmesg exerpts - tape is /dev/st0]
> ...
> hdd: HP COLORADO 20GB, ATAPI TAPE drive
> ...
> scsi0 : SCSI host adapter emulation for IDE ATAPI devices
> scsi : 1 host.
>   Vendor: HP        Model: COLORADO 20GB     Rev: 4.01
>   Type:   Sequential-Access                  ANSI SCSI revision: 02
> Detected scsi tape st0 at scsi0, channel 0, id 0, lun 0
> ...
> 
> for 2.2.x .config:
> 
> CONFIG_BLK_DEV_IDESCSI
> #CONFIG_BLK_DEV_IDETAPE
> CONFIG_SCSI
> CONFIG_CHR_DEV_ST
> 
> > immediately after the backup completes and I try to write a file mark with "mt":
> >
> > May  9 16:50:49 isaiah kernel: ide-tape: Reached idetape_chrdev_open
> > May  9 16:52:05 isaiah kernel: hdd: irq timeout: status=0xd0 { Busy }
> > May  9 16:52:05 isaiah kernel: hdd: ATAPI reset complete
> > May  9 16:52:05 isaiah kernel: ide-tape: Couldn't write a filemark
> > May  9 16:52:06 isaiah kernel: ide-tape: Reached idetape_chrdev_open
> > May  9 16:54:06 isaiah kernel: ide-tape: ht0: DSC timeout
> > May  9 16:54:06 isaiah kernel: hdd: ATAPI reset complete
> > ...
> 
> --
>   |  650.390.9613  |  6502247437@messaging.cellone-sf.com
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/

[-- Attachment #2: Card for Mark Bratcher --]
[-- Type: text/x-vcard, Size: 349 bytes --]

begin:vcard 
n:Bratcher;Mark
tel;fax:716/288-4604
tel;work:716/288-7220
x-mozilla-html:FALSE
url:www.tpr.com
org:Torrey Pines Research
version:2.1
email;internet:bratcher@tpr.com
title:Director of Software Development
adr;quoted-printable:;;565 Blossom Road=0D=0ASuite A;Rochester;New York;14610;USA
x-mozilla-cpt:;19472
fn:Bratcher, Mark
end:vcard

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: ATAPI Tape Driver Failure in Kernel 2.4.4, More
  2001-05-10 12:31     ` Mark Bratcher
@ 2001-05-10 17:33       ` Mike Dresser
  2001-05-10 20:48         ` Ed Tomlinson
  0 siblings, 1 reply; 7+ messages in thread
From: Mike Dresser @ 2001-05-10 17:33 UTC (permalink / raw)
  To: linux-kernel

Mark Bratcher wrote:

>
> This all works OK in kernel 2.2.17. But it fails in 2.4.4.
> > hdd: HP COLORADO 20GB, ATAPI TAPE drive

I did my own playing with 2.4.x on the 14gb model of this tape drive, all i've managed
to do is be able to write to the tape, but not read from it.  Even in 2.2.x, putting the
IDE patches in, breaks it.  Apparently the HP's aren't completely ATAPI compatible


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: ATAPI Tape Driver Failure in Kernel 2.4.4, More
  2001-05-10 17:33       ` Mike Dresser
@ 2001-05-10 20:48         ` Ed Tomlinson
  2001-05-10 21:26           ` Tim Moore
  0 siblings, 1 reply; 7+ messages in thread
From: Ed Tomlinson @ 2001-05-10 20:48 UTC (permalink / raw)
  To: linux-kernel

Mike Dresser wrote:

> Mark Bratcher wrote:
> 
>>
>> This all works OK in kernel 2.2.17. But it fails in 2.4.4.
>> > hdd: HP COLORADO 20GB, ATAPI TAPE drive
> 
> I did my own playing with 2.4.x on the 14gb model of this tape drive, all i've managed
> to do is be able to write to the tape, but not read from it.  Even in 2.2.x, putting the
> IDE patches in, breaks it.  Apparently the HP's aren't completely ATAPI compatible

I can write my HP 20GB drive with ide-tape.  For restores I use ide-scsi.  Its a bit of a 
hack but does work around the problem.

Ed Tomlinson <tomlins@cam.org>


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: ATAPI Tape Driver Failure in Kernel 2.4.4, More
  2001-05-10 20:48         ` Ed Tomlinson
@ 2001-05-10 21:26           ` Tim Moore
  0 siblings, 0 replies; 7+ messages in thread
From: Tim Moore @ 2001-05-10 21:26 UTC (permalink / raw)
  To: Ed Tomlinson; +Cc: linux-kernel

> > to do is be able to write to the tape, but not read from it.
> > Even in 2.2.x, putting the IDE patches in, breaks it.  Apparently
> > the HP's aren't completely ATAPI compatible

scsi0 : SCSI host adapter emulation for IDE ATAPI devices
scsi : 1 host.
  Vendor: HP        Model: COLORADO 20GB     Rev: 4.01
  Type:   Sequential-Access                  ANSI SCSI revision: 02
Detected scsi tape st0 at scsi0, channel 0, id 0, lun 0

The following all work with the above, either ide.2.2.19.04092001.patch or
ide.2.2.18.1221.patch:

linux-2.2.19pre17-ide
linux-2.2.19-intel-hpt-smp
linux-2.2.19-amd-via-ide
linux-2.2.20p2-amd-via-ide


[14:17] abit:/etc/dump > more *.block
::::::::::::::
dump0-abit-2.2.19-050401-06:43:36.block
::::::::::::::
/       0       dump
/usr    90113   dump
/var    3593378 dump
/tmp    3675075 dump
/home   3692644 dump
/kits   5237605 dump
/big    9440550 dump
::::::::::::::
dump1-abit-2.2.20-050901-17:10:08.block
::::::::::::::
/       14567911        dump
/usr    14574120        dump
/var    14810569        dump
/tmp    14832970        dump
/home   14833227        dump
/kits   15199116        dump
/big    15850029        dump
[14:17] abit:/etc/dump > mt seek 14567911
[14:18] abit:/etc/dump > mt tell
At block 14567911.
[14:20] abit:/etc/dump > /sbin/restore -t -f /dev/nst0 | head
Level 1 dump of / on abit:/dev/hda2
Label: "abit-2.2.20"
Dump   date: Wed May  9 17:11:53 2001
Dumped from: Fri May  4 06:43:36 2001
         2      .
        11      ./lost+found
      4065      ./lost+found/#4065
      4019      ./dev
      4030      ./dev/initctl
      4083      ./dev/audio
      4084      ./dev/audio1
      4111      ./dev/console

rgds,
tim.
--

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2001-05-10 21:26 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-05-09 14:34 ATAPI Tape Driver Failure in Kernel 2.4.4 Mark Bratcher
2001-05-09 21:18 ` ATAPI Tape Driver Failure in Kernel 2.4.4, More Mark Bratcher
2001-05-09 21:36   ` Tim Moore
2001-05-10 12:31     ` Mark Bratcher
2001-05-10 17:33       ` Mike Dresser
2001-05-10 20:48         ` Ed Tomlinson
2001-05-10 21:26           ` Tim Moore

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox