Using SCSI tapes

View: New views
9 Messages — Rating Filter:   Alert me  

Using SCSI tapes

by amateurgo :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Is there something special you have to do to use a SCSI tape drive??  
I'm trying to help a friend try to use a SCSI tape drive (SDLT) on Hercules (3.06 on Linux) but we keep ending up with the tape drive "device or resource busy".  
Prior  to starting hercules I can use mt to control the tape drive (/dev/nst0) with no problem, but as soon as we try to use  it from Herc we get the  resource busy error, with lots of messages such as:
08:46:39 HHCTA024E Error opening 0:0560=/dev/nst0; errno=16: Device or resource busy
08:46:39 HHCCP048I 0560:CCW=07400001 00000000=>000A0000 00900074 40404040 F0F04040 ........    00  
08:46:39 HHCCP075I 0560:Stat=0E00 Count=0001
08:46:39 HHCCP076I 0560:Sense=50420022 00000020 00000000 00000000 00000000 00000000
08:46:39 HHCCP077I 0560:Sense=INTREQ EQC ITF WRI
The device is defined as:
0560      3480    /dev/nst0 --no-erg --blkid-32

Any suggestions?


Re: Using SCSI tapes (Anyone using SDLT??)

by amateurgo :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Since there  hasn't been any reaction to this, I'll add some more info and questions..
Is anyone using a SDLT tape drive on Linux?  Searching the  archives I couldn't find any evidence of SDLT use.  Perhaps it needs some special parms?  Are there any tape related options besides the erg and blkid parms?
When I got the "device or resource busy" error, I  used the Linux fuser command  (fuser /dev/nst0) and got a null response, suggesting that Linux thinks the device is not in use.  
I appreciate any help...

--- In hercules-390@..., "amateurgo" <amateurgo@...> wrote:

>
> Is there something special you have to do to use a SCSI tape drive??  
> I'm trying to help a friend try to use a SCSI tape drive (SDLT) on Hercules (3.06 on Linux) but we keep ending up with the tape drive "device or resource busy".  
> Prior  to starting hercules I can use mt to control the tape drive (/dev/nst0) with no problem, but as soon as we try to use  it from Herc we get the  resource busy error, with lots of messages such as:
> 08:46:39 HHCTA024E Error opening 0:0560=/dev/nst0; errno=16: Device or resource busy
> 08:46:39 HHCCP048I 0560:CCW=07400001 00000000=>000A0000 00900074 40404040 F0F04040 ........    00  
> 08:46:39 HHCCP075I 0560:Stat=0E00 Count=0001
> 08:46:39 HHCCP076I 0560:Sense=50420022 00000020 00000000 00000000 00000000 00000000
> 08:46:39 HHCCP077I 0560:Sense=INTREQ EQC ITF WRI
> The device is defined as:
> 0560      3480    /dev/nst0 --no-erg --blkid-32
>
> Any suggestions?
>



Re: Using SCSI tapes (even more strange...)

by amateurgo :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

In the ongoing effort...
I wrote some data to a aws tape with the intent of doing a tapecopy to the SDLT.  I did a devinit 560 -some aws file-  to  make sure the SDLT was released from the Herc system.  When I did the tapecopy I got the same 'device or resource busy' message.  So I figured I'd try the fuser  command again, just in case.  This time  'fuser /dev/nst0' returned two thread IDs.  I went looking for the TIDs using ps -ef | grep  and found them both.  The two threads are, according to this, the two x3270 sessions I have going.  (I start them as part of the herc start-up.)  Now, how or why x3270 could be 'owning' the SDLT tape device, I have no idea.
Any suggestions??
Thanks

--- In hercules-390@..., "amateurgo" <amateurgo@...> wrote:

