ooh, found this http://old.nabble.com/Bad-Autochanger-td15870476.html and following the advice in the 2nd post from John M. Drescher
---------------------------------- If you believe the tape was successfully loaded in a slot then you need to customize the mtx-changer script. Look at the code # sleep 15 wait_for_drive $device exit $rtn ;; I would comment out wait_for_drive and replace it with sleep 120. Turn on some debugging in the script so you can see what is happening. ---------------------------------- edited mtx-changer, ran autochanger again, and *autochanger Ah, I see you have an autochanger configured. To test the autochanger you must have a blank tape that I can write on in Slot 1. Do you wish to continue with the Autochanger test? (y/n): y === Autochanger test === 3301 Issuing autochanger "loaded" command. Slot 1 loaded. I am going to unload it. 3302 Issuing autochanger "unload 1 0" command. unload status=OK 0 3303 Issuing autochanger "load 1 0" command. 3303 Autochanger "load 1 0" status is OK. btape: btape.c:476 open device "Certance" (/dev/st0): OK btape: btape.c:1562 Rewound "Certance" (/dev/st0) btape: btape.c:1569 Wrote EOF to "Certance" (/dev/st0) The test autochanger worked!! On Sat, Feb 13, 2010 at 7:11 PM, shouldbe q931 <shouldbeq...@googlemail.com> wrote: > I managed to scrounge two LTO-3 tapes with labels and put them into > the Superloader. > > After trying and failing to get them labeled using BAT, I tried using > bconsole, which also didn't work :-( > > [r...@sp-mirror-02 ~]# bconsole > Connecting to Director sp-mirror-02:9101 > 1000 OK: sp-mirror-02.loewygroup.local Version: 5.0.0 (26 January 2010) > Enter a period to cancel a command. > *label barcodes > Automatically selected Catalog: MyCatalog > Using Catalog "MyCatalog" > The defined Storage resources are: > 1: File > 2: Superloader > Select Storage resource (1-2): 2 > Connecting to Storage daemon Superloader at sp-mirror-02:9103 ... > 3306 Issuing autochanger "slots" command. > Device "Certance" has 16 slots. > Connecting to Storage daemon Superloader at sp-mirror-02:9103 ... > 3306 Issuing autochanger "list" command. > The following Volumes will be labeled: > Slot Volume > ============== > 5 MGQ999L3 > 6 MGQ998L3 > Do you want to label these Volumes? (yes|no): yes > Defined Pools: > 1: Default > 2: File > 3: Scratch > 4: Tape-Pool-A > Select the Pool (1-4): 4 > Connecting to Storage daemon Superloader at sp-mirror-02:9103 ... > Sending label command for Volume "MGQ999L3" Slot 5 ... > 3301 Issuing autochanger "loaded? drive 0" command. > 3302 Autochanger "loaded? drive 0", result: nothing loaded. > 3304 Issuing autochanger "load slot 5, drive 0" command. > 3992 Bad autochanger "load slot 5, drive 0": ERR=Child died from > signal 15: Termination. > Results=Program killed by Bacula (timeout) > > Label command failed for Volume MGQ999L3. > Sending label command for Volume "MGQ998L3" Slot 6 ... > 3301 Issuing autochanger "loaded? drive 0" command. > 3302 Autochanger "loaded? drive 0", result is Slot 5. > 3307 Issuing autochanger "unload slot 5, drive 0" command. > 3304 Issuing autochanger "load slot 6, drive 0" command. > 3992 Bad autochanger "load slot 6, drive 0": ERR=Child died from > signal 15: Termination. > Results=Program killed by Bacula (timeout) > > Label command failed for Volume MGQ998L3. > > > I then tried to use the web interface on the Superloader to put a tape > in the drive, and write a label using btape, this worked... > > [r...@sp-mirror-02 bacula]# btape -v Certance > Tape block granularity is 1024 bytes. > btape: butil.c:285 Using device: "Certance" for writing. > 13-Feb 18:31 btape JobId 0: 3301 Issuing autochanger "loaded? drive 0" > command. > 13-Feb 18:31 btape JobId 0: 3302 Autochanger "loaded? drive 0", result > is Slot 6. > btape: btape.c:476 open device "Certance" (/dev/st0): OK > *label > Enter Volume Name: pool-a-tape-1 > Wrote Volume label for volume "pool-a-tape-1". > *readlabel > btape: btape.c:528 Volume label read correctly. > > Volume Label: > Id : Bacula 1.0 immortal > VerNo : 11 > VolName : pool-a-tape-1 > PrevVolName : > VolFile : 0 > LabelType : PRE_LABEL > LabelSize : 183 > PoolName : Default > MediaType : LTO-3 > PoolType : Backup > HostName : sp-mirror-02.loewygroup.local > Date label written: 13-Feb-2010 18:31 > > then I tried the btape autochanger command > > *autochanger > > Ah, I see you have an autochanger configured. > To test the autochanger you must have a blank tape > that I can write on in Slot 1. > > Do you wish to continue with the Autochanger test? (y/n): y > > > === Autochanger test === > > 3301 Issuing autochanger "loaded" command. > Slot 1 loaded. I am going to unload it. > 3302 Issuing autochanger "unload 1 0" command. > unload status=OK 0 > 3303 Issuing autochanger "load 1 0" command. > 3993 Bad autochanger command: /usr/lib/bacula/mtx-changer /dev/sg1 > load 1 /dev/st0 0 > 3993 result="Loading media from Storage Element 1 into drive 0...done > ": ERR=Child died from signal 15: Termination > You must correct this error or the Autochanger will not work. > > > I watched via the web interface as it unloaded the tape in the drive > to the picker, and moved it to slot 1, and then loaded the tape from > slot 1 into the drive, where the web interface reports the drive as > idle, and then it eventually failed in the btape "console". > > I've attached the bacula-sd.conf, I'd really appreciate if somebody > could confirm that the format and syntax looks to be correct for a > SCSI attached LTO-3 Superloader 3 > > Cheers > > Arne > > > > On Fri, Feb 12, 2010 at 3:03 PM, Daniel Kamm <y...@ylz.ch> wrote: >> Am 2/12/10 3:36 PM, schrieb shouldbe q931: >>> >>> Are barcode labels a requirement, or is there an alternative ? >> >> I think there are ways to go without barcodes, but you definitly don't want >> to miss barcodes. They make things a lot easier. >> >> If you need barcode labels, print them yourself: >> http://tapelabels.librelogiciel.com/ >> >> Other question: Did you let Bacula write Bacula Labels on the tape? If you >> don't know, use 'btape readlabel' to check, if the tape has a Bacula Label. >> >> Regards, >> - Dan >> > ------------------------------------------------------------------------------ SOLARIS 10 is the OS for Data Centers - provides features such as DTrace, Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW http://p.sf.net/sfu/solaris-dev2dev _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users