Ich habe Bareos auf UCS 4.2-2 installiert. Wenn ich status storage
in der bconsole ausführe, kommt keine Verbindung zu Storage-Deamon zustande. Als Meldung bekomme ich:
*status storage
Automatically selected Storage: File
Connecting to Storage daemon File at 192.168.2.2:9103
Failed to connect to Storage daemon File.
====
Die Message dazu:
03-Nov 09:20 bareos-dir JobId 0: Fatal error: Authorization key rejected by Storage daemon File.
Please see http://doc.bareos.org/master/html/bareos-manual-main-reference.html#AuthorizationErrors for help.
03-Nov 09:20 bareos-dir JobId 0: Fatal error: Director unable to authenticate with Storage daemon at "192.168.2.2:9103". Possible causes:
Passwords or names not the same or
TLS negotiation problem or
Maximum Concurrent Jobs exceeded on the SD or
SD networking messed up (restart daemon).
Please see http://doc.bareos.org/master/html/bareos-manual-main-reference.html#AuthorizationErrors for help.
Ich habe die
/etc/bareos/bareos-dir.d/storage/File.conf
im Director
und die dazugehörige
.../bareos-sd.d/director/bareos-dir.conf
(siehe unten)
im Storage-Deamon kontrolliert, die Passwörter und Namen passen.
Außerdem habe ich mit telnet 192.168.2.2 9103
die Verbindung zum deamon erfolgreich getestet.
Hier die Konfiguration:
/etc/bareos/bareos-dir.d/storage/File.conf
Storage {
Name = File
Address = 192.168.2.2 # N.B. Use a fully qualified name here (do no$
Password = "/VlQlmpclgbGM47ogERFWJLBDZCjdzMJeg/U70CdR8rR"
Device = FileStorage
Media Type = File
}
/etc/bareos/bareos-sd.d/director/bareos-dir.conf
Director {
Name = bareos-dir
Password = "/VlQlmpclgbGM47ogERFWJLBDZCjdzMJeg/U70CdR8rR"
Description = "Director, who is permitted to contact this storage daemon."
}
/etc/bareos/bareos-sd.d/device/FileStorage.conf
Device {
Name = FileStorage
Media Type = File
Archive Device = /home/datensicherung
LabelMedia = yes; # lets Bareos label unlabeled media
Random Access = yes;
AutomaticMount = yes; # when device opened, read it
RemovableMedia = no;
AlwaysOpen = no;
Description = "File device. A connecting Director must have the same Name $
}