Amanda-Users

Re: sol 2.6 HP-C1557A (12000e) changer device

2003-02-10 10:49:56
Subject: Re: sol 2.6 HP-C1557A (12000e) changer device
From: Jon LaBadie <jon AT jgcomp DOT com>
To: amanda-users AT amanda DOT org
Date: Mon, 10 Feb 2003 10:01:50 -0500
On Mon, Feb 10, 2003 at 12:48:46PM +0100, forster AT bluemail DOT ch wrote:
> Hello
> 
> I did lots of reading manuals and mailing lists but still not succeeded
> in having amanda talk to the changer.
> 
> Config:
> amanda 2.4.3
> solaris 2.6
> HP surestore C1557A (12000e)
> 
> ********
> [pbrazor1]/etc/LGTOuscsi$ ./inquire
> [email protected]:FUJITSU MAB3091S SUN9.0G1806|Disk, /dev/rdsk/c0t3d0s2
> [email protected]:HP C1557A U709|Tape, /dev/rmt/0mbn
> [email protected]:HP C1557A U709|Autochanger (Jukebox)
> 
> /dev/rmt/0mbn -> ../../devices/pci@1f,0/pci@1/scsi@2,1/st@4,0:mbn
> ********
> 
> But there is no 'st@4,1....' either.
> 
> So which software do I need to install or what configuration is needed?

Find your "Getting Started" document, or download same as an acrobat file
for the HP support website.  It includes very specific switch settings
for Sun (and other OS's) systems.  Some of the switches are on the back
panel, and others are on the drive bottom and require case removal for
external drives or unmounting for internal drives.

To get the lun 1 (st@4,1 vs st@4,0) you will also have to tell Solaris
to scan those lun's on reboot.  To do this edit the file /kernel/drv/st.conf.
Near the end are lines like:

        # name="st" class="scsi" target=2 lun=0;
        # name="st" class="scsi" target=3 lun=0;
        # name="st" class="scsi" target=4 lun=0;
        name="st" class="scsi" target=5 lun=0;
        name="st" class="scsi" target=5 lun=1;
        # name="st" class="scsi" target=6 lun=0;

My scsi id is 5, yours appears to be 4, thats fine.  Make sure the appropriate
line is uncommented for your target id.  As supplied I think all are uncommentd
from 0 to 6.  I commented out the unneeded ones for a minor speed up of reboots.
But if I ever change scsi id target on my tape drive, or add another drive, I
will have to remember to uncomment these lines.

Also as supplied, no LUN's except 0 are scanned.  You will have to add at least
the one "lun=1" line for your target id.  Doesn't hurt to add for all targets,
again with minor reboot slowdown.

Note also that anytime you upgrade your Solaris from 2.6 -> ??? or install a
patch that affects the st driver, this file will be overwritten and the changes
will have to be remade.  A couple of times I've done some admin tasks and
amanda stopped working -- OH yeah, got to reset st.conf.

While you are in this file, just check that it knows about your changer.  There
should be two other entries of interest.  In the top half of the file should
be aline that is used during boot to identify your tapedrive.  Mine looks like
this, YMMV:

        "HP      C1557A",         "HP DDS-3 4mm DAT loader",           "HPdds3",

The last field is a label pointing to an entry in the second half of the file
that provides initialization values for the scsi tape driver.  My HPdds3 line 
is:

        HPdds3            = 1, 0x34,    0, 0x0D639, 4, 0x00, 0x13, 0x24, 0x03, 
3;

After these, do a reconfigure boot.  I get both a /dev/rmt/0 and /dev/rmt/1.
The higher number is the changer device, the lower the tape drive.

BTW HP has their own program "mtx" to manipulate the changer and versions are
available for Solaris at ftp.hp.com.  The freeware mtx works also.

-- 
Jon H. LaBadie                  jon AT jgcomp DOT com
 JG Computing
 4455 Province Line Road        (609) 252-0159
 Princeton, NJ  08540-4322      (609) 683-7220 (fax)

<Prev in Thread] Current Thread [Next in Thread>