Skip to contentSkip to conversation

(unknown)

DISCUSSION Alexander Stohr 2 participants 3 messages Oct 4, 2004 SCSI

lore
Share & tools
lore
#0 lore raw
Quoted 3 lines · Kai

Whenever you report tape problems, it would be helpful to know at least the drive mode (fixed vs. variable block mode) and block size (if fixed block mode). You can get this information with 'mt status'.

With kernel 2.6.7 its working and i do get this:

[...without a tape...]

$ mt status
SCSI 2 tape drive:
File number=-1, block number=-1, partition=0.
Tape block size 0 bytes. Density code 0x0 (default).
Soft error count since last status=0
General status bits on (50000):
 DR_OPEN IM_REP_EN
$ mt asf 0
/dev/tape: Input/output error
$ mt setblk 512
/dev/tape: No medium found

[...with a DDS-3 tape...]

$ mt asf 0
$ mt status
SCSI 2 tape drive:
File number=0, block number=0, partition=0.
Tape block size 0 bytes. Density code 0x25 (DDS-3).
Soft error count since last status=0
General status bits on (41010000):
 BOT ONLINE IM_REP_EN
$ tar -tvf /dev/tape
[...file listing...]

sorry, the machine in question is currently blocked. at the moment i cant supply results from 2.6.9-rc3 kernel build. But it were the very same command sequence, so it should work in theory, but in pratice i got access errors on command line.

Quoted 5 lines

The sym53c8xx_2 driver has had problems in speed negotiation recently. As I mentioned, the speed negotiation did not succeed with my drives at some point. I have here patch-2.6.9-rc2-bk14 and it does not seem to have those fixes yet. It might be good if you could try a new kernel (2.6.9-rc3 is certainly new enough) and see if this helps.

I think i have tried those version and it failed, but i will retest with latest BitKeeper version probably tonight and report on that.

-Alex.

Signature · 2 lines
GMX ProMail mit bestem Virenschutz http://www.gmx.net/de/go/mail
+++ Empfehlung der Redaktion +++ Internet Professionell 10/04 +++
#1 lore raw

Re: [BUG] Sym. 53c895 fails accessing tape device - kernel

Hello,

i think the problem has improved in the key area with one of the most recent kernels.
After a reboot and tape insertion to the drive i can operate like this:

$ uname -r
2.6.9-rc3-bk3
$ mt status
SCSI 2 tape drive:
File number=0, block number=0, partition=0.
Tape block size 512 bytes. Density code 0x25 (DDS-3).
Soft error count since last status=0
General status bits on (41010000):
 BOT ONLINE IM_REP_EN
$ mt setblk 0
$ tar -tvf /dev/tape
[...file list...]

the "strange" thing is that the tape device now reports a block size of 512 bytes at startup where previousely i always expected a "0" default. No i have to set that value once for the machine (it is persistent trough tape changes and all users) so that a "setblk" might have to go into init scritps.

I dont know if this is wanted or intended behaviour for a SCSI tape device, but it is at least not equal to what is characteristic for my (and others) method of normal usage.

If you can comment on the idea behind it
how the normal use is intended to happen,
it would be nice.

checking back to syslog (after a bit of testing) i still could find lots of verbosity:
kernel: sym1:4:0:phase change 6-7 9@02189f84 resid=6.

last message repeated 52 times

last message repeated 61 times

last message repeated 8 times

kernel: sym1:4:0:phase change 6-7 9@02189f84 resid=6.

last message repeated 2 times

kernel: st0: Block limits 1 - 16777215 bytes.

kernel: sym1:4:0:phase change 6-7 9@02189f84 resid=6.

last message repeated 9 times

last message repeated 7 times

last message repeated 120 times
What about that? This is filling up the logs, but is that really an error or what else is it?

-Alex.

Signature · 2 lines
GMX ProMail mit bestem Virenschutz http://www.gmx.net/de/go/mail
+++ Empfehlung der Redaktion +++ Internet Professionell 10/04 +++
#2 lore raw

Re: [BUG] Sym. 53c895 fails accessing tape device - kernel

Quoted 20 lines · Alexander Stohr

Hello,

i think the problem has improved in the key area with one of the most recent kernels.
After a reboot and tape insertion to the drive i can operate like this:

$ uname -r
2.6.9-rc3-bk3
$ mt status
SCSI 2 tape drive:
File number=0, block number=0, partition=0.
Tape block size 512 bytes. Density code 0x25 (DDS-3).
Soft error count since last status=0
General status bits on (41010000):
 BOT ONLINE IM_REP_EN
$ mt setblk 0
$ tar -tvf /dev/tape
[...file list...]
Quoted 3 lines

the "strange" thing is that the tape device now reports a block size of 512 bytes at startup where previousely i always expected a "0" default.

This is really strange. The drive firmware should set either fixed block mode or variable block mode after power-up/reset but it should not change depending on the kernel version. The st driver does not change this setting (or any other drive parameter) unless the user tells it to do so.

One possibility is that your drive autodetects the tape block size when a tape is inserted. However, this is a somewhat bad theory because it did not do that in your previous message.

BTW, if you look carefully at your previous message, you can see that setting the block size fails because you don't have tape in the drive. tar with variable block size is quite permissive and this is why your test succeeds.

Quoted 4 lines

No i have to set that value once for the machine (it is persistent trough tape changes and all users) so that a "setblk" might have to go into init scritps.

It persists if your drive does not autodetect the block size when you insert a tape.

Quoted 9 lines

I dont know if this is wanted or intended behaviour for a SCSI tape device, but it is at least not equal to what is characteristic for my (and others) method of normal usage.

If you can comment on the idea behind it
how the normal use is intended to happen,
it would be nice.

If you want to use a mode and/or block size that is not the default for the firmware, use should set the default block size. You can use 'mt defblksize xxx' or stinit in your initscripts. This may give you the behaviour you expect. The st driver gives you mechanisms you can use to set the tape parameters for each drive. Since the choice of parameters is a policy issue, choosing the parameters is left to the user (distribution).

Quoted 4 lines

checking back to syslog (after a bit of testing) i still could find lots of verbosity:
kernel: sym1:4:0:phase change 6-7 9@02189f84 resid=6.

...

Quoted 3 lines

What about that? This is filling up the logs, but is that really an error or what else is it?

It looks like there is a problem in the communications between your drive and the SCSI HBA. The reason may be the drive firmware, HBA driver, cables, termination, etc. Anyway, from the st point of view, everything seems to work correctly. The low-level driver shows errors but it can work around the errors.

Signature · 1 line
Kai