mtx -F <changerdev> load tape 44 into drive 2
Very Close Jon:
mtx [ -f <loader-dev> ] [invert] load <storage-element-number> [<drive#>]
(so for me: mtx -f /dev/changer load 44 2)
(and yes, after finally getting all that SCSI junk done, it's /dev/changer
which points to
/dev/scsi/changer/c1t0d0
So you (too) think that driveslot IS required to point to correct drive.
Now, which tapedev do I point to in amanda.conf... This gets more confusing...
-----Original Message-----
From: Jon LaBadie [mailto:jon AT jgcomp DOT com]
Sent: Friday, August 08, 2003 11:28 AM
To: amanda-users AT amanda DOT org
Subject: Re: A last question (here) on chg-MTX-ZD
On Fri, Aug 08, 2003 at 10:00:41AM -0500, Bruntel, Mitchell L wrote:
> Hopefully this is it. sorry it's so lengthy.
>
> Question is kind of short.
>
> In the changer script chg-zd-mtx script Variable :DriveSlot
> is defined as
> Figure out the drive slot number. By default, it is set to 0.
> In the example above,
> the tape drive ("Data Transfer Element") is in slot 0. If your
> drive slot is not 0, you
> need to set the drive slot number with the "driveslot" variable.
>
> ====================
> Here's the question.
> ====================
> I'm lucky(?) enough to have a three drive robot.
Here is my question, forgetting amanda, how would you load a tape, say
tape 44 into the third tape drive using the mtx command from the shell
prompt? Never having had the 'luxury' of a multiple drive library,
I don't know if or how you can say something like:
mtx -F <changerdev> load tape 44 into drive 2
But if you have to specify a number for the drive, I'd suspect that
is the number to use for the "driveslot".
BTW, you are using names like /dev/rmt/0 ... I assume it is Solaris.
Those names are for the drives when reading and writing tapes. I'd
expect that when your library is installed (or installed correctly :)
there would be a separate device created just for the changer mechanism.
The change device would be the device to use with mtx, not the read/write
devices. Often the changer device gets created under /dev/scsi/... or
/dev/changer. It may require editing of the /kernel/drv/sgen.conf file
before it can be created.
--
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)
|