Date: Mon, 25 Mar 1996 12:15:40 +0200 (EET) From: Seppo Kallio <kallio@cc.jyu.fi> To: Gene W Homicki <gwh@spiders.com> Cc: freebsd-hardware@FreeBSD.org, freebsd-scsi@FreeBSD.org Subject: Re: HP C1553A autochanger. Message-ID: <Pine.SOL.3.91.960325120811.19689B-100000@kanto.cc.jyu.fi> In-Reply-To: <199603241905.OAA18062@charlotte.spiders.com>
next in thread | previous in thread | raw e-mail | index | archive | help
I am trying to use same device with amanda + 2.1R. I have one sh script from
Peter Dufault <dufault@hda.com>. 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 <dufault@hda.com>
#To: Seppo Kallio <kallio@beeblebrox.pccc.jyu.fi>
#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
>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.SOL.3.91.960325120811.19689B-100000>
