From owner-freebsd-scsi Mon Mar 25 02:21:21 1996 Return-Path: owner-freebsd-scsi Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id CAA11339 for freebsd-scsi-outgoing; Mon, 25 Mar 1996 02:21:21 -0800 (PST) Received: from kanto.cc.jyu.fi (kallio@kanto.cc.jyu.fi [130.234.1.2]) by freefall.freebsd.org (8.7.3/8.7.3) with ESMTP id CAA11286 Mon, 25 Mar 1996 02:21:01 -0800 (PST) Received: (from kallio@localhost) by kanto.cc.jyu.fi (8.7.2/8.7.2) id MAA22697; Mon, 25 Mar 1996 12:15:41 +0200 (EET) Date: Mon, 25 Mar 1996 12:15:40 +0200 (EET) From: Seppo Kallio To: Gene W Homicki cc: freebsd-hardware@FreeBSD.org, freebsd-scsi@FreeBSD.org Subject: Re: HP C1553A autochanger. In-Reply-To: <199603241905.OAA18062@charlotte.spiders.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-scsi@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk I am trying to use same device with amanda + 2.1R. I have one sh script from Peter Dufault . It is using the scsi-command. It can be used to change the tape randomly. It wokrs even with amanda in 2.2-960303 snap but not in 2.1R. In 2.1R mt -f /dev/nrst0 rewind command after scsi-slot selection command cause all next slot commands to fail. This can be solved by giving 1-2 extra slot selection commands selecting the same slot. #!/bin/sh #From dufault@hda.comThu Feb 29 10:04:36 1996 #Date: Fri, 26 Jan 1996 18:48:44 -0500 (EST) #From: Peter Dufault #To: Seppo Kallio #Cc: questions@freebsd.org, hardware@freebsd.org, # kallio@beeblebrox.pccc.jyu.fi #Subject: Re: HP C1553A Autoloading DDS-2 DAT tape drive control?# # #> #> #> Hi, we have HP C1553A Autoloading DDS2 DAT tape drives attached to #> a FreeBSD node. Is there a program available that would allow me to #> fully manipulate the drive? #> #> I have code for HPUX and Solaris, but it is so OS dependend I cannot #> compile it in FreeBSD.# # #You can use scsi(8) to send commands to the device. Something like #this (I didn't run this - this is a dramatization based on that C #code) saved as dds_changer and made executable. As a raw-device-name #you must use something that accepts the SCSI ioctl calls - the #control device for whatever it comes on line as will. # PATH="/sbin:/usr/sbin:/bin:/usr/bin"; export PATH usage() { echo "(/dev/rst0 for reading/writing, /dev/st0ctl.0 for command)" echo "Usage: dds_changer [123456ne] raw-device-name (/dev/st0ctl.0)" echo "1..6 = Select cartridge" echo "n = next cartridge" echo "e = eject magazine" exit 2 } if [ $# -ne 2 ] ; then usage fi cdb3=0 cdb4=0 cdb5=0 case $1 in [123456]) cdb3=$1 cdb4=1 ;; n) ;; e) cdb5=0x80 ;; ?) usage ;; esac scsi -f $2 -s 100 -c "1b 0 0 v v v" $cdb3 $cdb4 $cdb5 On Sun, 24 Mar 1996, Gene W Homicki wrote: > Hey all, > > I have an HP C1553A DDS-2 6 Tape autolaoder/changer. In the > docs for the drive, it specifies that that it can ork in changer mode, > which "SCSI Medium Changer" commands can be sent. > > When the machine boots up, its recognized as a SCSI tape drive, but > not as a changer device (I have the ch driver compiled into the kernel > and I'm running 2.1R). > > The drive works just fine in "stacker" mode, but I'd be much much > happier if I could randomly access cartridges. If anyone has > experience with these drives and/or can give me a pointer to docs to > get it working, I'd appreciate it. > > > --Gene > > -- > Gene W. Homicki gwh@spiders.com > Objective Consulting, Inc. http://www.spiders.com/ > Internet Presence Design voice: +1 914.353.3511 >