>
> Is there something special you have to do to use a SCSI tape drive??  
> I'm trying to help a friend try to use a SCSI tape drive (SDLT) on Hercules (3.06 on Linux) but we keep ending up with the tape drive "device or resource busy".  
> Prior  to starting hercules I can use mt to control the tape drive (/dev/nst0) with no problem, but as soon as we try to use  it from Herc we get the  resource busy error, with lots of messages such as:
> 08:46:39 HHCTA024E Error opening 0:0560=/dev/nst0; errno=16: Device or resource busy
> 08:46:39 HHCCP048I 0560:CCW=07400001 00000000=>000A0000 00900074 40404040 F0F04040 ........    00  
> 08:46:39 HHCCP075I 0560:Stat=0E00 Count=0001
> 08:46:39 HHCCP076I 0560:Sense=50420022 00000020 00000000 00000000 00000000 00000000
> 08:46:39 HHCCP077I 0560:Sense=INTREQ EQC ITF WRI
> The device is defined as:
> 0560      3480    /dev/nst0 --no-erg --blkid-32
>
> Any suggestions?
>



Re: Using SCSI tapes

by pfg504 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I have been using scsi tapes on linux... are you running hercules as root? What are the permissions of /dev/nst0 ?

What version of hercules? You should download the latest sources and recompile...

Paul


--- In hercules-390@..., "amateurgo" <amateurgo@...> wrote:

>
> Is there something special you have to do to use a SCSI tape drive??  
> I'm trying to help a friend try to use a SCSI tape drive (SDLT) on Hercules (3.06 on Linux) but we keep ending up with the tape drive "device or resource busy".  
> Prior  to starting hercules I can use mt to control the tape drive (/dev/nst0) with no problem, but as soon as we try to use  it from Herc we get the  resource busy error, with lots of messages such as:
> 08:46:39 HHCTA024E Error opening 0:0560=/dev/nst0; errno=16: Device or resource busy
> 08:46:39 HHCCP048I 0560:CCW=07400001 00000000=>000A0000 00900074 40404040 F0F04040 ........    00  
> 08:46:39 HHCCP075I 0560:Stat=0E00 Count=0001
> 08:46:39 HHCCP076I 0560:Sense=50420022 00000020 00000000 00000000 00000000 00000000
> 08:46:39 HHCCP077I 0560:Sense=INTREQ EQC ITF WRI
> The device is defined as:
> 0560      3480    /dev/nst0 --no-erg --blkid-32
>
> Any suggestions?
>



Re: Using SCSI tapes

by amateurgo :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hercules 3.06 so it's about as current as possible.  
Running as root  (mainly to eliminate permissions issues on the network adapter access, but I assume it should also eliminate any possible permission problems with /dev/nst0  )
I've just been installing the binaries..  would recompiling from source really make any difference?
Thanks

--- In hercules-390@..., "pfg504" <pfg504@...> wrote:

>
> I have been using scsi tapes on linux... are you running hercules as root? What are the permissions of /dev/nst0 ?
>
> What version of hercules? You should download the latest sources and recompile...
>
> Paul
>
>
> --- In hercules-390@..., "amateurgo" <amateurgo@> wrote:
> >
> > Is there something special you have to do to use a SCSI tape drive??  
> > I'm trying to help a friend try to use a SCSI tape drive (SDLT) on Hercules (3.06 on Linux) but we keep ending up with the tape drive "device or resource busy".  
> > Prior  to starting hercules I can use mt to control the tape drive (/dev/nst0) with no problem, but as soon as we try to use  it from Herc we get the  resource busy error, with lots of messages such as:
> > 08:46:39 HHCTA024E Error opening 0:0560=/dev/nst0; errno=16: Device or resource busy
> > 08:46:39 HHCCP048I 0560:CCW=07400001 00000000=>000A0000 00900074 40404040 F0F04040 ........    00  
> > 08:46:39 HHCCP075I 0560:Stat=0E00 Count=0001
> > 08:46:39 HHCCP076I 0560:Sense=50420022 00000020 00000000 00000000 00000000 00000000
> > 08:46:39 HHCCP077I 0560:Sense=INTREQ EQC ITF WRI
> > The device is defined as:
> > 0560      3480    /dev/nst0 --no-erg --blkid-32
> >
> > Any suggestions?
> >
>



