Does the user "bacula", or the group "tape" have permission to access
/dev/sg3?
Thanks,
Thomas
Bennett, Silas (GE Infrastructure) wrote:
Just a reminder that I am waiting patiently... ;0)
So far bacula works fine for everything but controlling the autoloader. The
mtx-changer script works fine for controlling the autoloader so this is
puzzling.
Cheers,
Silas
=0)
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Bennett,
Silas (GE Infrastructure)
Sent: Tuesday, August 09, 2005 5:41 PM
To: bacula-users@lists.sourceforge.net
Subject: [Bacula-users] Backula Autoloader Weirdness
Hi All,
I am having a little bit of trouble getting bacula (From Debian Sarge) to work
with my Overland Neo2000 Autoloader.
From the console I try to label a tape and get the following:
### <Output> ###
Connecting to Director jet:9101
1000 OK: jet-dir Version: 1.36.2 (28 February 2005)
label
Using default Catalog name=MyCatalog DB=bacula
The defined Storage resources are:
1: TAPE
2: DVD
3: RAID-DISK
4: DISK
Select Storage resource (1-4): 1
Enter new Volume name: Full_1_08-12-2005
Enter slot (0 for none): 1
Defined Pools:
1: Default
2: Diff
3: Scratch
4: Full
Select the Pool (1-4): 4
Connecting to Storage daemon TAPE at jet:9103
Sending label command for Volume "Full_1_08-12-2005" Slot 1 ...
3301 Issuing autochanger "loaded drive 0" command.
3991 Bad autochanger "loaded drive 0" command: ERR=Child exited with code 1.
3304 Issuing autochanger "load slot 1, drive 0" command.
3992 Bad autochanger "load slot 1, drive 0": ERR=Child exited with code 1.
Label command failed for Volume Full_1_08-12-2005.
Do not forget to mount the drive!!!
### </Output> ###
Here is the Storage directive for the TAPE device in bacula-dir.conf file:
### <File> ###
Storage {
Name = TAPE
Address = jet
SDPort = 9103
Password = ""
Device = Quantum-SDLT
Media Type = SDLT
Autochanger = yes
}
### </File> ###
Here is the Device directive for the Tape device in bacula-sd.conf file:
### <File> ###
Device {
Name = Quantum-SDLT
Media Type = SDLT
Archive Device = /dev/nst0
LabelMedia = yes;
Random Access = no;
AutomaticMount = yes;
RemovableMedia = yes;
AlwaysOpen = yes;
Changer Command = "/etc/bacula/scripts/mtx-changer %c %o %S %a %d"
Changer Device = /dev/sg3
Autochanger = yes
Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'"
}
### </File> ###
mtx works fine to control the auto loader, as does the mtx-changer script.
/etc/bacula/scripts/mtx-changer /dev/sg3 load 1 /dev/nst0 0
This dutifully loads the tape from slot 1 into the drive.
Any Insight into this problem?
Cheers,
Silas Bennett
=0)
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users