Hi there,
I'm trying to get the Always Incremental Backup scheme running - but it
fails at the VirtualFull consolidation. For whatever reason, Bareos thinks
a consolidate volume is stored on the wrong device and hangs indefinetely
with the followgin warning message:
*ZH-lin10-sd JobId 2005: Warning: stored/acquire.cc:276 Read open device
> "ZH-lin10-HD-USB0-device" (/media/usb0) Volume "LTA-Consolidated-0069"
> failed: ERR=stored/dev.cc:731 Could not open:
> /media/usb0/LTA-Consolidated-0069, ERR=No such file or directory*
>
The missing volume (LTA-Consolidated-0069) does exist - but on the other
device (ZH-lin10-HD-USB1-device). And the regular Incremental Backups run
just fine. I don't have any clue what's wrong - and highly appreciate any
pointers.
More details to the current configuration: I do have two devices attached
to one storage daemon:
*/etc/bareos/bareos-sd.d/device*
Device {
Name = ZH-lin10-HD-USB0-device
Maximum Concurrent Jobs = 5
Device Type = File
Media Type = File
Label Media = yes
Random Access = yes
Automatic Mount = yes
Removable Media = yes
Requires Mount = yes
Always Open = no
Archive Device = "/media/usb0"
Mount Point = "/media/usb0"
Mount Command = "/bin/mount /dev/sdc1"
Unmount Command = "fusermount -u %m"
}
Device {
Name = ZH-lin10-HD-USB1-device
Maximum Concurrent Jobs = 5
Device Type = File
Media Type = File
Label Media = yes
Random Access = yes
Automatic Mount = yes
Removable Media = yes
Requires Mount = yes
Always Open = no
Archive Device = "/media/usb1"
Mount Point = "/media/usb1"
Mount Command = "/bin/mount /dev/sdd1"
Unmount Command = "fusermount -u %m"
}
According to this thread <https://bugs.bareos.org/view.php?id=740>, the
storage needs configured with "Device Reserve By Media Type = yes" (don't
know what this exactly does, not found any further documentation of it):
*/etc/bareos/bareos-sd.d/storage*
Storage {
Name = ZH-lin10-sd
Maximum Concurrent Jobs = 20
# https://bugs.bareos.org/view.php?id=740
Device Reserve By Media Type = yes
}
And the jobs involved are defined as follows:
*/etc/bareos/bareos-dir.d/jobdefs*
JobDefs {
Name = LinuxServerLTA-Incremental-jd
Type = Backup
#
# IMPORTANT: Accurate = "no" is on purpose!
# This disables the detection of deleted files,
# which in turn keeps them in the consolidated
# backup jobs.
#
Accurate = no
# Enable Always Incremental Backup Scheme
Always Incremental = yes
# Sets the age where incrementals of this job
# will be kept, older jobs will be consolidated.
Always Incremental Job Retention = 7 days
Pool = ZH-lin10-LTA-Incremental-pool
Full Backup Pool = ZH-lin10-LTA-Consolidated-pool
# The time specifies the maximum allowed time that a Full backup job may
run.
# counted from when the job starts in seconds (not necessarily the same
as when the
# job was scheduled).
# set to half a day
Full Max Runtime = 43000
FileSet = LinuxServerLTA-fs
Client = ZH-lin10-fd
Storage = ZH-lin10-sd
Schedule = WeeklyCycle-LinuxServerLTA-sched
Messages = Standard
Priority = 10
Spool Attributes = yes
Write Bootstrap = "/var/lib/bareos/%c.bsr"
}
JobDefs {
Name = LinuxServerLTA-Consolidate-jd
Type = Consolidate
#
# IMPORTANT: Accurate = "no" is on purpose!
# This disables the detection of deleted files,
# which in turn keeps them in the consolidated
# backup jobs.
#
Accurate = no
#Pool = ZH-lin10-LTA-Incremental-pool
Pool = ZH-lin10-LTA-Consolidated-pool
# The time specifies the maximum allowed time that a Full backup job may
run.
# counted from when the job starts in seconds (not necessarily the same
as when the
# job was scheduled).
# set to half a day
Full Max Runtime = 43000
FileSet = LinuxServerLTA-fs
Client = ZH-lin10-fd
Storage = ZH-lin10-sd
Schedule = WeeklyCycle-LinuxServerLTA-sched
Messages = Standard
Priority = 10
}
*/etc/bareos/bareos-dir.d/job*
Job {
Name = ZH-LTA-Consolidate-job
JobDefs = LinuxServerLTA-Consolidate-jd
}
Job {
Name = ZH-LTA-Incremental-lin132-job
JobDefs = LinuxServerLTA-Incremental-jd
Client = ZH-lin132-fd
}
--
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 view this discussion on the web visit
https://groups.google.com/d/msgid/bareos-users/8068e312-95ea-4dbd-91b4-59088fed67af%40googlegroups.com.