Hi Silas,
The "tapeinfo" command (I think it's part of the mtx package) is great
for figuring out which device is what; e.g.:
[EMAIL PROTECTED] ~]# tapeinfo -f /dev/sg0
Product Type: Medium Changer
Vendor ID: 'QUALSTAR'
Product ID: 'TLS-8222 '
Revision: '2.15'
Attached Changer: No
SerialNumber: '51BC2123'
SCSI ID: 0
SCSI LUN: 0
Ready: yes
[EMAIL PROTECTED] ~]# tapeinfo -f /dev/sg1
Product Type: Tape Drive
Vendor ID: 'HP '
Product ID: 'Ultrium 1-SCSI '
Revision: 'E35Q'
Attached Changer: No
SerialNumber: 'IE72B02276'
MinBlock:1
MaxBlock:16777215
SCSI ID: 1
SCSI LUN: 0
Ready: yes
BufferedMode: yes
Medium Type: Not Loaded
Density Code: 0x40
BlockSize: 0
DataCompEnabled: yes
DataCompCapable: yes
DataDeCompEnabled: yes
CompType: 0x1
DeCompType: 0x1
BOP: yes
Block Position: 0
--
Sam De Francesco
On 12/08/2005, at 8:13 AM, Bennett, Silas (GE Infrastructure) wrote:
Doh!!!
That was the problem. I did the initial configuration assuming that the
changer would be sg0 and set the permissions to be root:tape chmod 660
I banged my head against a wall for a while until I figured out that
the autoloader was not sg0 (Still not sure what devices are taking sg0
& sg1 on the system). Then I changed the configuration to use sg3, but
forgot to change the permissions which were still root:root 600.
Thank you very much Thomas!
Cheers,
Silas
=0)
-----Original Message-----
From: Thomas Simmons [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 11, 2005 2:40 PM
To: Bennett, Silas (GE Infrastructure)
Cc: [email protected]
Subject: Re: [Bacula-users] Backula Autoloader Weirdness
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: [email protected]
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
[email protected]
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
[email protected]
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
[email protected]
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/bacula-users