Re: Using SCSI tapes

by somitcw-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

--- In hercules-390@...,
 "amateurgo" <amateurgo@...> wrote:
> Hercules 3.06 so it's about as current as possible.  

   I don't use Linux.  I don't use SCSI tapes under
Hercules.  I do know about:

http://www.ivansoftware.com/snapshots/snapshots/


Re: Using SCSI tapes

by amateurgo :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

--- In hercules-390@..., "somitcw" <somitcw@...> wrote:

>
> --- In hercules-390@...,
>  "amateurgo" <amateurgo@> wrote:
> > Hercules 3.06 so it's about as current as possible.  
>
>    I don't use Linux.  I don't use SCSI tapes under
> Hercules.  I do know about:
>
> http://www.ivansoftware.com/snapshots/snapshots/
>
Perhaps I'm a bit conservative, but I tend to stick with 'standard' releases.  I realize that Hercules is available in frequent (daily?) packages/snapshots, but unless there is a good reason to think hat a recent snapshot has a fix, I tend to shy away.  Can anyone suggest that current snapshots would actually have a change/fix related to SCSI tape support for Linux?
Thanks


Re: Re: Using SCSI tapes

by Mike Schwab :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Yes, there was a real tape fix applied to the daily snapshots about a
month ago.  Fixed a timing issue that does not affect virtual tapes in
a disk file.

On Sun, Jun 28, 2009 at 7:28 PM, amateurgo<amateurgo@...> wrote:

> --- In hercules-390@..., "somitcw" <somitcw@...> wrote:
>>
>> --- In hercules-390@...,
>>  "amateurgo" <amateurgo@> wrote:
>> > Hercules 3.06 so it's about as current as possible.
>>
>>    I don't use Linux.  I don't use SCSI tapes under
>> Hercules.  I do know about:
>>
>> http://www.ivansoftware.com/snapshots/snapshots/
>>
> Perhaps I'm a bit conservative, but I tend to stick with 'standard' releases.  I realize that Hercules is available in frequent (daily?) packages/snapshots, but unless there is a good reason to think hat a recent snapshot has a fix, I tend to shy away.  Can anyone suggest that current snapshots would actually have a change/fix related to SCSI tape support for Linux?
> Thanks
>

--
Mike A Schwab, Springfield IL USA
Where do Forest Rangers go to get away from it all?

Re: Using SCSI tapes

by amateurgo :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Ah, in that case it sounds like a recent snapshot may be worth trying.

Thanks!

--- In hercules-390@..., Mike Schwab <Mike.A.Schwab@...> wrote:

>
> Yes, there was a real tape fix applied to the daily snapshots about a
> month ago.  Fixed a timing issue that does not affect virtual tapes in
> a disk file.
>
> On Sun, Jun 28, 2009 at 7:28 PM, amateurgo<amateurgo@...> wrote:
> > --- In hercules-390@..., "somitcw" <somitcw@> wrote:
> >>
> >> --- In hercules-390@...,
> >>  "amateurgo" <amateurgo@> wrote:
> >> > Hercules 3.06 so it's about as current as possible.
> >>
> >>    I don't use Linux.  I don't use SCSI tapes under
> >> Hercules.  I do know about:
> >>
> >> http://www.ivansoftware.com/snapshots/snapshots/
> >>
> > Perhaps I'm a bit conservative, but I tend to stick with 'standard' releases.  I realize that Hercules is available in frequent (daily?) packages/snapshots, but unless there is a good reason to think hat a recent snapshot has a fix, I tend to shy away.  Can anyone suggest that current snapshots would actually have a change/fix related to SCSI tape support for Linux?
> > Thanks
> >
>
> --
> Mike A Schwab, Springfield IL USA
> Where do Forest Rangers go to get away from it all?
>