On Monday, December 12, 2016 at 1:33:21 PM UTC+1, Bruno Friedmann wrote:
> On lundi, 12 décembre 2016 01.02:00 h CET Daniel wrote:
> > /var/lib/bareos/storage/arbeitsplatz/daniel/Incremental-0027, ERR=Datei oder
> > Verzeichnis nicht gefunden
>
> You have to find what cause bareos-sd (limited user right) the deny access
> and finally why it become available
>
> (perhaps you will have to check and set on audit)
> As you are running ubuntu, check also if you don't have an apparmor profile
> blocking those action.
>
>
> --
>
> Bruno Friedmann
> Ioda-Net Sàrl www.ioda-net.ch
> Bareos Partner, openSUSE Member, fsfe fellowship
> GPG KEY : D5C9B751C4653227
> irc: tigerfoot
>
> openSUSE Tumbleweed
> Linux 4.8.13-1-default x86_64 GNU/Linux, nvidia: 375.20
> Qt: 5.7.0, KDE Frameworks: 5.28.0, Plasma: 5.8.4, kmail2 5.3.3 (QtWebEngine)
Hi,
I have bareos 15.2.3 on centos 6 and face the same errors. I basically had in
the beginning interleaved disk volumes, and no jobs were failing due to this
kind of errors.
----Phase 1:
Pool {
Name = DiskDaily
Pool Type = Backup
Recycle = yes
AutoPrune = yes
Storage = DiskStorageIncr
Maximum Volume Bytes = 10G
Maximum Volumes = 600
Next Pool = TapeDaily2
Label Format = "Incr-"
Volume Retention = 1 week
Recycle Oldest Volume = yes
Recycle Pool = ScratchIncr
}
Storage {
Name = DiskStorageIncr
# Do not use "localhost" here
Address = muc1pro-backup-1.adm.financial.com # N.B. Use a fully qualified
name here
SDPort = 9103
Password = "***"
Device = DiskDeviceIncr1
Media Type = FileIncr
Autochanger = no
Maximum Concurrent Jobs = 10
}
Device {
Name = DiskDeviceIncr1
Media Type = FileIncr
Archive Device = /data/bareos-storage/Incr
LabelMedia = yes;
Random Access = yes;
AutomaticMount = yes;
RemovableMedia = no;
AlwaysOpen = no;
Maximum Concurrent Jobs = 10
}
I than moved to 1 job/volume setup, with 5 different devices defined in the sd
pointing to the same folder on the disk, and added these devices in the storage
definition in director.
----Phase 2:
Pool {
Name = DiskDaily
Pool Type = Backup
Recycle = yes
AutoPrune = yes
Storage = DiskStorageIncr
Maximum Volume Bytes = 10G
Maximum Volumes = 600
Maximum Volume Jobs = 1
Next Pool = TapeDaily2
Label Format = "Incr-"
Volume Retention = 1 week
Recycle Oldest Volume = yes
Recycle Pool = ScratchIncr
}
Storage {
Name = DiskStorageIncr
# Do not use "localhost" here
Address = muc1pro-backup-1.adm.financial.com # N.B. Use a fully qualified
name here
SDPort = 9103
Password = "***"
Device = DiskDeviceIncr1
Device = DiskDeviceIncr2
Device = DiskDeviceIncr3
Device = DiskDeviceIncr4
Device = DiskDeviceIncr5
Media Type = FileIncr
Autochanger = no
Maximum Concurrent Jobs = 5
}
Device {
Name = DiskDeviceIncr1
Media Type = FileIncr
Archive Device = /data/bareos-storage/Incr
LabelMedia = yes;
Random Access = yes;
AutomaticMount = yes;
RemovableMedia = no;
AlwaysOpen = no;
Maximum Concurrent Jobs = 1
}
Device {
Name = DiskDeviceIncr2
Media Type = FileIncr
Archive Device = /data/bareos-storage/Incr
LabelMedia = yes;
Random Access = yes;
AutomaticMount = yes;
RemovableMedia = no;
AlwaysOpen = no;
Maximum Concurrent Jobs = 1
}
Device {
Name = DiskDeviceIncr3
Media Type = FileIncr
Archive Device = /data/bareos-storage/Incr
LabelMedia = yes;
Random Access = yes;
AutomaticMount = yes;
RemovableMedia = no;
AlwaysOpen = no;
Maximum Concurrent Jobs = 1
}
Device {
Name = DiskDeviceIncr4
Media Type = FileIncr
Archive Device = /data/bareos-storage/Incr
LabelMedia = yes;
Random Access = yes;
AutomaticMount = yes;
RemovableMedia = no;
AlwaysOpen = no;
Maximum Concurrent Jobs = 1
}
Device {
Name = DiskDeviceIncr5
Media Type = FileIncr
Archive Device = /data/bareos-storage/Incr
LabelMedia = yes;
Random Access = yes;
AutomaticMount = yes;
RemovableMedia = no;
AlwaysOpen = no;
Maximum Concurrent Jobs = 1
}
At this point there were no failing jobs. Than I added Scratch Pool:
----Phase 3:
Pool {
Name = DiskDaily
Pool Type = Backup
Recycle = yes
AutoPrune = yes
Storage = DiskStorageIncr
Maximum Volume Bytes = 10G
Maximum Volumes = 600
Maximum Volume Jobs = 1
Next Pool = TapeDaily2
Label Format = "Incr-"
Volume Retention = 1 week
Recycle Oldest Volume = yes
Recycle Pool = ScratchIncr
Scratch Pool = ScratchIncr
}
And 30+ out of 43 jobs were failing, randomly, not always the same.
I was thinking that the scratch pool causes the problems. Went ahead and
removed scratch pool , reload, update pool and surprize, in the catalog the
scratchpoolid in the Pool table is still pointing to the ScratchIncr.
----Phase 4:
I removed both recycle pool and scratch pool , reload, update pool and now both
the recyclepoolid and scratchpoolid are null in the catalog, and got only one
job failed without recycle pool and scratch pool.
So in my case it is definitely related to multiple devices in storage
definition, but I'm not sure how is it related to recycle/scratch pool, because
I still got 1 failing job, althogh is an improvement from 30+, but cannot say
it solved my issue.
13-Dec 00:30 muc1pro-backup-1-sd JobId 7662: User defined maximum volume
capacity 10,737,418,240 exceeded on device "DiskDeviceIncr5"
(/data/bareos-storage/Incr).
13-Dec 00:30 muc1pro-backup-1-sd JobId 7662: End of medium on Volume
"Incr-3838" Bytes=10,737,377,479 Blocks=166,440 at 13-Dec-2016 00:30.
13-Dec 00:30 muc1pro-backup-1-sd JobId 7662: Warning: mount.c:247 Open device
"DiskDeviceIncr5" (/data/bareos-storage/Incr) Volume "" failed: ERR=Could not
open file device "DiskDeviceIncr5" (/data/bareos-storage/Incr). No Volume name
given.
13-Dec 00:30 muc1pro-backup-1-sd JobId 7662: Warning: mount.c:247 Open device
"DiskDeviceIncr5" (/data/bareos-storage/Incr) Volume "" failed: ERR=Could not
open file device "DiskDeviceIncr5" (/data/bareos-storage/Incr). No Volume name
given.
13-Dec 00:30 muc1pro-backup-1-sd JobId 7662: Warning: mount.c:247 Open device
"DiskDeviceIncr5" (/data/bareos-storage/Incr) Volume "" failed: ERR=Could not
open file device "DiskDeviceIncr5" (/data/bareos-storage/Incr). No Volume name
given.
13-Dec 00:30 muc1pro-backup-1-sd JobId 7662: Warning: mount.c:247 Open device
"DiskDeviceIncr5" (/data/bareos-storage/Incr) Volume "" failed: ERR=Could not
open file device "DiskDeviceIncr5" (/data/bareos-storage/Incr). No Volume name
given.
13-Dec 00:30 muc1pro-backup-1-sd JobId 7662: Warning: mount.c:247 Open device
"DiskDeviceIncr5" (/data/bareos-storage/Incr) Volume "" failed: ERR=Could not
open file device "DiskDeviceIncr5" (/data/bareos-storage/Incr). No Volume name
given.
13-Dec 00:30 muc1pro-backup-1-sd JobId 7662: Fatal error: Too many errors
trying to mount device "DiskDeviceIncr5" (/data/bareos-storage/Incr).
13-Dec 00:30 dg1nc0505 JobId 7662: Error: bsock_tcp.c:422 Write error sending
65536 bytes to client:192.168.210.39:9102: ERR=Broken pipe
If I go back to the interleaved job setup, everything goes well again.
I will give it another chance this night with the same config from Phase 4,
let's see what happens.
I have also enabled debug in the director and storage daemon.
So basically if Recycle pool is configured in the pool it does automatically
add scratch pool? I don't find anything in the docu related to this...
Thanks
Robert
--
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.