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
|