Amanda-Users

Re: NEC autoloaded - amanda-2.4.4

2003-06-18 08:25:11
Subject: Re: NEC autoloaded - amanda-2.4.4
From: Jean-Louis Martineau <martinea AT IRO.UMontreal DOT CA>
To: Tom Brown <tom.brown AT goodtechnology DOT com>
Date: Wed, 18 Jun 2003 08:20:35 -0400
Hi Tom,

Your changer file is not use.
What is the full path of your changer file?
What's your changerfile in amanda.conf?

>From the chg-zd-mtx script:
####
# Now you are ready to set up the variables in the changer configuration
# file.
#
# All variables are in "changerfile".conf where "changerfile" is set
# in amanda.conf.  For example, if amanda.conf has:
#
#       changerfile="/etc/amanda/Dailyset1/CHANGER"
#
# the variables must be in "/etc/amanda/Dailyset1/CHANGER.conf".
#
# If "changerfile" is a relative path, it is relative to the directory
# that contains amanda.conf.  That also happens to be the directory Amanda
# makes current before running this script.
####

On Wed, Jun 18, 2003 at 12:50:16PM +0100, Tom Brown wrote:
> Hi,
> 
> NEC autloader with 10 slots and IBM ultrium tape drive.
> 
> mtx version 1.2.17
> 
> amanda-2.4.4
> 
> dmesg -
> 
>   Vendor: IBM       Model: ULTRIUM-TD1       Rev: 1CSG
>   Type:   Sequential-Access                  ANSI SCSI revision: 03
> (scsi0:A:2): 40.000MB/s transfers (20.000MHz, offset 8, 16bit)
>   Vendor: NEC       Model: LL0101H-0A        Rev: 0002
>   Type:   Medium Changer                     ANSI SCSI revision: 02
> 
> I can control this robot with mtx fine - I have noticed that i need to do a
> mt -f /dev/nst0 offline before i can unload but other than that mtx is fine
> and i can load and unload happily.
> 
> The problem comes when doing, at the moment, an amlabel.
> 
> the first tape loads and labels fine with a
> 
> $ amlabel -f gt-host gthost01 slot 1
> labeling tape in slot 1 (/dev/nst0):
> rewinding, reading label gtlto01, tape is in another amanda configuration
> rewinding, writing label gthost01, checking label, done.
> 
> then when trying the next
> 
> $ amlabel -f gt-host gthost02 slot 2
> amlabel: could not load slot "2": Cannot find slot 2 in slot list ( 1)
> 
> an mtx status gives me
> 
> $ mtx -f /dev/sg3 status
>   Storage Changer /dev/sg3:1 Drives, 9 Slots ( 0 Import/Export )
> Data Transfer Element 0:Full (Storage Element 1 Loaded):VolumeTag =
>       Storage Element 1:Empty:VolumeTag=
>       Storage Element 2:Full :VolumeTag=
>       Storage Element 3:Full :VolumeTag=
>       Storage Element 4:Full :VolumeTag=
>       Storage Element 5:Full :VolumeTag=
>       Storage Element 6:Full :VolumeTag=
>       Storage Element 7:Full :VolumeTag=
>       Storage Element 8:Empty:VolumeTag=
>       Storage Element 9:Empty:VolumeTag=
> 
> This is whats in my changer file
> 
> firstslot=1
> lastslot=7
> cleanslot=8
> AUTOCLEAN=0
> autocleancount=99
> havereader=0
> offlinestatus=1
> OFFLINE_BEFORE_UNLOAD=1
> tapedev=/dev/nst0
> 
> I think this is because of the drive needing an offline before an unload but
> i thought this should have been taken care of in the change.conf
> 
> $ cat /tmp/amanda/amlabel.20030618134533.debug
> amlabel: debug 1 pid 28779 ruid 11 euid 11: start at Wed Jun 18 13:45:33
> 2003
> changer: got exit: 2 str: <none> Cannot find slot 2 in slot list ( 1)
> amlabel: could not load slot "2": Cannot find slot 2 in slot list ( 1)
> amlabel: pid 28779 finish time Wed Jun 18 13:45:34 2003
> 
> and
> 
> $ cat /tmp/amanda/chg-zd-mtx.20030618134533.debug
> chg-zd-mtx: debug 1 pid 28790 ruid 11 euid 11: start at Wed Jun 18 13:45:33
> 2003
> 13:45:33 Arg info:
>          $# = 2
>          $0 = "/opt/amanda-2.4.4/libexec/chg-zd-mtx"
>          $1 = "-slot"
>          $2 = "2"
> 13:45:33 Running: /usr/sbin/mtx status
> 13:45:34 Exit code: 0
>          Stdout:
>   Storage Changer /dev/sg3:1 Drives, 9 Slots ( 0 Import/Export )
> Data Transfer Element 0:Full (Storage Element 1 Loaded):VolumeTag =
>       Storage Element 1:Empty:VolumeTag=
>       Storage Element 2:Full :VolumeTag=
>       Storage Element 3:Full :VolumeTag=
>       Storage Element 4:Full :VolumeTag=
>       Storage Element 5:Full :VolumeTag=
>       Storage Element 6:Full :VolumeTag=
>       Storage Element 7:Full :VolumeTag=
>       Storage Element 8:Empty:VolumeTag=
>       Storage Element 9:Empty:VolumeTag=
> 13:45:34 Config info:
>          firstslot = "1"
>          lastslot = "1"
>          cleanslot = "-1"
>          cleancycle = "120"
>          offline_before_unload = "1"
>          unloadpause = "0"
>          autoclean = "0"
>          autocleancount = "99"
>          havereader = "0"
>          driveslot = "0"
>          poll_drive_ready = "3"
>          max_drive_wait = "120"
> 13:45:34 LOADSLOT -> load drive 0 (/dev/nst0) from slot 2
> 13:45:34 Exit (2) -> <none> Cannot find slot 2 in slot list ( 1)
> chg-zd-mtx: pid 28917 finish time Wed Jun 18 13:45:34 2003
> 
> thanks for any help
> 
> Tom

-- 
Jean-Louis Martineau             email: martineau AT IRO.UMontreal DOT CA 
Departement IRO, Universite de Montreal
C.P. 6128, Succ. CENTRE-VILLE    Tel: (514) 343-6111 ext. 3529
Montreal, Canada, H3C 3J7        Fax: (514) 343-5834

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