On Wed, Oct 25, 2017 at 5:27 PM, Heitor Faria <hei...@bacula.com.br> wrote:
>
> Hi,
>
>
> Hello,
>
>
>
> I've setup bacula-dir on Ubuntu, and bacula-sd on Freenas.
>
>
> Why? Isn't iSCSI easier?
>
I'm not used to Freenas (or any NAS). I will look into it.
>
> Problem is the director can't connect to the storage.
>
>
> Probably different Director and SD versions?
>
> Error below:
>
> *message
> 25-Oct 16:52 foo-dir JobId 0: Fatal error: authenticate.c:122 Director
> unable to authenticate with Storage daemon at "xx.xx.xx.yy:9103". Possible
> causes:
> Passwords or names not the same or
> Maximum Concurrent Jobs exceeded on the SD or
> SD networking messed up (restart daemon).
> For help, please see: http://www.bacula.org/rel-manual/en/problems/Bacula_
> Frequently_Asked_Que.html
>
>
> Port is fine:
>
> root@baculaDirector:/etc/bacula# netcat -zvw 1 xx.xx.xx.yy 9103
> Connection to xx.xx.xx.yy 9103 port [tcp/bacula-sd] succeeded!
>
> I tried to setup bacula-sd locally with the bacula-dir, using the exact
> configuration taken from freenas and it works perfectly well, meaning to
> say that the password is not an issue. The port is not blocked either.
> Following are my bacula-dir and bacula-sd configuration. Is there anything
> that I missed?
>
> bacula-dir.conf
> Director { # define myself
> Name = foo-dir
> DIRport = 9101 # where we listen for UA connections
> QueryFile = "/etc/bacula/scripts/query.sql"
> WorkingDirectory = "/var/lib/bacula"
> PidDirectory = "/run/bacula"
> Maximum Concurrent Jobs = 20
> Password = "fooconsole" # Console password
> Messages = Daemon
> DirAddress = xx.xx.xx.xx
> }
>
> Client {
> Name = foo-fd
> Address = xx.xx.xx.xx
> FDPort = 9102
> Catalog = MyCatalog
> Password = "foofd"
> File Retention = 60 days # 60 days
> Job Retention = 6 months # six months
> AutoPrune = yes # Prune expired Jobs/Files
> }
>
> Storage {
> Name = File
> Address = xx.xx.xx.yy # N.B. Use a fully qualified name here
> SDPort = 9103
> Password = "foosd"
> Device = FooStorage
> Media Type = File
> }
>
> Catalog {
> Name = MyCatalog
> dbname = "bacula"; DB Address = "localhost"; dbuser = "bacula";
> dbpassword = "foofoo"
> }
>
> Messages {
> Name = Standard
> mailcommand = "/usr/sbin/bsmtp -h localhost -f \"\(Bacula\) \<%r\>\" -s
> \"Bacula: %t %e of %c %l\" %r"
> operatorcommand = "/usr/sbin/bsmtp -h localhost -f \"\(Bacula\) \<%r\>\"
> -s \"Bacula: Intervention needed for %j\" %r"
> mail = root = all, !skipped
> operator = root = mount
> console = all, !skipped, !saved
> append = "/var/log/bacula/bacula.log" = all, !skipped
> catalog = all
> }
>
>
> Messages {
> Name = Daemon
> mailcommand = "/usr/sbin/bsmtp -h localhost -f \"\(Bacula\) \<%r\>\" -s
> \"Bacula daemon message\" %r"
> mail = root = all, !skipped
> console = all, !skipped, !saved
> append = "/var/log/bacula/bacula.log" = all, !skipped
> }
>
> Console {
> Name = foo-mon
> Password = "foomon"
> CommandACL = status, .status
> }
>
> @/etc/bacula/conf.d/jobs.conf
> @/etc/bacula/conf.d/filesets.conf
> @/etc/bacula/conf.d/schedules.conf
> @/etc/bacula/conf.d/pools.conf
>
>
> bacula-sd.conf:
> Storage { # definition of myself
> Name = foo-sd
> SDPort = 9103 # Director's port
> WorkingDirectory = "/var/db/bacula"
> Pid Directory = "/var/run"
> Maximum Concurrent Jobs = 20
> }
>
> Director {
> Name = foo-dir
> Password = "foosd"
> }
>
> Director {
> Name = foo-mon
> Password = "foomon"
> Monitor = yes
> }
>
> Device {
> Name = FooStorage
> Media Type = File
> Archive Device = /mnt/files
> LabelMedia = yes; # lets Bacula label unlabeled media
> Random Access = Yes;
> AutomaticMount = yes; # when device opened, read it
> RemovableMedia = no;
> AlwaysOpen = no;
> Maximum Network Buffer Size = 65536
> }
>
> Messages {
> Name = Standard
> director = foo-dir = all
>
>
> Regards,
>
>
>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users