PDA

View Full Version : chg-zd-mtx script issues



gagz
August 31st, 2010, 01:11 PM
Hello All,

I am trying to test the script chg-zd-mtx and its give me issues when I run "chg-zd-mtx -slot next". Thanks in advance for any feedback related to this.


-bash-3.2$ chg-zd-mtx -slot next
1 Unloading Data Transfer Element into Storage Element 1...mtx: Request Sense: Long Report=yes
mtx: Request Sense: Valid Residual=no
mtx: Request Sense: Error Code=70 (Current)
mtx: Request Sense: Sense Key=Illegal Request
mtx: Request Sense: FileMark=no
mtx: Request Sense: EOM=no
mtx: Request Sense: ILI=no
mtx: Request Sense: Additional Sense Code = 3A
mtx: Request Sense: Additional Sense Qualifier = 00
mtx: Request Sense: BPV=no
mtx: Request Sense: Error in CDB=no
mtx: Request Sense: SKSV=no
MOVE MEDIUM from Element Address 500 to 1000 Failed


I have the changer.conf in /etc/amanda/test/ and here is how it looks like
-bash-3.2$ cat changer.conf
firstslot=1
lastslot=18
driveslot=0
havereader=1
offline_before_unload=1
MTX=/usr/sbin/mtx #I notice chg-zd-mtx script refers to $MTX
MT=/bin/mt #$MT, so i added these two variables MTX and MT in
#autoclean=1 #in changer.conf
#cleanslot=25
#autocleancount=99
#cleancycle=120
max_drive_wait=120
unloadpause=120
#poll_drive_ready=10
initial_poll_delay=120

gagz
August 31st, 2010, 01:35 PM
Nevermind, I got it. I looked in the the logs /var/log/chg-zd-mtx* and noticed that the changer.conf it was looking at was /etc/amanda/test/changer.conf.conf, so basically just corrected the path to /etc/amanda/test/changer.conf