* Re: Problems with SCSI tapes.
@ 1999-05-11 15:08 James Bremer
1999-05-11 16:01 ` Christopher Curtis
0 siblings, 1 reply; 24+ messages in thread
From: James Bremer @ 1999-05-11 15:08 UTC (permalink / raw)
To: axp-list
Dunno - mine is running an Exabyte-8200 fairly flawlessly since compile
time. It did have to get a different mt (mt-st, from an old slackware
build) to access it properly (mt for SCSI seems to be broken in 5.0-5.2).
What kind of "flakey behavior" are you seeing? Do ALL the commands return
an error (rewind, erase, format, etc.), or just randomly when doing a tar?
- JB
>Hello all,
>
>I have a Multia running kernel 2.2.7 (redhat 5.2) with a SCSI tape device.
>If I compile 'st' as a module, I can't do anything with it, eg:
>
>[root@spanky /root]# insmod st
>Detected scsi tape st0 at scsi0, channel 0, id 1, lun 0
>Unable to get major 9 for SCSI tapes
>/lib/modules/2.2.7/scsi/st.o: init_module: Device or resource busy
>
>Why would this be? If I compile it statcly into the kernel, I can access
>the tape device, but it acts very erraticly. It tends to work, but is
>very fragile. After reporting a 'media error', every later operation
>resulted in a generic I/O error.
>
>Anyone know why this might be?
>
>Thanks,
>Christopher
^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: Problems with SCSI tapes.
1999-05-11 15:08 Problems with SCSI tapes James Bremer
@ 1999-05-11 16:01 ` Christopher Curtis
1999-05-11 19:14 ` Wes Bauske
0 siblings, 1 reply; 24+ messages in thread
From: Christopher Curtis @ 1999-05-11 16:01 UTC (permalink / raw)
To: James Bremer; +Cc: axp-list
On Tue, 11 May 1999, James Bremer wrote:
> Dunno - mine is running an Exabyte-8200 fairly flawlessly since compile
> time. It did have to get a different mt (mt-st, from an old slackware
> build) to access it properly (mt for SCSI seems to be broken in 5.0-5.2).
> What kind of "flakey behavior" are you seeing? Do ALL the commands return
> an error (rewind, erase, format, etc.), or just randomly when doing a tar?
I have a Seagate TapeStor 4/8GB SCSI 2 type tape.
Detected scsi tape st0 at scsi0, channel 0, id 1, lun 0
Vendor: SEAGATE Model: ST39140N Rev: 1281
Type: Direct-Access ANSI SCSI revision: 02
With the 'st' device compiled as a module, it simply does not work. I
boot with the tape in the drive, and it takes a *long* time for it to
finish winding, like 3-5 minutes. It is winding during boot, when
redhat's init scripts try to force the 'st' module to be loaded. That's
when I get the "cannot get major 9" error.
If I compile it into the kernel monolithically, it mostly works. I can do
a 'tar', though I'm not using it as such, and have been using mostly
'amlabel' until I can get amanda raw access to my disk partitions.
I think I may have used 'mt' to rewind the tape; I suspect this is where I
started to get the I/O errors. Once an I/O error occurs, I have no choice
but to reboot the system - that's why I wanted to try a modular approach.
But I now see that that doesn't appear to work at all.
I will get the SRPM for mt and the latest version of mt, and try my hand
at compiling/upgrading an RPM package. In the meantime, I'll just not use
it.
Christopher
^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: Problems with SCSI tapes.
1999-05-11 16:01 ` Christopher Curtis
@ 1999-05-11 19:14 ` Wes Bauske
1999-05-11 19:28 ` Wes Bauske
0 siblings, 1 reply; 24+ messages in thread
From: Wes Bauske @ 1999-05-11 19:14 UTC (permalink / raw)
To: axp-list
Christopher Curtis wrote:
>
> On Tue, 11 May 1999, James Bremer wrote:
>
> I have a Seagate TapeStor 4/8GB SCSI 2 type tape.
>
> Detected scsi tape st0 at scsi0, channel 0, id 1, lun 0
> Vendor: SEAGATE Model: ST39140N Rev: 1281
> Type: Direct-Access ANSI SCSI revision: 02
>
> With the 'st' device compiled as a module, it simply does not work. I
> boot with the tape in the drive, and it takes a *long* time for it to
> finish winding, like 3-5 minutes. It is winding during boot, when
> redhat's init scripts try to force the 'st' module to be loaded. That's
> when I get the "cannot get major 9" error.
>
I use 2.1.129 and mt v0.5, as a module, on my LX164
without problems. I've moved many hundreds of GB's
of data without trouble. Drives are Exabyte Eliant and
DLT 4000/7000's. Also, all I use mt for is to set block
size to zero and eject tapes so if it's buggy, I doubt
I'd see it.
Check your scsi bus for problems though.
Wes
^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: Problems with SCSI tapes.
1999-05-11 19:14 ` Wes Bauske
@ 1999-05-11 19:28 ` Wes Bauske
1999-05-11 19:47 ` Craig P Prescott
1999-05-11 21:20 ` Christopher W. Curtis
0 siblings, 2 replies; 24+ messages in thread
From: Wes Bauske @ 1999-05-11 19:28 UTC (permalink / raw)
To: axp-list@redhat.com
Wes Bauske wrote:
>
> Christopher Curtis wrote:
> >
> > On Tue, 11 May 1999, James Bremer wrote:
> >
> > I have a Seagate TapeStor 4/8GB SCSI 2 type tape.
> >
> > Detected scsi tape st0 at scsi0, channel 0, id 1, lun 0
> > Vendor: SEAGATE Model: ST39140N Rev: 1281
> > Type: Direct-Access ANSI SCSI revision: 02
> >
A follow up. I just noticed your output above looks wrong.
Mine shows the following:
Host: scsi1 Channel: 00 Id: 06 Lun: 00
Vendor: EXABYTE Model: EXB-85058HE-0000 Rev: 0076
Type: Sequential-Access ANSI SCSI revision: 02
Note it says sequential access. Tapes are not direct access
devices.
Something is confused in your kernel.
Wes
^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: Problems with SCSI tapes.
1999-05-11 19:28 ` Wes Bauske
@ 1999-05-11 19:47 ` Craig P Prescott
1999-05-11 21:20 ` Christopher W. Curtis
1 sibling, 0 replies; 24+ messages in thread
From: Craig P Prescott @ 1999-05-11 19:47 UTC (permalink / raw)
To: axp-list
Wes Bauske wrote:
> Wes Bauske wrote:
> >
> > Christopher Curtis wrote:
> > >
> > > On Tue, 11 May 1999, James Bremer wrote:
> > >
> > > I have a Seagate TapeStor 4/8GB SCSI 2 type tape.
> > >
> > > Detected scsi tape st0 at scsi0, channel 0, id 1, lun 0
> > > Vendor: SEAGATE Model: ST39140N Rev: 1281
> > > Type: Direct-Access ANSI SCSI revision: 02
> > >
>
> A follow up. I just noticed your output above looks wrong.
> Mine shows the following:
>
> Host: scsi1 Channel: 00 Id: 06 Lun: 00
> Vendor: EXABYTE Model: EXB-85058HE-0000 Rev: 0076
> Type: Sequential-Access ANSI SCSI revision: 02
>
> Note it says sequential access. Tapes are not direct access
> devices.
>
> Something is confused in your kernel.
I'd have to agree with that - an ST39140N is a hard drive. What is it
doing at st0?
Cheers,
Craig
^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: Problems with SCSI tapes.
1999-05-11 19:28 ` Wes Bauske
1999-05-11 19:47 ` Craig P Prescott
@ 1999-05-11 21:20 ` Christopher W. Curtis
1 sibling, 0 replies; 24+ messages in thread
From: Christopher W. Curtis @ 1999-05-11 21:20 UTC (permalink / raw)
To: axp-list
Wes Bauske wrote:
>
> Wes Bauske wrote:
> >
> > Christopher Curtis wrote:
> > >
> > > On Tue, 11 May 1999, James Bremer wrote:
> > >
> > > I have a Seagate TapeStor 4/8GB SCSI 2 type tape.
> > >
> > > Detected scsi tape st0 at scsi0, channel 0, id 1, lun 0
> > > Vendor: SEAGATE Model: ST39140N Rev: 1281
> > > Type: Direct-Access ANSI SCSI revision: 02
> > >
>
> A follow up. I just noticed your output above looks wrong.
Uhm, yeah. First it displays, then it detects. That "ST" threw me:
Vendor: Seagate Model: STT8000N Rev: 3.22
Type: Sequential-Access ANSI SCSI revision: 02
Detected scsi tape st0 at scsi0, channel 0, id 1, lun
0
A little better, no?
What you see following is it detecting the flaky Seagate DASD. =)
> Something is confused in your kernel.
Nope, just us. =)
Chris
^ permalink raw reply [flat|nested] 24+ messages in thread
* RE: Problems with SCSI tapes.
@ 1999-05-17 8:45 Ray Kiesbrink (ETM)
0 siblings, 0 replies; 24+ messages in thread
From: Ray Kiesbrink (ETM) @ 1999-05-17 8:45 UTC (permalink / raw)
To: 'axp-list@redhat.com'
> The SCSI commands do not have any priority based on SCSI ID. It is the
> arbitration process that uses the SCSI ID to decide who will get the bus
> when multiple masters want it. Also the prority of arbitration is 0 ==
> lowest 7 == higest. This is why the host is typicaly given ID 7. On some
> systems the boot disk is placed at ID 6. Which makes sense since you would
> want to have higher priority given to your disks over tapes and other
> devices.
>
>
I would not give my hd the highest prio on the bus as some devices are more picky about data: CDR, Scanners. These device require an uninterupted data transfer if possible or at least a minimum in bandwidth. Giving them higher prio assures you this is more likely.
> So. Technicaly the way most SCSI systems are configured is wrong.
>
SCSI configuration is fairly forgiving, if you keep the basics in check.
cu, ray
^ permalink raw reply [flat|nested] 24+ messages in thread
* RE: Problems with SCSI tapes.
@ 1999-05-17 8:36 Ray Kiesbrink (ETM)
0 siblings, 0 replies; 24+ messages in thread
From: Ray Kiesbrink (ETM) @ 1999-05-17 8:36 UTC (permalink / raw)
To: 'axp-list@redhat.com'
Well, according to the Adaptec docs, 7 has highest prio then 6,5,4...
Not sure about the higher numbers, thought it was 8,9,10,11,... 7 still being the highest prio. Being the bus, UW still has 7 ( by default) as the host adapter adress.
0 was for bootable device, as we all now, I put my CDW on six, just to make sure it can have a higher priority.
The reason I was opting the scsi id 2 for a tape drive is that some unix systems only can install a complete system when tapedrive is on 2. ( Sun Sparc for instance)
cu, ray
> -----Original Message-----
> From: Chris Price [SMTP:cprice@its.to]
> Sent: Friday, May 14, 1999 17:49
> To: axp-list@redhat.com
> Subject: Re: Problems with SCSI tapes.
>
>
> No, that would fundamentally go against what SCSI is all about -> a
> homogenous multi-device, multi-access bus.. The only set device in the
> SCSI standard(s) is device 0 and device 7(15 for UW). Boot devices are
> at 0 and the scsi adapter is at 7(15). The exception to this 'standard'
> are scsi cards that are able to boot from different scsi id's via a
> jumper mod on teh card or a scsi card BIOS manipulation.
>
> I have tape drive (travan, and DAT) in various machines at varying SCSI
> id's in the 4,5,6 range. AFAIK, the scsi bus prioritizes i/o requests
> based on scsi id (please correct me if I am wrong here guys/gals) with 0
> receiving a higher priority than 1, 1 than 2 and so on. So on a mixed
> bus of hard drives and tape units, it is 'better'(but not required) to
> have lower priority system devices such as tapes and cdroms sitting at
> higher numbers (such as 4,5 or 6).
>
> cheers
>
> Chris
>
> P.S. Sorry for my bad grammar and speling, I am quite hungover today..
> :(
>
> "Ray Kiesbrink (ETM)" wrote:
> >
> > I thought tapes were expected to be on scsi ID 2?
> > maybe that helps?
> >
> > > -----Original Message-----
> > > From: Craig P Prescott [SMTP:prescott@phys.ufl.edu]
> > > Sent: Tuesday, May 11, 1999 21:48
> > > To: axp-list@redhat.com
> > > Subject: Re: Problems with SCSI tapes.
> > >
> > > Wes Bauske wrote:
> > > > Wes Bauske wrote:
> > > > >
> > > > > Christopher Curtis wrote:
> > > > > >
> > > > > > On Tue, 11 May 1999, James Bremer wrote:
> > > > > >
> > > > > > I have a Seagate TapeStor 4/8GB SCSI 2 type tape.
> > > > > >
> > > > > > Detected scsi tape st0 at scsi0, channel 0, id 1, lun 0
> > > > > > Vendor: SEAGATE Model: ST39140N Rev: 1281
> > > > > > Type: Direct-Access ANSI SCSI revision: 02
> > > > > >
> > > >
> > > > A follow up. I just noticed your output above looks wrong.
> > > > Mine shows the following:
> > > >
> > > > Host: scsi1 Channel: 00 Id: 06 Lun: 00
> > > > Vendor: EXABYTE Model: EXB-85058HE-0000 Rev: 0076
> > > > Type: Sequential-Access ANSI SCSI revision: 02
> > > >
> > > > Note it says sequential access. Tapes are not direct access
> > > > devices.
> > > >
> > > > Something is confused in your kernel.
> > >
> > > I'd have to agree with that - an ST39140N is a hard drive. What is it
> > > doing at st0?
> > >
> > > Cheers,
> > > Craig
> > >
> > > --
> > > To unsubscribe: send e-mail to axp-list-request@redhat.com with
> > > 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
> >
> > --
> > To unsubscribe: send e-mail to axp-list-request@redhat.com with
> > 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
>
> --
> __________________________________________________________________________
> Pournelle's Law:
> If you do not know what you are doing, deal with people who do.
> --------------------------------------------------------------------------
>
> --
> To unsubscribe: send e-mail to axp-list-request@redhat.com with
> 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
^ permalink raw reply [flat|nested] 24+ messages in thread
* RE: Problems with SCSI tapes.
@ 1999-05-14 8:35 Ray Kiesbrink (ETM)
1999-05-14 15:49 ` Chris Price
0 siblings, 1 reply; 24+ messages in thread
From: Ray Kiesbrink (ETM) @ 1999-05-14 8:35 UTC (permalink / raw)
To: 'axp-list@redhat.com'
I thought tapes were expected to be on scsi ID 2?
maybe that helps?
> -----Original Message-----
> From: Craig P Prescott [SMTP:prescott@phys.ufl.edu]
> Sent: Tuesday, May 11, 1999 21:48
> To: axp-list@redhat.com
> Subject: Re: Problems with SCSI tapes.
>
> Wes Bauske wrote:
> > Wes Bauske wrote:
> > >
> > > Christopher Curtis wrote:
> > > >
> > > > On Tue, 11 May 1999, James Bremer wrote:
> > > >
> > > > I have a Seagate TapeStor 4/8GB SCSI 2 type tape.
> > > >
> > > > Detected scsi tape st0 at scsi0, channel 0, id 1, lun 0
> > > > Vendor: SEAGATE Model: ST39140N Rev: 1281
> > > > Type: Direct-Access ANSI SCSI revision: 02
> > > >
> >
> > A follow up. I just noticed your output above looks wrong.
> > Mine shows the following:
> >
> > Host: scsi1 Channel: 00 Id: 06 Lun: 00
> > Vendor: EXABYTE Model: EXB-85058HE-0000 Rev: 0076
> > Type: Sequential-Access ANSI SCSI revision: 02
> >
> > Note it says sequential access. Tapes are not direct access
> > devices.
> >
> > Something is confused in your kernel.
>
> I'd have to agree with that - an ST39140N is a hard drive. What is it
> doing at st0?
>
> Cheers,
> Craig
>
> --
> To unsubscribe: send e-mail to axp-list-request@redhat.com with
> 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: Problems with SCSI tapes.
1999-05-14 8:35 Ray Kiesbrink (ETM)
@ 1999-05-14 15:49 ` Chris Price
1999-05-14 17:04 ` Phil Carmody
1999-05-14 17:04 ` Alvin Starr
0 siblings, 2 replies; 24+ messages in thread
From: Chris Price @ 1999-05-14 15:49 UTC (permalink / raw)
To: axp-list
No, that would fundamentally go against what SCSI is all about -> a
homogenous multi-device, multi-access bus.. The only set device in the
SCSI standard(s) is device 0 and device 7(15 for UW). Boot devices are
at 0 and the scsi adapter is at 7(15). The exception to this 'standard'
are scsi cards that are able to boot from different scsi id's via a
jumper mod on teh card or a scsi card BIOS manipulation.
I have tape drive (travan, and DAT) in various machines at varying SCSI
id's in the 4,5,6 range. AFAIK, the scsi bus prioritizes i/o requests
based on scsi id (please correct me if I am wrong here guys/gals) with 0
receiving a higher priority than 1, 1 than 2 and so on. So on a mixed
bus of hard drives and tape units, it is 'better'(but not required) to
have lower priority system devices such as tapes and cdroms sitting at
higher numbers (such as 4,5 or 6).
cheers
Chris
P.S. Sorry for my bad grammar and speling, I am quite hungover today..
:(
"Ray Kiesbrink (ETM)" wrote:
>
> I thought tapes were expected to be on scsi ID 2?
> maybe that helps?
>
> > -----Original Message-----
> > From: Craig P Prescott [SMTP:prescott@phys.ufl.edu]
> > Sent: Tuesday, May 11, 1999 21:48
> > To: axp-list@redhat.com
> > Subject: Re: Problems with SCSI tapes.
> >
> > Wes Bauske wrote:
> > > Wes Bauske wrote:
> > > >
> > > > Christopher Curtis wrote:
> > > > >
> > > > > On Tue, 11 May 1999, James Bremer wrote:
> > > > >
> > > > > I have a Seagate TapeStor 4/8GB SCSI 2 type tape.
> > > > >
> > > > > Detected scsi tape st0 at scsi0, channel 0, id 1, lun 0
> > > > > Vendor: SEAGATE Model: ST39140N Rev: 1281
> > > > > Type: Direct-Access ANSI SCSI revision: 02
> > > > >
> > >
> > > A follow up. I just noticed your output above looks wrong.
> > > Mine shows the following:
> > >
> > > Host: scsi1 Channel: 00 Id: 06 Lun: 00
> > > Vendor: EXABYTE Model: EXB-85058HE-0000 Rev: 0076
> > > Type: Sequential-Access ANSI SCSI revision: 02
> > >
> > > Note it says sequential access. Tapes are not direct access
> > > devices.
> > >
> > > Something is confused in your kernel.
> >
> > I'd have to agree with that - an ST39140N is a hard drive. What is it
> > doing at st0?
> >
> > Cheers,
> > Craig
> >
> > --
> > To unsubscribe: send e-mail to axp-list-request@redhat.com with
> > 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
>
> --
> To unsubscribe: send e-mail to axp-list-request@redhat.com with
> 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
--
__________________________________________________________________________
Pournelle's Law:
If you do not know what you are doing, deal with people who do.
--------------------------------------------------------------------------
^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: Problems with SCSI tapes.
1999-05-14 15:49 ` Chris Price
@ 1999-05-14 17:04 ` Phil Carmody
1999-05-14 18:24 ` Chris Price
1999-05-14 17:04 ` Alvin Starr
1 sibling, 1 reply; 24+ messages in thread
From: Phil Carmody @ 1999-05-14 17:04 UTC (permalink / raw)
To: axp-list
>>>>> "Chris" == Chris Price <cprice@its.to> writes:
Chris> I have tape drive (travan, and DAT) in various machines at varying SCSI
Chris> id's in the 4,5,6 range. AFAIK, the scsi bus prioritizes i/o requests
Chris> based on scsi id (please correct me if I am wrong here guys/gals) with 0
Chris> receiving a higher priority than 1, 1 than 2 and so on. So on a mixed
Chris> bus of hard drives and tape units, it is 'better'(but not required) to
Chris> have lower priority system devices such as tapes and cdroms sitting at
Chris> higher numbers (such as 4,5 or 6).
I was under the impression that the priority was in the other order, with a
asymptote between 7 and 8. So it goes (highest priority) 7 .. 0 15 .. 8.
The reason for the wraparound/gap being the fact that 8 bit devices can't
detect devices with ids 8-15 request the bus, so 8-15 must back down.
I can't cite anything to back this up I'm afraid, but I would have assumed
that the SCSI card would be given the highest priority, and it has Id 7 on
every SCSI setup I've encountered.
So, put your swap on device with Id 6 etc...
Phil
^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: Problems with SCSI tapes.
1999-05-14 17:04 ` Phil Carmody
@ 1999-05-14 18:24 ` Chris Price
1999-05-15 13:48 ` Jaap Schellekens
0 siblings, 1 reply; 24+ messages in thread
From: Chris Price @ 1999-05-14 18:24 UTC (permalink / raw)
To: axp-list
Phil Carmody wrote:
>
> I was under the impression that the priority was in the other order, with a
> asymptote between 7 and 8. So it goes (highest priority) 7 .. 0 15 .. 8.
> The reason for the wraparound/gap being the fact that 8 bit devices can't
> detect devices with ids 8-15 request the bus, so 8-15 must back down.
>
> I can't cite anything to back this up I'm afraid, but I would have assumed
> that the SCSI card would be given the highest priority, and it has Id 7 on
> every SCSI setup I've encountered.
>
> So, put your swap on device with Id 6 etc...
I stand corrected.
On a somewhat Alpha related note (simply for discussion -> I am always
looking for critiques/suggestions on how to improve performance);
I have a pair of xl300 21164 series machines with on board NCR53c810
fast scsi-2 controllers. What I did to improve performance on my disk
subsystem was to put my cdroms, tape backups, and other traditionally
'slow' scsi devices on the builtin scsi controller and then went out and
purchased a QLogic 1040B UW controller for each machine which runs my
system and user space disks (2xseagate cheetah 9gb). I do however have
the cheetahs at scsi ID's 0 & 1 on each machine.
I am very pleased with the performance of these machines (especially
with the 256 bit memory datapath enabled).
Comments/suggestions? (other than 'QLogic sukz' or 'Seagate sukz' :) )
Chris
__________________________________________________________________________
Pournelle's Law:
If you do not know what you are doing, deal with people who do.
--------------------------------------------------------------------------
^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: Problems with SCSI tapes.
1999-05-14 18:24 ` Chris Price
@ 1999-05-15 13:48 ` Jaap Schellekens
0 siblings, 0 replies; 24+ messages in thread
From: Jaap Schellekens @ 1999-05-15 13:48 UTC (permalink / raw)
To: axp-list
On Fri, 14 May 1999, Chris Price wrote:
> I have a pair of xl300 21164 series machines with on board NCR53c810
> fast scsi-2 controllers. What I did to improve performance on my disk
> subsystem was to put my cdroms, tape backups, and other traditionally
> 'slow' scsi devices on the builtin scsi controller and then went out and
> purchased a QLogic 1040B UW controller for each machine which runs my
> system and user space disks (2xseagate cheetah 9gb). I do however have
> the cheetahs at scsi ID's 0 & 1 on each machine.
>
> I am very pleased with the performance of these machines (especially
> with the 256 bit memory datapath enabled).
256 bit? I thought the XLT has a 128 bit (+ ECC) datapath. Did a miss out
on anything? If so, i would love to know how to enable this.
Thanks -- Jaap
|Vrije Universiteit, De Boelelaan 1085, 1081 HV Amsterdam NL|
|Jaap Schellekens | E-mail: schj@geo.vu.nl|
|Hydro(geo)logy Dept. | Fax: +31 20 6462457|
|Inst. of Earth Sc. | Voice: +31 20 4447287|
^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: Problems with SCSI tapes.
1999-05-14 15:49 ` Chris Price
1999-05-14 17:04 ` Phil Carmody
@ 1999-05-14 17:04 ` Alvin Starr
1 sibling, 0 replies; 24+ messages in thread
From: Alvin Starr @ 1999-05-14 17:04 UTC (permalink / raw)
To: axp-list
On Fri, 14 May 1999, Chris Price wrote:
> No, that would fundamentally go against what SCSI is all about -> a
> homogenous multi-device, multi-access bus.. The only set device in the
> SCSI standard(s) is device 0 and device 7(15 for UW). Boot devices are
> at 0 and the scsi adapter is at 7(15). The exception to this 'standard'
> are scsi cards that are able to boot from different scsi id's via a
> jumper mod on teh card or a scsi card BIOS manipulation.
the SCSI spec does not as I remember spec what devices are "boot" devices.
This is just a custom issue. For whatever reason the first PC SCSI cards
seemed to pick 0 for the boot device but that is arbitrary and as for 7 as
the host. That is not mandated. It is possible to have multiple hosts on a
single bus.
> I have tape drive (travan, and DAT) in various machines at varying SCSI
> id's in the 4,5,6 range. AFAIK, the scsi bus prioritizes i/o requests
> based on scsi id (please correct me if I am wrong here guys/gals) with 0
> receiving a higher priority than 1, 1 than 2 and so on. So on a mixed
> bus of hard drives and tape units, it is 'better'(but not required) to
> have lower priority system devices such as tapes and cdroms sitting at
> higher numbers (such as 4,5 or 6).
The SCSI commands do not have any priority based on SCSI ID. It is the
arbitration process that uses the SCSI ID to decide who will get the bus
when multiple masters want it. Also the prority of arbitration is 0 ==
lowest 7 == higest. This is why the host is typicaly given ID 7. On some
systems the boot disk is placed at ID 6. Which makes sense since you would
want to have higher priority given to your disks over tapes and other
devices.
So. Technicaly the way most SCSI systems are configured is wrong.
Alvin Starr || voice: (416)585-9971
Interlink Connectivity || fax: (416)585-9974
alvin@iplink.net ||
^ permalink raw reply [flat|nested] 24+ messages in thread
* Problems with SCSI tapes.
@ 1999-05-11 1:08 Christopher Curtis
1999-05-11 1:35 ` Michal Jaegermann
1999-05-12 4:14 ` Christopher W. Curtis
0 siblings, 2 replies; 24+ messages in thread
From: Christopher Curtis @ 1999-05-11 1:08 UTC (permalink / raw)
To: axp-list
Hello all,
I have a Multia running kernel 2.2.7 (redhat 5.2) with a SCSI tape device.
If I compile 'st' as a module, I can't do anything with it, eg:
[root@spanky /root]# insmod st
Detected scsi tape st0 at scsi0, channel 0, id 1, lun 0
Unable to get major 9 for SCSI tapes
/lib/modules/2.2.7/scsi/st.o: init_module: Device or resource busy
Why would this be? If I compile it statcly into the kernel, I can access
the tape device, but it acts very erraticly. It tends to work, but is
very fragile. After reporting a 'media error', every later operation
resulted in a generic I/O error.
Anyone know why this might be?
Thanks,
Christopher
^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: Problems with SCSI tapes.
1999-05-11 1:08 Christopher Curtis
@ 1999-05-11 1:35 ` Michal Jaegermann
1999-05-11 3:51 ` Christopher Curtis
1999-05-12 4:14 ` Christopher W. Curtis
1 sibling, 1 reply; 24+ messages in thread
From: Michal Jaegermann @ 1999-05-11 1:35 UTC (permalink / raw)
To: axp-list
>
> I have a Multia running kernel 2.2.7 (redhat 5.2) with a SCSI tape device.
> If I compile 'st' as a module, I can't do anything with it, eg:
>
> [root@spanky /root]# insmod st
> Detected scsi tape st0 at scsi0, channel 0, id 1, lun 0
> Unable to get major 9 for SCSI tapes
> /lib/modules/2.2.7/scsi/st.o: init_module: Device or resource busy
....
>
> Anyone know why this might be?
Standard Red Hat setup when it detects a tape device and a tape
module inserts it to prevent auto-deletion (the idea is not to release
tape buffers in case this module is auto removed). You likely have this
module already "in" hence "Device or resource busy". Try 'lsmod' and
check what 'dmesg' has to say.
The next problem is that mt-0.5, as distributed in Red Hat 5.2, is
broken. Recompile sources, like mt-0.5b, to be found on regular
servers.
Michal
^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: Problems with SCSI tapes.
1999-05-11 1:35 ` Michal Jaegermann
@ 1999-05-11 3:51 ` Christopher Curtis
1999-05-11 4:46 ` Michal Jaegermann
1999-05-11 8:49 ` Albrecht Jacobs
0 siblings, 2 replies; 24+ messages in thread
From: Christopher Curtis @ 1999-05-11 3:51 UTC (permalink / raw)
To: axp-list
On Mon, 10 May 1999, Michal Jaegermann wrote:
> > [root@spanky /root]# insmod st
> > Detected scsi tape st0 at scsi0, channel 0, id 1, lun 0
> > Unable to get major 9 for SCSI tapes
> > /lib/modules/2.2.7/scsi/st.o: init_module: Device or resource busy
>
> Standard Red Hat setup when it detects a tape device and a tape
> module inserts it to prevent auto-deletion (the idea is not to release
> tape buffers in case this module is auto removed). You likely have this
> module already "in" hence "Device or resource busy". Try 'lsmod' and
> check what 'dmesg' has to say.
The module is not loaded ... in fact, I get this same error upon booting.
Do you suppose that the tape has not yet fully recovered from the bus
reset and after failing the initial load, is stuck in some indeterminate
state and refuses all future attempts to load it?
Here is some clippings from dmesg:
VFS: Mounted root (ext2 filesystem) readonly.
Freeing unused kernel memory: 96k freed
Adding Swap: 265848k swap-space (priority -1)
st: bufsize 32768, wrt 30720, max buffers 4, s/g segs 16.
Detected scsi tape st0 at scsi0, channel 0, id 1, lun 0
Unable to get major 9 for SCSI tapes
eth1: media is TP.
> The next problem is that mt-0.5, as distributed in Red Hat 5.2, is
> broken. Recompile sources, like mt-0.5b, to be found on regular
> servers.
[root@spanky /root]# mt -v
mt-st v. 0.5
I did hose things up the second time I used mt, thus this message.
However, I'm in the process of trying to get amanda (www.amanda.org)
running, and the problem first appeared without the help of mt. There was
a media error reported, ... hmm, maybe I did use mt.
I'm going to comment out whatever redhat is doing with the tape.
But is that to say that 'st' should _not_ be modular for some reason?
btw: Anyone looked into that ld-linux problem I mentioned?
Thanks,
Christopher
^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: Problems with SCSI tapes.
1999-05-11 3:51 ` Christopher Curtis
@ 1999-05-11 4:46 ` Michal Jaegermann
1999-05-11 5:17 ` Christopher Curtis
1999-05-11 8:49 ` Albrecht Jacobs
1 sibling, 1 reply; 24+ messages in thread
From: Michal Jaegermann @ 1999-05-11 4:46 UTC (permalink / raw)
To: axp-list
Christopher Curtis wrote:
> st: bufsize 32768, wrt 30720, max buffers 4, s/g segs 16.
> Detected scsi tape st0 at scsi0, channel 0, id 1, lun 0
> Unable to get major 9 for SCSI tapes
Did you managed somehow to put something else than a scsi tape
as a device with a major 9? What you see if you do 'cat /proc/devices'?
You should get something similar to that:
Character devices:
1 mem
2 pty
3 ttyp
4 ttyS
5 cua
7 vcs
9 st
Block devices:
2 fd
3 ide0
8 sd
> I did hose things up the second time I used mt, thus this message.
It does not look that way from the things you quote above.
> But is that to say that 'st' should _not_ be modular for some reason?
I did use on different occasions, both on Intel and on Alpha, a scsi
tape driver loaded as a module; but indeed usually it does not make much
sense if you are going to load that module while booting and leave it
sitting permanently in memory.
Michal
^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: Problems with SCSI tapes.
1999-05-11 4:46 ` Michal Jaegermann
@ 1999-05-11 5:17 ` Christopher Curtis
0 siblings, 0 replies; 24+ messages in thread
From: Christopher Curtis @ 1999-05-11 5:17 UTC (permalink / raw)
To: axp-list
On Mon, 10 May 1999, Michal Jaegermann wrote:
> Christopher Curtis wrote:
> > st: bufsize 32768, wrt 30720, max buffers 4, s/g segs 16.
> > Detected scsi tape st0 at scsi0, channel 0, id 1, lun 0
> > Unable to get major 9 for SCSI tapes
>
> Did you managed somehow to put something else than a scsi tape
> as a device with a major 9? What you see if you do 'cat /proc/devices'?
Normally I wouldn't print the whole list, but since you did ...
Character devices:
1 mem
2 pty
3 ttyp
4 ttyS
5 cua
7 vcs
9 st
10 misc
14 sound
29 fb
36 netlink
128 ptm
136 pts
254 pcmcia
Block devices:
8 sd
9 md
> > I did hose things up the second time I used mt, thus this message.
> It does not look that way from the things you quote above.
Well, previously I had it compiled into the kernel, not as a module. It
was working under this config, unti lI got the media error. I think I may
have used 'mt' to rewind/retension the tape. IIRC, I was then going to
"mt erase" it, but started getting I/O errors at that point.
> > But is that to say that 'st' should _not_ be modular for some reason?
>
> I did use on different occasions, both on Intel and on Alpha, a scsi
> tape driver loaded as a module; but indeed usually it does not make much
> sense if you are going to load that module while booting and leave it
> sitting permanently in memory.
I don't understand half the things redhat does in its init scripts. Am I
correct in assuming you mean that redhat's behavior is abnormal here? Or
do you know that tapes should not be loaded/unloaded as modules?
My amanda backup failed again, and not for tape reasons. :(
Christopher
^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: Problems with SCSI tapes.
1999-05-11 3:51 ` Christopher Curtis
1999-05-11 4:46 ` Michal Jaegermann
@ 1999-05-11 8:49 ` Albrecht Jacobs
1999-05-11 14:39 ` Christopher Curtis
1 sibling, 1 reply; 24+ messages in thread
From: Albrecht Jacobs @ 1999-05-11 8:49 UTC (permalink / raw)
To: axp-list
On Mon, 10 May 1999, Christopher Curtis wrote:
> On Mon, 10 May 1999, Michal Jaegermann wrote:
>
> > > [root@spanky /root]# insmod st
> > > Detected scsi tape st0 at scsi0, channel 0, id 1, lun 0
> > > Unable to get major 9 for SCSI tapes
> > > /lib/modules/2.2.7/scsi/st.o: init_module: Device or resource busy
> >
[...]
>
> I'm going to comment out whatever redhat is doing with the tape.
>
> But is that to say that 'st' should _not_ be modular for some reason?
Don't know, but I am running 2.2.7 on an UX with st compiled in. Two tapes
(DDS and QIC) are working fine until now.
Check your devices:
[root@lem /dev]# ll /dev/*st?
crw-rw---- 1 root disk 9, 128 May 5 1998 /dev/nst0
crw-rw---- 1 root disk 9, 129 May 5 1998 /dev/nst1
crw-rw---- 1 root disk 9, 130 May 5 1998 /dev/nst2
crw-rw---- 1 root disk 9, 131 May 5 1998 /dev/nst3
crw-rw---- 1 root disk 9, 132 May 5 1998 /dev/nst4
crw-rw---- 1 root disk 9, 133 May 5 1998 /dev/nst5
crw-rw---- 1 root disk 9, 134 May 5 1998 /dev/nst6
crw-rw---- 1 root disk 9, 135 May 5 1998 /dev/nst7
crw-rw---- 1 root disk 9, 0 May 5 1998 /dev/st0
crw-rw---- 1 root disk 9, 1 May 5 1998 /dev/st1
crw-rw---- 1 root disk 9, 2 May 5 1998 /dev/st2
crw-rw---- 1 root disk 9, 3 May 5 1998 /dev/st3
crw-rw---- 1 root disk 9, 4 May 5 1998 /dev/st4
crw-rw---- 1 root disk 9, 5 May 5 1998 /dev/st5
crw-rw---- 1 root disk 9, 6 May 5 1998 /dev/st6
crw-rw---- 1 root disk 9, 7 May 5 1998 /dev/st7
[root@lem /dev]# grep st /proc/devices
9 st
[root@lem /dev]#
Albrecht
+-------------------------------------------------------------------------+
| cand. aer. Albrecht Jacobs CAAD-Labor des SI |
| Systembetreuung Universit"at Stuttgart |
| |
| Liegeradgruppe Stuttgart |
| O__ http://www.architektur.uni-stuttgart.de:1200/users/aj/lieger |
| \\_/\-o |
| (+) O Albrecht.Jacobs@klee.architektur.uni-stuttgart.de |
+-------------------------------------------------------------------------+
^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: Problems with SCSI tapes.
1999-05-11 8:49 ` Albrecht Jacobs
@ 1999-05-11 14:39 ` Christopher Curtis
1999-05-11 16:16 ` Albrecht Jacobs
0 siblings, 1 reply; 24+ messages in thread
From: Christopher Curtis @ 1999-05-11 14:39 UTC (permalink / raw)
To: axp-list
On Tue, 11 May 1999, Albrecht Jacobs wrote:
> Don't know, but I am running 2.2.7 on an UX with st compiled in. Two tapes
> (DDS and QIC) are working fine until now.
In that respect, the tape works mostly, but seemed fragile. From what
I've been told, 'mt' is buggy and I'm hoping is what would have caused the
errors I've seen (though that whole subsystem would seem too fragile).
Can you do the same with a modular st? That's where my troubles seem to
be at this point.
> Check your devices:
Those are all fine.
> [root@lem /dev]# grep st /proc/devices
> 9 st
As is that.
It's not a system configuration issue; there's something "wrong" with the
'st' device. If the problem is intrinsic (in the code) or is a bad
parameter or my misuse of it, that's what I'm trying to determine.
Thanks,
Christopher
^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: Problems with SCSI tapes.
1999-05-11 14:39 ` Christopher Curtis
@ 1999-05-11 16:16 ` Albrecht Jacobs
1999-05-11 19:52 ` Christopher W. Curtis
0 siblings, 1 reply; 24+ messages in thread
From: Albrecht Jacobs @ 1999-05-11 16:16 UTC (permalink / raw)
To: axp-list
On Tue, 11 May 1999, Christopher Curtis wrote:
> On Tue, 11 May 1999, Albrecht Jacobs wrote:
>
> > Don't know, but I am running 2.2.7 on an UX with st compiled in. Two tapes
> > (DDS and QIC) are working fine until now.
>
> In that respect, the tape works mostly, but seemed fragile. From what
> I've been told, 'mt' is buggy and I'm hoping is what would have caused the
> errors I've seen (though that whole subsystem would seem too fragile).
> Can you do the same with a modular st? That's where my troubles seem to
> be at this point.
[...]
What about your SCSI hardware: cables, termination and so on??
The above mentioned DDS tape was _very_ unreliable in an SGI
system.
In another Linux system I got strange messages about bad blocks
from mke2fs, but: it must be the SCSI hardware, the drive is new and works
fine in some other Linux system.
So: check your SCSI hardware!
Albrecht
+-------------------------------------------------------------------------+
| cand. aer. Albrecht Jacobs CAAD-Labor des SI |
| Systembetreuung Universit"at Stuttgart |
| |
| Liegeradgruppe Stuttgart |
| O__ http://www.architektur.uni-stuttgart.de:1200/users/aj/lieger |
| \\_/\-o |
| (+) O Albrecht.Jacobs@klee.architektur.uni-stuttgart.de |
+-------------------------------------------------------------------------+
^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: Problems with SCSI tapes.
1999-05-11 16:16 ` Albrecht Jacobs
@ 1999-05-11 19:52 ` Christopher W. Curtis
0 siblings, 0 replies; 24+ messages in thread
From: Christopher W. Curtis @ 1999-05-11 19:52 UTC (permalink / raw)
To: axp-list
Albrecht Jacobs wrote:
> What about your SCSI hardware: cables, termination and so on??
[...]
> In another Linux system I got strange messages about bad blocks
> from mke2fs, but: it must be the SCSI hardware, the drive is new and works
> fine in some other Linux system.
> So: check your SCSI hardware!
I have thought about that as well. It's actually rather
interesting/fragile. The tape lives just below a seagate hard drive
that is starting to give me trouble. But the hard drive gets *very* hot
and only at a certain capacity, so I think that it's just flaky (even
though it too is new). The IBM hard drive below the tape is working
fine, as it has been for some years now. I also have a cd-rom burner
that makes the whole subsystem freak out if I move it too close to the
hard drive while it is powered on. It's in an external case that sits
on top of the other devices in another case. As long as there about 1"
of foam padding under the burner, all is well.
It seems unlikely to me that it's a hardware issue with respect to
loading the driver since the code works when not compiled as a module,
but the initial media error that set thing whole thing off may need to
be looked into. Termination, etc, should all be fine - nothing is
terminated except the IBM hard drive sitting at device 0.
Thanks,
Christopher
^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: Problems with SCSI tapes.
1999-05-11 1:08 Christopher Curtis
1999-05-11 1:35 ` Michal Jaegermann
@ 1999-05-12 4:14 ` Christopher W. Curtis
1 sibling, 0 replies; 24+ messages in thread
From: Christopher W. Curtis @ 1999-05-12 4:14 UTC (permalink / raw)
To: axp-list
Christopher Curtis wrote:
> I have a Multia running kernel 2.2.7 (redhat 5.2) with a SCSI tape device.
> If I compile 'st' as a module, I can't do anything with it, eg:
[...]
Well, I still don't know what the problem was with the module version of
'st', but the problem appears to have been hardware related. Evidently
the disk was too close to the tape drive and it didn't like it. I've
repositioned the hard drive and the tape seems to be happy again. I'll
have to see if the hard drive starts acting any better (now I need to
find a way to fill up about 1GB space ... RH 6.0 maybe?). The next big
test will be to put the CD-ROM burner back on top of the housing and see
if the entire array starts flaking out or not. Crimey...
I just wanted to thank everyone for trying to help. If I'm ever feeling
masochistic I might try to find out what the problem was with the 'st'
module setup. Chances are I'll find that I goofed something else up, so
I'll wait a while before trying to figure that one out. =)
Christopher
^ permalink raw reply [flat|nested] 24+ messages in thread
end of thread, other threads:[~1999-05-17 9:29 UTC | newest]
Thread overview: 24+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-05-11 15:08 Problems with SCSI tapes James Bremer
1999-05-11 16:01 ` Christopher Curtis
1999-05-11 19:14 ` Wes Bauske
1999-05-11 19:28 ` Wes Bauske
1999-05-11 19:47 ` Craig P Prescott
1999-05-11 21:20 ` Christopher W. Curtis
-- strict thread matches above, loose matches on Subject: below --
1999-05-17 8:45 Ray Kiesbrink (ETM)
1999-05-17 8:36 Ray Kiesbrink (ETM)
1999-05-14 8:35 Ray Kiesbrink (ETM)
1999-05-14 15:49 ` Chris Price
1999-05-14 17:04 ` Phil Carmody
1999-05-14 18:24 ` Chris Price
1999-05-15 13:48 ` Jaap Schellekens
1999-05-14 17:04 ` Alvin Starr
1999-05-11 1:08 Christopher Curtis
1999-05-11 1:35 ` Michal Jaegermann
1999-05-11 3:51 ` Christopher Curtis
1999-05-11 4:46 ` Michal Jaegermann
1999-05-11 5:17 ` Christopher Curtis
1999-05-11 8:49 ` Albrecht Jacobs
1999-05-11 14:39 ` Christopher Curtis
1999-05-11 16:16 ` Albrecht Jacobs
1999-05-11 19:52 ` Christopher W. Curtis
1999-05-12 4:14 ` Christopher W. Curtis
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox