LINUX.ORG.RU

Bareos, не стартует директор

 ,


0

1

Не работает директор. При соединении через bconsole выдаёт

Nov 23 09:43:13 mail bconsole: bsock_tcp.c:134 Unable to connect to Director daemon on mail:9101. ERR=В соединении отказано
Вот сам конфиг:
 cat /etc/bareos/bareos-dir.conf

Director {
  Name                                          = mail-dir
  QueryFile                                     = "/usr/lib/bareos/scripts/query.sql"
  Maximum Concurrent Jobs                       = 10
  Password                                      = "4YQS+sQTDdsfdsf3UJHGHJGSa1uhj2u3jhgHJKHAJKSHDJHQWJKEHQWlWiZ3/kNA93aWDL+Ve4"
  Messages                                      = Daemon
  Auditing                                      = yes
}

JobDefs {
  Name                  = "DefaultJob"
  Type                  = Backup
  Level                 = Incremental
  Client                = mail-fd
  FileSet               = "Full Set"
  Schedule              = "WeeklyCycle"
  Storage               = File
  Messages              = Standard
  Pool                  = Incremental
  Priority              = 10
  Write Bootstrap                       = "/var/lib/bareos/%c.bsr"
  Full Backup Pool                      = Full                          # write Full Backups into "Full" Pool
  Differential Backup Pool              = Differential                          # write Diff Backups into "Differential" Pool
  Incremental Backup Pool               = Incremental                           # write Incr Backups into "Incremental" Pool
}

Job {
  Name          = "RestoreFiles"
  Type          = Restore
  Client        = mail-fd
  FileSet       = "Full Set"
  Storage       = File
  Pool          = Incremental
  Messages      = Standard
  Where         = /tmp/bareos-restores
}


FileSet {
  Name = "Full Set"
  Include {
    Options {
                Signature = MD5 # calculate md5 checksum per file
                One FS = No     # change into other filessytems
                FS Type = ext2  # filesystems of given types will be backed up
                FS Type = ext3  # others will be ignored
                FS Type = ext4
                FS Type = xfs
                FS Type = reiserfs
                FS Type = jfs
                FS Type = btrfs
    }
    File = /
  }

  Exclude {
        File = /misc
        File = /mnt
        File = /media
        File = /lib64
        File = /lib/
        File = /boot
        File = /proc
        File = /sys
        File = /dev
		File = /tmp
		File = /.journal
		File = /.fsck
  }
}

Schedule {
  Name  = "WeeklyCycle"
  Run   = Full Daily at 03:00
  Run   = Incremental hourly
}

Client {
  Name                          = mail-fd
  Address                       = 172.20.0.218
  Password                      = "hFpg8UxDdBJHSKAHDUIY@&!YHUJHGSASDQWYETb7n"          # password for FileDaemon
  File Retention        = 30 days            # 30 days
  Job Retention         = 2 months           # six months
  AutoPrune             = yes                # Prune expired Jobs/Files
}


Storage {
  Name                  = File
  Address               = 172.20.0.217
  Password              = "pDEFfaZLCg71NNh65FU1F3MQVCqHBmSDo1onzxbgG1f/"
  Device                = FileStorage
  Media Type            = File
}



Messages {
  Name = Standard
  mailcommand = "/usr/bin/bsmtp -h localhost -f \"\(Bareos\) \<%r\>\" -s \"Bareos: %t %e of %c %l\" %r"
  operatorcommand = "/usr/bin/bsmtp -h localhost -f \"\(Bareos\) \<%r\>\" -s \"Bareos: Intervention needed for %j\" %r"
  mail = root@localhost = all, !skipped, !audit # (#02)
  operator = root@localhost = mount     # (#03)
  console = all, !skipped, !saved, !audit
  append = "/var/log/bareos/bareos.log" = all, !skipped, !audit
  catalog = all, !audit
}

#
# Message delivery for daemon messages (no job).
#
Messages {
  Name = Daemon
  mailcommand = "/usr/bin/bsmtp -h localhost -f \"\(Bareos\) \<%r\>\" -s \"Bareos daemon message\" %r"
  mail = root@localhost = all, !skipped, !audit # (#02)
  console = all, !skipped, !saved, !audit
  append = "/var/log/bareos/bareos.log" = all, !skipped, !audit
  append = "/var/log/bareos/bareos-audit.log" = audit
}

#
# Full Pool definition
#
Pool {
  Name                          = Full
  Pool Type             = Backup
  Recycle                       = yes                       # Bareos can automatically recycle Volumes
  AutoPrune             = yes                     # Prune expired volumes
  Volume Retention      = 30 days         # How long should the Full Backups be kept? (#06)
  Maximum Volume Bytes = 30G          # Limit Volume size to something reasonable
  Maximum Volumes = 20               # Limit number of Volumes in Pool
  Label Format = "Full-"              # Volumes will be labeled "Full-<volume-id>"
}

Pool {
  Name = Differential
  Pool Type = Backup
  Recycle = yes                       # Bareos can automatically recycle Volumes
  AutoPrune = yes                     # Prune expired volumes
  Volume Retention = 90 days          # How long should the Differential Backups be kept? (#09)
  Maximum Volume Bytes = 10G          # Limit Volume size to something reasonable
  Maximum Volumes = 100               # Limit number of Volumes in Pool
  Label Format = "Differential-"      # Volumes will be labeled "Differential-<volume-id>"
}

Pool {
  Name                  = Incremental
  Pool Type     = Backup
  Recycle               = yes                       # Bareos can automatically recycle Volumes
  AutoPrune     = yes                     # Prune expired volumes
  Volume Retention = 30 days          # How long should the Incremental Backups be kept?  (#12)
  Maximum Volume Bytes = 30G           # Limit Volume size to something reasonable
  Maximum Volumes = 10               # Limit number of Volumes in Pool
  Label Format = "Incremental-"       # Volumes will be labeled "Incremental-<volume-id>"
}

Pool {
  Name = Scratch
  Pool Type = Backup
}

Console {
  Name = mail-mon
  Password = "IluKJASKLDJI@!U#!(*UHHKSKAJDHAWQE*WQ&E*(YSADHJKQWHRJV5lr"
  CommandACL = status, .status
  JobACL = *all*
}


Смотреть логи директора и/или логи инита.

mironov_ivan ★★★★★ ()
Последнее исправление: mironov_ivan (всего исправлений: 1)
Ответ на: комментарий от mironov_ivan

пишеть вот

[root@mail /]# bareos-dir -d 04
[root@mail /]# BAREOS interrupted by signal 11: Segmentation violation
Kaboom! bareos-dir, mail-dir got signal 11 - Segmentation violation. Attempting traceback.
Kaboom! exepath=/
Calling: /btraceback /bareos-dir 6259 /var/lib/bareos
execv: /btraceback failed: ERR=Нет такого файла или каталога

tenhi ()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.