Amanda-Users

Solaris 8 Overland Tape changer config

2003-03-03 11:51:17
Subject: Solaris 8 Overland Tape changer config
From: "Nigel Barker" <nigelb AT muscat DOT com>
To: <amanda-users AT amanda DOT org>
Date: Mon, 3 Mar 2003 14:54:11 -0000
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