I have problem when connecting to the Director daemon.
My hard disk type is "sata".I'm sure the password and the name are right,but I confuse of the option of "address",I am not sure  using the
IP address in the "address" option is right.
 
after i make sqlite.
the following is my configure:
{
CFLAGS="-g -Wall" ./configure \
  --sbindir=/usr/local/bacula/bin \
  --sysconfdir=/usr/local/bacula/bin \
  --enable-smartalloc \
  --with-sqlite=/usr/local/bacula/depkgs/sqlite \
  --with-working-dir=/usr/local/bacula/working \
  --with-pid-dir=/usr/local/bacula/bin/working \
  --with-subsys-dir=/usr/local/bacula/bin/working \
  --with-fd-password=fd123 \
  --with-sd-password=sd123 \
  --with-dir-password=dir123 \
  --enable-static-fd \
  --enable-static-sd \
  --enable-static-dir \
  --enable-static-cons \
  --enable-largefile \
  --enable-conio
}
after make and make install bacula,I use default config.
then
" [EMAIL PROTECTED] bin]# ./bacula start
Starting the Bacula Storage daemon
Starting the Bacula File daemon
Starting the Bacula Director daemon
[EMAIL PROTECTED] bin]# ./bconsole
Connecting to Director 192.168.40.50:9101
04-Jul 11:56 bconsole:  Fatal error: bnet.c:775 Unable to connect to Director daemon on 192.168.40.50:9101. ERR=Connection refused"
 
Last I see the log:
"04-Jul 11:56 backup-dir: ERROR TERMINATION at bsys.c:387
Could not open pid file. /usr/local/bacula/bin/working/bacula-dir.9101.pid ERR=No such file or directory"
 
"bconsole.conf":
  Director {
  Name = backup-dir
  DIRport = 9101
  address = 192.168.40.50
  Password = "dir123"
}
 
"bacula-fd.conf"
Director {
  Name = backup-dir
  Password = "fd123"
}
Director {
  Name = backup-mon
  Password = "JJe4t8NL8XJ2aJu9392tENScOZDLIpExlQ0kEfoUZSx4"
  Monitor = yes
}
FileDaemon {                          # this is me
  Name = becky-fd
  FDport = 9102                  # where we listen for the director
  WorkingDirectory = /usr/local/bacula/working
  Pid Directory = /usr/local/bacula/bin/working
  Maximum Concurrent Jobs = 20
}
Messages {
  Name = Standard
  director = backup-dir = all, !skipped
}
 
"bacula-sd.conf"
Storage {                             # definition of myself
  Name = backup-sd
  SDPort = 9103                  # Director's port
  WorkingDirectory = "/usr/local/bacula/working"
  Pid Directory = "/usr/local/bacula/bin/working"
  Maximum Concurrent Jobs = 20
}
Director {
  Name = backup-dir
  Password = "sd123"
}
Director {
  Name = backup-mon
  Password = "FmykmAKOhT7iUvvFRzhxNr6XxenJlLdPilOYeL6WUxvI"
  Monitor = yes
}
Device {
  Name = FileStorage
  Media Type = File
  Archive Device = /tmp
  LabelMedia = yes;                   # lets Bacula label unlabeled media
  Random Access = Yes;
  AutomaticMount = yes;               # when device opened, read it
  RemovableMedia = no;
  AlwaysOpen = no;
}
Messages {
  Name = Standard
  director = backup-dir = all
}
 
