Hello Steve,
Sorry, I sent an incomplete message.
I think we will need to speak the same language here :-)
You have your Director running at sleipnir host:
root@sleipnir:/etc/bacula# bconsole
Connecting to Director sleipnir:9101
1000 OK: 102 sleipnir-dir Version: 7.4.3 (18 June 2016)
with the Autochanger configuration on Director:
From bacula-dir.conf on sleipnir (where the director is):
Storage {
Name = Library2
# Do not use "localhost" here
Address = odin # N.B. Use a fully qualified name here
SDPort = 9103
Password = "*****************"
Device = AutochangerOdin
Media Type = LTO6
Autochanger = yes # enable for autochanger device
}
And you have your remote Storage Daemon installed in a host called odin with the following configuration:
From the bacula-sd.conf on odin (where the library is):
Autochanger {
Name = AutochangerOdin
Device = Drive-1
Changer Command = "/etc/bacula/scripts/mtx-changer %c %o %S %a %d"
Changer Device = /dev/autochanger1
}
Device {
Name = Drive-1 #
Description = "LT06 inside Dell TL2000 Library"
Drive Index = 0
Media Type = LT06
Archive Device = /dev/nst0
AutomaticMount = yes; # when device opened, read it
AlwaysOpen = yes;
RemovableMedia = yes;
RandomAccess = no;
AutoChanger = yes
SpoolDirectory = "/var/spool/bacula"
MaximumSpoolSize = 485G
Maximum Network Buffer Size = 65536
Offline On Unmount = no
Alert Command = "sh -c 'smartctl -H -l error %c'"
}
This is perfect.
You are right, the permission needs to be checked.
If you have bacula-sd runnig as bacula user, the bacula user must be member of tape group.
Also, you can start the bacula-sd daemon in debug mode to get some debug output and maybe help in this case. The following command should be run on odin host:
* sudo -u bacula -g tape /opt/ bacula/bin/bacula-sd -d200
This will produce debug information on the Storage Daemon host and maybe we can have more information about this problem.
Best,
Ana