Amanda-Users

Re: drive slot issues with chg-zd-mtx on solaris

2003-05-13 15:04:51
Subject: Re: drive slot issues with chg-zd-mtx on solaris
From: Jon LaBadie <jon AT jgcomp DOT com>
To: Amanda-Users <amanda-users AT amanda DOT org>
Date: Tue, 13 May 2003 15:01:46 -0400
On Tue, May 13, 2003 at 07:41:31PM +0100, Nigel Barker wrote:
> Hi
> 
> Next issue is the drive slot...
> My tape device is /dev/rmt/1n, so I've set driveslot=0 in changer.conf
> (I also tried it set to 1, same result, except it said drive slot 1 in the
> error message)
> 
> Here's the log
> 
> bash-2.03# cat /tmp/amanda/chg-zd-mtx.20030513183630.debug
> chg-zd-mtx: debug 1 pid 4712 ruid 4027 euid 4027: start at Tue May 13
> 18:36:30 2003
> 18:36:31 Arg info:
>          $# = 2
>          $0 = "./chg-zd-mtx"
>          $1 = "-slot"
>          $2 = "current"
> 18:36:31 Running: mtx status
> 18:36:31 Exit code: 0
>          Stdout:
>   Storage Changer /dev/scsi/changer/c1t6d0:1 Drives, 10 Slots ( 0
> Import/Export )
> Data Transfer Element 0:Full (Unknown Storage Element Loaded)
                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
This is a message from your mtx command and tape library.
I see nowhere in the chg-zd-mtx code where this is an anticipated message.
It is expecting something like "Slot empty", or "Storage Element 9 Loaded".

chg-zd-mtx depends on the changer and mtx telling it what is loaded.
If your changer doesn't know what tape is loaded, chg-zd-mtx can't either.
Maybe it needs power cycling or reloading or some such?

>       Storage Element 1:Full
>       Storage Element 2:Full
>       Storage Element 3:Full
>       Storage Element 4:Full
>       Storage Element 5:Full
>       Storage Element 6:Full
>       Storage Element 7:Full
>       Storage Element 8:Full
>       Storage Element 9:Empty
>       Storage Element 10:Full
> 18:36:31 Config info:
>          firstslot = "1"
>          lastslot = "9"
>          cleanslot = "10"
>          autoclean = "0"

Why disable autoclean and yet leave an unavailable slot for tapes?
How about lastslot = 10 and cleanslot = -1 ?

-- 
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>