Hi,
On 20.08.2014 10:30, Marco van Wieringen wrote:
I think your problem is somewhat earlier already. The 3999 error only
gets issues when the SD has no idea about the device you are talking
about so I guess there is some problem in how things are named in the
SD config and how things are named in the DIR config. So care to show
the storage config in both SD and DIR config ? Maybe its something
obvious there.
have attached both configfiles, i can't see an discrepancy in naming
Just cleaned up the passwords out.
Adam
--
Adam Podstawka
Informatician - Bioinformatics
Leibniz Institute DSMZ-German Collection of Microorganisms and Cell Cultures
--
You received this message because you are subscribed to the Google Groups
"bareos-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/d/optout.
#### Bareos-dir.conf
Director { # define myself
Name = gimli-dir
QueryFile = "/opt/bareos/etc/query.sql"
Maximum Concurrent Jobs = 20
Password = "" # Console password
Messages = Daemon
# remove comment in next line to load plugins from specified directory
Plugin Directory = /opt/bareos/lib
# compatible = no
}
JobDefs {
Name = "DefaultJob"
Type = Backup
Level = Incremental
Client = thering-fd
#FileSet = "Full Set"
Schedule = "WeeklyCycle"
Storage = GALADRIEL
Messages = Standard
Pool = DefaultPool
Differential Backup Pool = DifferentialPool
Incremental Backup Pool = IncrementalPool
Full Backup Pool = FullPool
Priority = 10
Write Bootstrap = "/opt/bareos/var/bareos/working/%c.bsr"
## Duplicates
Allow Duplicate Jobs = no
Cancel Lower Level Duplicates = yes
Cancel Queued Duplicates = yes
## wenn sie rennen auch abbrechen
Cancel Running Duplicates = yes
}
JobDefs {
Name = "DefaultJobGIMLI"
Type = Backup
Level = Incremental
Client = gimli-fd
#FileSet = "Full Set"
Schedule = "WeeklyCycle"
Storage = GALADRIEL
Messages = Standard
Pool = DefaultPool
Differential Backup Pool = DifferentialPool
Incremental Backup Pool = IncrementalPool
Full Backup Pool = FullPool
Priority = 10
Write Bootstrap = "/opt/bareos/var/bareos/working/%c.bsr"
## Duplicates
Allow Duplicate Jobs = no
Cancel Lower Level Duplicates = yes
Cancel Queued Duplicates = yes
## wenn sie rennen auch abbrechen
Cancel Running Duplicates = yes
}
#
# Define the main nightly save backup job
# By default, this job will back up to disk in /var/lib/bareos/storage
Job {
Name = "thering-_mnt_work"
JobDefs = "DefaultJob"
FileSet = "_mnt_work"
Prefer Mounted Volumes = no
SpoolData = yes
}
Job {
Name = "thering-_mnt_work_home"
JobDefs = "DefaultJob"
FileSet = "_mnt_work_home"
Prefer Mounted Volumes = no
SpoolData = yes
}
Job {
Name = "thering-_mnt_archive_TimeMachine"
JobDefs = "DefaultJob"
FileSet = "_mnt_archive_TimeMachine"
Prefer Mounted Volumes = no
SpoolData = yes
}
Job {
Name = "thering-_mnt_archive"
JobDefs = "DefaultJob"
FileSet = "_mnt_archive"
Prefer Mounted Volumes = no
SpoolData = yes
}
Job {
Name = "thering-_mnt_work_smrt"
JobDefs = "DefaultJob"
FileSet = "_mnt_work_smrt"
Prefer Mounted Volumes = no
SpoolData = yes
}
# Backup the catalog database (after the nightly save)
Job {
Name = "BackupCatalog"
JobDefs = "DefaultJobGIMLI" ## Set to GIMLI
Pool = "CatalogPool"
Full Backup Pool = "CatalogPool"
Level = Full
FileSet="Catalog"
Schedule = "WeeklyCycleAfterBackup"
# This creates an ASCII copy of the catalog
# Arguments to make_catalog_backup.pl are:
# make_catalog_backup.pl <catalog-name>
RunBeforeJob = "/opt/bareos/etc/make_catalog_backup.pl MyCatalog"
# This deletes the copy of the catalog
RunAfterJob = "/opt/bareos/etc/delete_catalog_backup"
# This sends the bootstrap via mail for disaster recovery.
# Should be sent to another system, please change recipient accordingly
Write Bootstrap = "|/opt/bareos/sbin/bsmtp -h localhost -f \"\(Bareos\)
\<[email protected]\>\" -s \"Bareos: Bootstrap for Job %j\" xxx,xx"
Priority = 11 # run after main backup
}
#
# Standard Restore template, to be changed by Console program
# Only one such job is needed for all Jobs/Clients/Storage ...
#
Job {
Name = "RestoreFiles"
Type = Restore
Client=thering-fd
FileSet="Full Set"
Storage = GALADRIEL
Pool = Default
Messages = Standard
Where = /tmp/bareos-restores
}
# List of files to be backed up
FileSet {
Name = "Full Set"
Include {
Options {
signature = MD5
# compression=LZ4HC
}
File = /usr/sbin
}
#
# If you backup the root directory, the following two excluded
# files can be useful
#
Exclude {
file = /opt/bareos/var/bareos/working
file = /opt/bareos/var/bareos/logs
File = /var/lib/bareos
File = /var/lib/bareos/storage
File = /proc
File = /tmp
File = /.journal
File = /.fsck
}
}
FileSet {
Name = "_mnt_work"
Include {
Options {
signature = MD5
#compression=LZ4HC
onefs=yes
}
File = /mnt/work
}
Exclude {
File = /mnt/work/smrt
File = /mnt/work/home/
File = /mnt/work/cluster/home
}
}
FileSet {
Name = "_mnt_work_home"
Include {
Options {
signature = MD5
#compression=LZ4HC
onefs=yes
}
File = /mnt/work/home/
}
}
FileSet {
Name = "_mnt_work_smrt"
Include {
Options {
signature = MD5
#compression=LZ4HC
onefs=yes
}
File = /mnt/work/smrt
}
}
FileSet {
Name = "_mnt_archive_TimeMachine"
Include {
Options {
signature = MD5
#compression=LZ4HC
onefs=yes
}
File = /mnt/archive/TimeMachines
}
}
FileSet {
Name = "_mnt_archive"
Include {
Options {
signature = MD5
#compression=LZ4HC
onefs=yes
}
File = /mnt/archive
}
Exclude {
File = /mnt/archive/TimeMachines
File = /mnt/archive/Storage/userdata/jobs
}
}
FileSet {
Name = "Systemfiles"
Include {
Options {
signature = SHA1
}
File = /etc
#File =
}
}
#
# When to do the backups, full backup on first sunday of the month,
# differential (i.e. incremental since full) every other sunday,
# and incremental backups other days
Schedule {
Name = "WeeklyCycle"
Run = Full 1st Fri at 21:00
Run = Differential 2nd-5th Fri at 21:00
Run = Incremental mon-sat at 21:00
}
# This schedule does the catalog. It starts after the WeeklyCycle
Schedule {
Name = "WeeklyCycleAfterBackup"
Run = Full sun-sat at 23:10
}
# This is the backup of the catalog
FileSet {
Name = "Catalog"
Include {
Options {
signature = SHA1
#compression=LZ4HC
}
File = "/opt/bareos/var/bareos/working/bareos.sql" # database dump
File = "/opt/bareos/etc" # configuration
}
}
FileSet {
Name = "SystemFilesGIMLI"
Include {
Options {
signature = SHA1
#compression=LZ4HC
}
File = "/etc"
File = "/usr/local/etc"
File = "/opt/bareos/etc"
}
Exclude {
File = "/opt/bareos/var/bareos/working"
File = "/opt/bareos/var/bareos/logs"
}
}
# Client (File Services) to backup
Client {
Name = thering-fd
Address = thering
Password = "" # password for FileDaemon
File Retention = 30 days # 30 days
Job Retention = 6 months # six months
AutoPrune = no # Prune expired Jobs/Files
Maximum Concurrent Jobs = 20
}
#### GIMLI
Client {
Name = gimli-fd
Address = gimli
Password = "" # password for FileDaemon
File Retention = 30 days # 30 days
Job Retention = 6 months # six months
AutoPrune = no # Prune expired Jobs/Files
Maximum Concurrent Jobs = 20
}
Storage {
Name = GALADRIEL
# Do not use "localhost" here
Address = gimli # N.B. Use a fully qualified name here
Password = "" # password for Storage daemon
Device = /dev/pass16 # must be same as Device in Storage
daemon
Media Type = LTO-6 # must be same as MediaType in Storage
daemon
Autochanger = yes # enable for autochanger device
Maximum Concurrent Jobs = 20
}
# Generic catalog service
Catalog {
Name = MyCatalog
dbdriver = "mysql"
dbaddress = xxx
dbname = "xxx"
dbuser = "xxx"
dbpassword = "xxx"
}
# Reasonable message delivery -- send most everything to email address
# and to the console
Messages {
Name = Standard
#
# NOTE! If you send to two email or more email addresses, you will need
# to replace the %r in the from field (-f part) with a single valid
# email address in both the mailcommand and the operatorcommand.
# What this does is, it sets the email address that emails would display
# in the FROM field, which is by default the same email as they're being
# sent to. However, if you send email to more than one address, then
# you'll have to set the FROM address manually, to a single address.
# for example, a '[email protected]', is better since that tends to
# tell (most) people that its coming from an automated source.
#
#mailcommand = "/opt/bareos/sbin/bsmtp -h x -f \"\(Bareos\)
\<[email protected]\>\" -s \"Bareos: %t %e of %c %j %l\" %r"
mailcommand = "/opt/bareos/sbin/bsmtp -h x -f \"\(Bareos\)
\<[email protected]\>\" -s \"Bareos: %t %e of %j %l\" %r"
operatorcommand = "/opt/bareos/sbin/bsmtp -h x -f \"\(Bareos\)
\<[email protected]\>\" -s \"Bareos: Intervention needed for %j\" %r"
mail = xx,xxx = all, !skipped
operator = xxx,xx = mount
console = all, !skipped, !saved
append = "/opt/bareos/var/bareos/logs/bareos.log" = all, !skipped
catalog = all
}
# Message delivery for daemon messages (no job).
Messages {
Name = Daemon
mailcommand = "/opt/bareos/sbin/bsmtp -h x -f \"\(Bareos\)
\<[email protected]\>\" -s \"Bareos: Daemon message\" %r"
mail = [email protected] = all, !skipped
console = all, !skipped, !saved
append = "/opt/bareos/var/bareos/logs/bareos.log" = all, !skipped
}
# Default pool definition
Pool {
Name = Default
Pool Type = Backup
Recycle = yes # Bareos can automatically recycle Volumes
AutoPrune = yes # Prune expired volumes
Volume Retention = 365 days # one year
}
# Scratch pool definition
Pool {
Name = Scratch
Pool Type = Backup
}
Pool {
Name = DefaultPool
Pool Type = Backup
Recycle = yes
AutoPrune = yes
Volume Retention = 730 days ## two years
}
Pool {
Name = FullPool
Pool Type = Backup
Recycle = yes
AutoPrune = yes
Volume Retention = 90 days
# Level = Full
}
Pool {
Name = IncrementalPool
Pool Type = Backup
Recycle = yes
AutoPrune = yes
Volume Retention = 30 days
# Level = Incremental
}
Pool {
Name = DifferentialPool
Pool Type = Backup
Recycle = yes
AutoPrune = yes
Volume Retention = 60 days
# Level = Differential
}
Pool {
Name = CatalogPool
Pool Type = Backup
Recycle = yes
AutoPrune = yes
Volume Retention = 120 days
# Volume Use Duration = 120 days
}
Pool {
Name = WORMPool
Pool Type = Backup # Archive
Recycle = no
AutoPrune = no
Volume Retention = 3650 days # 10 years
}
Pool {
Name = "CleaningPool"
Pool Type=Backup
Cleaning Prefix = "CLN"
}
#
# Restricted console used by tray-monitor to get the status of the director
#
Console {
Name = gimli-mon
Password = ""
CommandACL = status, .status
}
### bareos-sd.conf
Storage { # definition of myself
Name = gimli-sd
Maximum Concurrent Jobs = 20
# remove comment in next line to load plugins from specified directory
Plugin Directory = /opt/bareos/lib
compatible = no
}
#
# List Directors who are permitted to contact Storage daemon
#
Director {
Name = gimli-dir
Password = ""
}
#
# Restricted Director, used by tray-monitor to get the
# status of the storage daemon
#
Director {
Name = gimli-mon
Password = ""
Monitor = yes
}
### Galadriel TapeLibrary
Autochanger {
Name = "GALADRIEL"
Description = "IBM Tapelibrary TS3584"
Device = "Drive-1"
Device = "Drive-2"
Device = "Drive-3"
Device = "Drive-4"
Device = "Drive-5"
#%c %o %S %a %d
Changer Command = "/opt/bareos/etc/mtx-changer %c %o %S %a %d"
Changer Device = /dev/pass16
}
Device {
Name = Drive-1 #
Drive Index = 0
Media Type = LTO-6
Archive Device = /dev/nsa11
AutomaticMount = yes; # when device opened, read it
AlwaysOpen = yes;
RemovableMedia = yes;
RandomAccess = no;
AutoChanger = yes
Minimum Block Size = 1048576
Maximum Block Size = 1048576
Maximum File Size = 1024g # 20g for LTO4, 40g for LTO5# 50gb
Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'"
# If you have smartctl, enable this, it has more info than tapeinfo
# Alert Command = "sh -c 'smartctl -H -l error %c'"
Maximum Concurrent Jobs = 20
## spooling ##
Maximum Spool Size = 2048g
Spool Directory = /Storage/gimli.dsmz.local
}
Device {
Name = Drive-2 #
Drive Index = 1
Media Type = LTO-6
Archive Device = /dev/nsa22 # /dev/nsa12 is 1. port, /dev/nsa22 is 2nd port
-> semi loadbalancing
AutomaticMount = yes; # when device opened, read it
AlwaysOpen = yes;
RemovableMedia = yes;
RandomAccess = no;
AutoChanger = yes
Minimum Block Size = 1048576
Maximum Block Size = 1048576
Maximum File Size = 1024g # 20g for LTO4, 40g for LTO5
# Enable the Alert command only if you have the mtx package loaded
Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'"
# If you have smartctl, enable this, it has more info than tapeinfo
# Alert Command = "sh -c 'smartctl -H -l error %c'"
Maximum Concurrent Jobs = 20
## spooling ##
Maximum Spool Size = 2048g
Spool Directory = /Storage/gimli.dsmz.local
}
Device {
Name = Drive-3 #
Drive Index = 2
Media Type = LTO-6
Archive Device = /dev/nsa13
AutomaticMount = yes; # when device opened, read it
AlwaysOpen = yes;
RemovableMedia = yes;
RandomAccess = no;
AutoChanger = yes
Minimum Block Size = 1048576
Maximum Block Size = 1048576
Maximum File Size = 1024g # 20g for LTO4, 40g for LTO5
# Enable the Alert command only if you have the mtx package loaded
Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'"
# If you have smartctl, enable this, it has more info than tapeinfo
# Alert Command = "sh -c 'smartctl -H -l error %c'"
Maximum Concurrent Jobs = 20
## spooling ##
Maximum Spool Size = 2048g
Spool Directory = /Storage/gimli.dsmz.local
}
Device {
Name = Drive-4 #
Drive Index = 3
Media Type = LTO-6
Archive Device = /dev/nsa24 # /dev/nsa14.. look at drive1!
AutomaticMount = yes; # when device opened, read it
AlwaysOpen = yes;
RemovableMedia = yes;
RandomAccess = no;
AutoChanger = yes
Minimum Block Size = 1048576
Maximum Block Size = 1048576
Maximum File Size = 1024g # 20g for LTO4, 40g for LTO5
# Enable the Alert command only if you have the mtx package loaded
Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'"
# If you have smartctl, enable this, it has more info than tapeinfo
# Alert Command = "sh -c 'smartctl -H -l error %c'"
Maximum Concurrent Jobs = 20
## spooling ##
Maximum Spool Size = 2048g
Spool Directory = /Storage/gimli.dsmz.local
}
Device {
Name = Drive-5 #
Drive Index = 4
Media Type = LTO-6
Archive Device = /dev/nsa25 # /dev/nsa15.. look at drive1!
AutomaticMount = yes; # when device opened, read it
AlwaysOpen = yes;
RemovableMedia = yes;
RandomAccess = no;
AutoChanger = yes
Minimum Block Size = 1048576
Maximum Block Size = 1048576
Maximum File Size = 1024g # 20g for LTO4, 40g for LTO5
# Enable the Alert command only if you have the mtx package loaded
Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'"
# If you have smartctl, enable this, it has more info than tapeinfo
# Alert Command = "sh -c 'smartctl -H -l error %c'"
Maximum Concurrent Jobs = 20
## spooling ##
Maximum Spool Size = 2048g
Spool Directory = /Storage/gimli.dsmz.local
}
Messages {
Name = Standard
director = gimli-dir = all
}