"bacula-dir.conf"
Director {                            # define myself
  Name = backup-dir
  DIRport = 9101                # where we listen for UA connections
  QueryFile = "/usr/local/bacula/bin/query.sql"
  WorkingDirectory = "/usr/local/bacula/working"
  PidDirectory = "/usr/local/bacula/bin/working"
  Maximum Concurrent Jobs = 1
  Password = "dir123"         # Console password
  Messages = Daemon
}
JobDefs {
  Name = "DefaultJob"
  Type = Backup
  Level = Incremental
  Client = becky-fd
  FileSet = "Full Set"
  Schedule = "WeeklyCycle"
  Storage = backup-sd
  Messages = Standard
  Pool = Default
  Priority = 10
}
Job {
  Name = "Client1"
  JobDefs = "DefaultJob"
  Write Bootstrap = "/usr/local/bacula/working/Client1.bsr"
}
Job {
  Name = "BackupCatalog"
  JobDefs = "DefaultJob"
  Level = Full
  FileSet="Catalog"
  Schedule = "WeeklyCycleAfterBackup"
  RunBeforeJob = "/usr/local/bacula/bin/make_catalog_backup bacula bacula"
  RunAfterJob  = "/usr/local/bacula/bin/delete_catalog_backup"
  Write Bootstrap = "/usr/local/bacula/working/BackupCatalog.bsr"
  Priority = 11                   # run after main backup
}
Job {
  Name = "RestoreFiles"
  Type = Restore
  Client=becky-fd
  FileSet="Full Set"
  Storage = backup-sd
  Pool = Default
  Messages = Standard
  Where = /tmp/bacula-restores
}
FileSet {
  Name = "Full Set"
  Include {
    Options {
      signature = MD5
    }
    File = /usr/local/bacula/bacula-1.36.3
  }
  Exclude {
    File = /proc
    File = /tmp
    File = /.journal
    File = /.fsck
  }
}
Schedule {
  Name = "WeeklyCycle"
  Run = Full 1st sun at 1:05
  Run = Differential 2nd-5th sun at 1:05
  Run = Incremental mon-sat at 1:05
}
Schedule {
  Name = "WeeklyCycleAfterBackup"
  Run = Full sun-sat at 1:10
}
FileSet {
  Name = "Catalog"
  Include {
    Options {
      signature = MD5
    }
    File = /usr/local/bacula/working/bacula.sql
  }
}
Client {
  Name = becky-fd
  Address = 192.168.18.142
  FDPort = 9102
  Catalog = MyCatalog
  Password = "fd123"          # password for FileDaemon
  File Retention = 30 days            # 30 days
  Job Retention = 6 months            # six months
  AutoPrune = yes                     # Prune expired Jobs/Files
}
Storage {
  Name = backup-sd
  Address =192.168.40.50                # N.B. Use a fully qualified name here
  SDPort = 9103
  Password = "sd123"
  Device = FileStorage
  Media Type = File
}
Catalog {
  Name = MyCatalog
  dbname = bacula; user = bacula; password = ""
}
Messages {
  Name = Standard
  mailcommand = "/usr/local/bacula/bin/bsmtp -h localhost -f \"\(Bacula\) %r\" -s \"Bacula: %t %e of %c %l\" %r"
  operatorcommand = "/usr/local/bacula/bin/bsmtp -h localhost -f \"\(Bacula\) %r\" -s \"Bacula: Intervention needed for %j\" %r"
  mail = [EMAIL PROTECTED] = all, !skipped
  operator = [EMAIL PROTECTED] = mount
  console = all, !skipped, !saved
  append = "/usr/local/bacula/working/log" = all, !skipped
}
Messages {
  Name = Daemon
  mailcommand = "/usr/local/bacula/bin/bsmtp -h localhost -f \"\(Bacula\) %r\" -s \"Bacula daemon message\" %r"
  mail = [EMAIL PROTECTED] = all, !skipped
  console = all, !skipped, !saved
  append = "/usr/local/bacula/working/log" = all, !skipped
}
Pool {
  Name = Default
  Pool Type = Backup
  Recycle = yes                       # Bacula can automatically recycle Volumes
  AutoPrune = yes                     # Prune expired volumes
  Volume Retention = 365 days         # one year
  Accept Any Volume = yes             # write on any volume in the pool
}
Console {
  Name = backup-mon
  Password = "mEjl0KZyKgYhJGn9k8aIju6p4rk8QOeV7yeM+BqIp8eU"
  CommandACL = status, .status
}
 
client--"bacula-fd.conf"
Director {
  Name = backup-dir
  Password = "fd123"
}
FileDaemon {                          # this is me
  Name = becky-fd
  FDport = 9102                  # where we listen for the director
  WorkingDirectory = /bacula/working
  Pid Directory = /bacula/working
}
Messages {
  Name = Standard
  director = backup-dir = all, !skipped
}
 

This is my first time use bacula,and this problem have puzzled me several days.
 Any comments/advice would be appreciated.
 
 thanks

Reply via email to