Please excuse me, i forgotten to copy the error... :-) > >> i try to configure bacula to backup data to a Sony StorStation LIB-81 >> autochanger (200GB/520GB AIT4). The System I use is Debian GNU/Linux 4.0 >> "Etch". >> >> If I run btape -c /etc/bacula/bacula-sd.conf -f /dev/sg3 the following error >> appear:
btape -c /etc/bacula/bacula-sd.conf /dev/sg3 Tape block granularity is 1024 bytes. btape: butil.c:272 Using device: "/dev/sg3" for writing. 17-Okt 13:13 btape: 3301 Issuing autochanger "loaded drive 0" command. 17-Okt 13:13 btape: 3302 Autochanger "loaded drive 0", result is Slot 1. 17-Okt 13:13 btape: 3301 Issuing autochanger "loaded drive 0" command. 17-Okt 13:13 btape: 3302 Autochanger "loaded drive 0", result is Slot 1. btape: btape.c:338 open device "Sony LIB-81 AIT4" (/dev/sg3): OK *test === Write, rewind, and re-read test === I'm going to write 1000 records and an EOF then write 1000 records and an EOF, then rewind, and re-read the data to verify that it is correct. This is an *essential* feature ... 17-Okt 13:14 btape: 3301 Issuing autochanger "loaded drive 0" command. 17-Okt 13:14 btape: 3302 Autochanger "loaded drive 0", result is Slot 1. btape: btape.c:775 Bad status from rewind. ERR=dev.c:678 Rewind error on "Sony LIB-81 AIT4" (/dev/sg3). ERR=Das Argument ist ungültig. *auto 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. 17-Okt 13:16 btape: 3301 Issuing autochanger "loaded drive 0" command. 17-Okt 13:16 btape: 3302 Autochanger "loaded drive 0", result is Slot 1. btape: btape.c:338 open device "Sony LIB-81 AIT4" (/dev/sg3): OK 17-Okt 13:16 btape: 3301 Issuing autochanger "loaded drive 0" command. 17-Okt 13:16 btape: 3302 Autochanger "loaded drive 0", result is Slot 1. btape: btape.c:1198 Bad status from rewind. ERR=dev.c:678 Rewind error on "Sony LIB-81 AIT4" (/dev/sg3). ERR=Das Argument ist ungültig. The test failed, probably because you need to put a longer sleep time in the mtx-script in the load) case. Adding a 30 second sleep and trying again ... 3301 Issuing autochanger "loaded" command. Slot 1 loaded. I am going to unload it. 3302 Issuing autochanger "unload 1 0" command. > Also, are you sure /dev/sg3 is correct for accessing the tape drive? I > have never seen it accessed using the SCSI generic device before - > /dev/st0 and /dev/nst0 (for the non-rewinding tape drive) are what I > would expect. > I think it works now. I changed the device to /dev/nst0. Thanks to Eric. Greetings Stefan -- GMX FreeMail: 1 GB Postfach, 5 E-Mail-Adressen, 10 Free SMS. Alle Infos und kostenlose Anmeldung: http://www.gmx.net/de/go/freemail ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users