Jean-Louis
Thanks for that :)
I can now run through the mtx tests, as per chg-zd-mtx, which feels like a
big step in the right direction.
Moving onto amtape...
$ amtape Daily reset
amtape: could not reset changer: no slots available
I'm looking through the script, but struggling to see what's wrong with my
config.
Cheers
Nige
-----Original Message-----
From: Jean-Louis Martineau [mailto:martinea AT IRO.UMontreal DOT CA]
Sent: 03 March 2003 16:29
To: Nigel Barker
Cc: amanda-users AT amanda DOT org
Subject: Re: Solaris 8 Overland Tape changer config
The first to do is to set your driveslot correctly, yours is 0.
Jean-Louis
On Mon, Mar 03, 2003 at 02:54:11PM -0000, Nigel Barker wrote:
> Hi
>
> I know this is well trodden ground, believe me I've scanned the emails,
> please could someone tell me where I'm going wrong?
>
> I'm using Solaris 8, with an OverlandXB 10 slot changer and a DLT drive.
> Amanda 2.4.3
> mtx 1.2.17
>
> I've identified the correct tape device, tested by :-
> $mt -f /dev/rmt/1n status
> Quantum DLT7000 tape drive:
> sense key(0x0)= No Additional Sense residual= 0 retries= 0
> file no= 0 block no= 0
>
> I've used sgen to get a device for the changer :-
> $./mtx status
> Storage Changer /dev/scsi/changer/c1t6d0:1 Drives, 10 Slots ( 0
> Import/Export )
> Data Transfer Element 0:Full (Storage Element 1 Loaded)
> Storage Element 1:Empty
> 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:Full
> Storage Element 10:Full
>
> The changer has a cleaning tape in slot 10.
>
> amanda.conf contains :-
> tpchanger "chg-zd-mtx"
> tapedev "/dev/rmt/1n"
> changerfile "/usr/local/share/amanda/Daily/chg-zd-mtx"
> changerdev "/dev/scsi/cganger/c1t6do"
>
> I created a file chg-zd-mtx.conf containing :-
> firstslot=1
> lastslot=9
> cleanslot=10
>
> Trying to follow the chg-zd-mtx instructions, I try :-
> $ ./chg-zd-mtx -info
> <none> could not determine current slot
>
> Logfile contains :-
> chg-zd-mtx: debug 1 pid 11255 ruid 0 euid 0: start at Mon Mar 3 14:31:47
> 2003
> 14:31:47 Arg info:
> $# = 1
> $0 = "./chg-zd-mtx"
> $1 = "-info"
> 14:31:47 Running: mtx status
> 14:31:47 Exit code: 0
> Stdout:
> Storage Changer /dev/scsi/changer/c1t6d0:1 Drives, 10 Slots ( 0
> Import/Export )
> Data Transfer Element 0:Full (Storage Element 1 Loaded)
> Storage Element 1:Empty
> 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:Full
> Storage Element 10:Full
> 14:31:47 Config info:
> firstslot = "1"
> lastslot = "9"
> cleanslot = "10"
> cleancycle = "120"
> offline_before_unload = "0"
> unloadpause = "0"
> autoclean = "0"
> autocleancount = "99"
> havereader = "0"
> driveslot = "1"
> poll_drive_ready = "3"
> max_drive_wait = "120"
> 14:31:47 WARNING -> current slot 1 not available, setting current slot to
> next slot (2)
> 14:31:47 Exit (2) -> <none> could not determine current slot
> chg-zd-mtx: pid 11340 finish time Mon Mar 3 14:31:47 2003
>
> Now, checking chg-zd-mtx-slot, it contains 1, and doesn't change!
> (I then verified that the file was owned by backup, the amanda user, which
> it is, and that backup owns the entire config directory.
>
> Any help would be MUCH appreciated.
>
> Many thanks
>
> Nigel Barker
--
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
|