Skip to contentSkip to conversation

ATAPI Tape Driver Failure in Kernel 2.4.4

DISCUSSION Mark Bratcher 4 participants 7 messages May 9, 2001 – May 10, 2001

lore
Share & tools
lore
#0 lore raw

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

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:[email protected]
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

#1 lore raw

ATAPI Tape Driver Failure in Kernel 2.4.4, More

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

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:[email protected]
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

#2 lore raw

Re: ATAPI Tape Driver Failure in Kernel 2.4.4, More

In reply to Mark Bratcher

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

Quoted 10 lines

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

...

Signature · 1 line
  |  650.390.9613  |  [email protected]
#3 lore raw

Re: ATAPI Tape Driver Failure in Kernel 2.4.4, More

In reply to Mark Bratcher

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

Quoted 40 lines · Tim Moore

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

Quoted 10 lines

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

...

Quoted 7 lines

--
| 650.390.9613 | [email protected]
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

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:[email protected]
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

#4 lore raw

Re: ATAPI Tape Driver Failure in Kernel 2.4.4, More

In reply to Mark Bratcher
Quoted 3 lines · Mark Bratcher

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

Quoted 1 line

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

#5 lore raw

Re: ATAPI Tape Driver Failure in Kernel 2.4.4, More

In reply to Mark Bratcher
Quoted 9 lines · Mike Dresser
Quoted 3 lines · Mark Bratcher

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

Quoted 1 line

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 <[email protected]>

#6 lore raw

Re: ATAPI Tape Driver Failure in Kernel 2.4.4, More

In reply to Mark Bratcher
Quoted 3 lines
Quoted 3 lines

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.
--