I don't have OFFLINE_BEFORE_UNLOAD=1 #### Does your tape driver require a # #### 'mt offline' before mtx unload?
in my changer.conf. Did you find for some reason it was needed? Ron -----Original Message----- From: Tom Brown [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 17, 2003 5:21 AM To: Ron Bauman; [EMAIL PROTECTED] Subject: Re: strange am-label issue I had a similar problem with a Sony SDX-500C drive. I found the changer script wasn't waiting for the tape to really become ready. Using 2.4.4, chg-zd-mtx and adding this to changer.conf solved the problem: offlinestatus=1 #### Set to 0 if 'mt status' gives an # #### "offline" when drive is offline. # #### Set to 1 or greater if 'mt status' # #### doesn't give and offline, rather an # #### "ONLINE" when drive is online. Hi, That's what i have - The drive is a HP-DDS4 DAT40x6 autoloader and ny change.conf looks like this firstslot=1 #### 1st tape slot lastslot=6 #### Last tape slot # cleanslot=0 #### Slot with cleaner tape AUTOCLEAN=0 #### Set to '1' or greater to enable autocleancount=99 #### Number of access before a clean. havereader=0 #### If you have a barcode reader, set to 1. offlinestatus=1 #### Set to 0 if 'mt status' gives an # #### "offline" when drive is offline. # #### Set to 1 or greater if 'mt status' # #### doesn't give and offline, rather an # #### "ONLINE" when drive is online. # OFFLINE_BEFORE_UNLOAD=1 #### Does your tape driver require a # #### 'mt offline' before mtx unload? tapedev=/dev/nst0 I have 6 taes in there and no cleaning tape - My amcheck reports.... $ amcheck gt-log Amanda Tape Server Host Check ----------------------------- Holding disk /scratch/amanda: 20088512 KB disk space available, that's plenty amcheck-server: slot 6: date X label gt-log06 (first labelstr match) amcheck-server: slot 5: date X label gt-log05 (labelstr match) amcheck-server: slot 2: date X label gt-log02 (labelstr match) amcheck-server: slot 2: date X label gt-log02 (labelstr match) amcheck-server: slot 2: date X label gt-log02 (labelstr match) amcheck-server: slot 2: date X label gt-log02 (labelstr match) NOTE: skipping tape-writable test Tape gt-log06 label ok all tapes are labelled and new so thats why it says it'll use tape 06 rather than 01 pasted below is part of the debug logs - why is it reporting that the current slot is not available? Tom $ more chg-zd-mtx.20030617110112.debug chg-zd-mtx: debug 1 pid 2176 ruid 11 euid 11: start at Tue Jun 17 11:01:12 2003 11:01:12 Arg info: $# = 2 $0 = "/opt/amanda-2.4.4/libexec/chg-zd-mtx" $1 = "-slot" $2 = "next" 11:01:12 Running: /opt/mtx/sbin/mtx status 11:01:12 Exit code: 0 Stdout: Storage Changer /dev/sg2:1 Drives, 6 Slots ( 0 Import/Export ) Data Transfer Element 0:Full (Storage Element 2 Loaded) Storage Element 1:Full Storage Element 2:Empty Storage Element 3:Full Storage Element 4:Full Storage Element 5:Full Storage Element 6:Full 11:01:12 Config info: firstslot = "1" lastslot = "6" 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" 11:01:12 WARNING -> current slot 2 not available, setting current slot to next slot (6) 11:01:12 LOADSLOT -> load drive 0 (/dev/nst0) from slot next 11:01:12 STATUS -> currently loaded slot = 2 -> currently loaded barcode = "" 11:01:12 Exit (0) -> 2 /dev/nst0 chg-zd-mtx: pid 2333 finish time Tue Jun 17 11:01:12 2003
