bareos-fd: exclude /proc/kcore from chroot

21 views
Skip to first unread message

Roland Rosenfeld

unread,
Jul 5, 2023, 11:57:34 AM7/5/23
to bareos-users
Hi,

I run into the following problem:
On one server I have a chroot, where /proc is mounted into.
This results in /chroot/proc/kcore (which is a virtual file, that's 128TB big).

If I start bareos-fd now on this server, it consumes 100% CPU for days and looking into /proc/<bareos-fd PID>/fd shows me, that it seams to read the file /chroot/proc/kcore all the time.

I was able to exclude /chroot/proc from the backup by adding
  Exclude {
    File = /chroot/proc
  }
to the bareos-dir fileset configuration and the resulting backup doesn't include /chroot/proc/kcore, but how do I tell bareos-fd not to inspect this file?

At least it doesn't inspect /proc/kcore, so there seems some default configuration that excludes /proc and the like, but how do I tell it to also exclude /chroot/proc?

Greetings
Roland

Bruno Friedmann

unread,
Jul 6, 2023, 10:00:32 AM7/6/23
to bareos-users
Maybe you want to consider using FSType = xxx so bareos-fd will concentrate only on real FS
or also check if OneFS = Yes wouldn't be a solution in your case, both can be mixed of course.
Reply all
Reply to author
Forward
0 new messages