Re: HP Type C1559 problems

2000-02-01 Thread Louis A. Mamakos


I'm using a HP SureStore 24x6 too, and have no problems talking to it
with chio.

I suspect there's some screwy optioning nonsense for the tape motion
stuff that's wrong.  

louie



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message



Re: HP Type C1559 problems

2000-02-01 Thread Dmitry Samersoff


On 31-Jan-2000 Dan Nelson wrote:
 In the last episode (Feb 01), Dmitry Samersoff said:
  In the last episode (Jan 31), Dmitry Samersoff said:
   I have problem with HP SureStore 24x6 I can read(write) only from
   one tape from catridge
 
 What does "chio status" return, and what does a "camcontrol devlist"
 print?

root@shade:~chio status
slot 0: ACCESS,FULL
slot 1: ACCESS,FULL
slot 2: ACCESS,FULL
slot 3: ACCESS
slot 4: ACCESS,FULL
slot 5: ACCESS,FULL
drive 0: ACCESS,FULL
root@shade:~camcontrol devlist
IBM DDRS-39130W S92A at scbus0 target 0 lun 0 (pass0,da0)
IBM DDRS-39130W S71D at scbus0 target 4 lun 0 (pass1,da1)
HP C1557A U709   at scbus0 target 5 lun 0 (pass2,sa0)
HP C1557A U709   at scbus0 target 5 lun 1 (pass3,ch0)

  
 I find now (after lots of experiments) that sending raw SCSI command
 helps me. Right command causing changer to load next tape looks like:
   camcontrol stop -n sa -t 100 -v  
   camcontrol cmd -n sa -t 100 -v -c "1B 00 00 00 00 00"
 
 1B is just an unload request, so your autoloader is probably in "dumb"

1B 00 00 - is unload request. Purpose of three extra bytes (00 xx 00)
is unknown  for me but  00 xx 01 it loads tape number x. 
00 00 00 load next tape.
(I find it in news, the same thing described in handbook's appendix for
previouse model of HP changer)  

 or "gravity feed" mode, where an ejected tape causes the next tape to
 be loaded automatically.  chio is for smart autoloaders with random
 access.  A "mt rewoffl" should do the same thing as your camcontrol

mt rewoffl cause changer to rewind current tape, then unload it.
It doesn't load next tape. 

-- 
Dmitry Samersoff, [EMAIL PROTECTED], ICQ:3161705
http://devnull.wplus.net
* There will come soft rains ...


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message



Re: HP Type C1559 problems

2000-01-31 Thread Dan Nelson

In the last episode (Jan 31), Dmitry Samersoff said:
 I have problem with HP SureStore 24x6 I can read(write) only from one
 tape from catridge
 
 Could anybody send me ether shell or C (preferable) sequence need to
 read tapes one by one?
 
 i.e something like:
   cat /dev/rsa0
   camcontrol cmd -n rsa0.ctl -c "1B 00 00"

You'll probably want to check out the "mt" and "chio" commands instead
of sending raw SCSI commands :)  "mt rewoffl" will rewind and eject a
tape.  The chio command manages autoloaders.  "man mtio" for the C tape
interface, and "man ch" for the C autoloader interface.

   cat /dev/rsa0

-- 
Dan Nelson
[EMAIL PROTECTED]


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message



Re: HP Type C1559 problems

2000-01-31 Thread Dmitry Samersoff

Dan Nelson wrote:
 
 In the last episode (Jan 31), Dmitry Samersoff said:
  I have problem with HP SureStore 24x6 I can read(write) only from one
  tape from catridge
 
  Could anybody send me ether shell or C (preferable) sequence need to
  read tapes one by one?
 
  i.e something like:
cat /dev/rsa0
camcontrol cmd -n rsa0.ctl -c "1B 00 00"
 
 You'll probably want to check out the "mt" and "chio" commands instead
 of sending raw SCSI commands :)  "mt rewoffl" will rewind and eject a
 tape.  The chio command manages autoloaders.  "man mtio" for the C tape
 interface, and "man ch" for the C autoloader interface.

I'm not so lazy as you belive ;-)) I tried all above before going 
to camcontrol. 
mt can rewind, erase end so on current tape, but can't change 
current slot number.
chio report error for every comand except "chio status" .

I find now (after lots of experiments) that sending raw SCSI command
helps me.
Right command causing changer to load next tape looks like:
  camcontrol stop -n sa -t 100 -v  
  camcontrol cmd -n sa -t 100 -v -c "1B 00 00 00 00 00"


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message



Re: HP Type C1559 problems

2000-01-31 Thread Matthew Jacob


It sounds to me that you have this device strapped to be in 'stacker' mode-
the command you're sending is the same as an 'mt offline' command- so it's
loading the next tape in the changer.

that means it won't show up as a changer on lun 1. I haven't seen one these
beasts for 5-6 years- I don't recall what the switch settings are, but IIRC HP
switch settings made no sense.


On Tue, 1 Feb 2000, Dmitry Samersoff wrote:

 Dan Nelson wrote:
  
  In the last episode (Jan 31), Dmitry Samersoff said:
   I have problem with HP SureStore 24x6 I can read(write) only from one
   tape from catridge
  
   Could anybody send me ether shell or C (preferable) sequence need to
   read tapes one by one?
  
   i.e something like:
 cat /dev/rsa0
 camcontrol cmd -n rsa0.ctl -c "1B 00 00"
  
  You'll probably want to check out the "mt" and "chio" commands instead
  of sending raw SCSI commands :)  "mt rewoffl" will rewind and eject a
  tape.  The chio command manages autoloaders.  "man mtio" for the C tape
  interface, and "man ch" for the C autoloader interface.
 
 I'm not so lazy as you belive ;-)) I tried all above before going 
 to camcontrol. 
 mt can rewind, erase end so on current tape, but can't change 
 current slot number.
 chio report error for every comand except "chio status" .
 
 I find now (after lots of experiments) that sending raw SCSI command
 helps me.
 Right command causing changer to load next tape looks like:
   camcontrol stop -n sa -t 100 -v  
   camcontrol cmd -n sa -t 100 -v -c "1B 00 00 00 00 00"
 
 
 To Unsubscribe: send mail to [EMAIL PROTECTED]
 with "unsubscribe freebsd-hackers" in the body of the message
 



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message