SearchFAQMemberlist Log in
Reply to topic Page 1 of 1
fstype=bind being ignored
Author Message
Post fstype=bind being ignored 
* Am Thu, Jan 20 2011 at 11:21:30 +0000 , schrieb Martin Simmons:
On Wed, 19 Jan 2011 15:48:13 +0100, Frank Altpeter said:

After a short discussion on the channel, I was advised to create a
post here to see if there's help for that or if it's really a bug.

I've got a machine that is using bind mounts. Despite the fact that
the fileset definition is using "onefs=no" and "fstype=ext3", the bind
mounts' content is saved which results in multiple saves of the same
content.

I know I could simply add the relevant mount points on the exclude
list in the fileset, but I think it would make sense if this is
considered like other fstype configurations as well, since I don't
like to manually tweak the fileset on every possible change of the
bind mounts, and to keep the default fileset simple and generic.

I've put some addional information on http://racoon.pastebin.com/r44RTxyP

The bacula-fd has version 2.4.4 on opensuse 11.1 and the server is
running 5.0.3, on SLES 11.1


Any hints appreciated.

Bacula implements onefs by looking for changes in the stat.st_dev (Device)
field and implements fstype by calling statfs. Unfortunately, both of these
return the values associated with the target directory for bind mounts, so the
mount point looks like a normal directory to Bacula.

You can see that by comparing the output printed by for / and /backup:

stat / /backup
stat -f / /backup

I don't know if that counts as a bug or not.

I just hit this "bug". Since the clients bindmounts are quite volatile, it would be hard to
generate a fileset. Any other ideas how to force bacula to ignore bindmounts ?

Cheers,
Christoph


__Martin

------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand
malware threats, the impact they can have on your business, and how you
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Bacula-users mailing list
Bacula-users < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

--
Christoph Kluenter E-Mail: support < at > iphh.net
Technik Tel: +49 (0)40 374919-10
IPHH Internet Port Hamburg GmbH Fax: +49 (0)40 374919-29
Wendenstrasse 408 AG Hamburg, HRB 76071
D-20537 Hamburg Geschaeftsfuehrung: Axel G. Kroeger

------------------------------------------------------------------------------
Cloud Services Checklist: Pricing and Packaging Optimization
This white paper is intended to serve as a reference, checklist and point of
discussion for anyone considering optimizing the pricing and packaging model
of a cloud services business. Read Now!
http://www.accelacomm.com/jaw/sfnl/114/51491232/
_______________________________________________
Bacula-users mailing list
Bacula-users < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Post fstype=bind being ignored 
On Tue, 6 Dec 2011 11:17:59 +0100, Christoph Kluenter said:

* Am Thu, Jan 20 2011 at 11:21:30 +0000 , schrieb Martin Simmons:
On Wed, 19 Jan 2011 15:48:13 +0100, Frank Altpeter said:

After a short discussion on the channel, I was advised to create a
post here to see if there's help for that or if it's really a bug.

I've got a machine that is using bind mounts. Despite the fact that
the fileset definition is using "onefs=no" and "fstype=ext3", the bind
mounts' content is saved which results in multiple saves of the same
content.

I know I could simply add the relevant mount points on the exclude
list in the fileset, but I think it would make sense if this is
considered like other fstype configurations as well, since I don't
like to manually tweak the fileset on every possible change of the
bind mounts, and to keep the default fileset simple and generic.

I've put some addional information on http://racoon.pastebin.com/r44RTxyP

The bacula-fd has version 2.4.4 on opensuse 11.1 and the server is
running 5.0.3, on SLES 11.1


Any hints appreciated.

Bacula implements onefs by looking for changes in the stat.st_dev (Device)
field and implements fstype by calling statfs. Unfortunately, both of these
return the values associated with the target directory for bind mounts, so the
mount point looks like a normal directory to Bacula.

You can see that by comparing the output printed by for / and /backup:

stat / /backup
stat -f / /backup

I don't know if that counts as a bug or not.

I just hit this "bug". Since the clients bindmounts are quite volatile, it would be hard to
generate a fileset. Any other ideas how to force bacula to ignore bindmounts ?

I don't think Bacula can do it internally.

Depending on exactly how volatile they are, you could generate an exclude list
at the start of the job adding something like this to the fileset:

Exclude {
File = "\\|list-bind-mounts.sh"
}

Implement list-bind-mounts.sh using /etc/mtab or /proc/mounts.

Alternatively, whatever creates the bind mounts could keep a list of them.

__Martin

------------------------------------------------------------------------------
Cloud Services Checklist: Pricing and Packaging Optimization
This white paper is intended to serve as a reference, checklist and point of
discussion for anyone considering optimizing the pricing and packaging model
of a cloud services business. Read Now!
http://www.accelacomm.com/jaw/sfnl/114/51491232/
_______________________________________________
Bacula-users mailing list
Bacula-users < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Display posts from previous:
Reply to topic Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
  


Magic SEO URL for phpBB