samba-tool domain backup with lmdb on btrfs fails

Andreas Schneider asn at samba.org
Wed Feb 15 08:14:35 UTC 2023


On Wednesday, 15 February 2023 02:52:48 CET Jeremy Allison wrote:
> On Tue, Feb 14, 2023 at 09:13:51PM +0100, Andreas Schneider via samba-
technical wrote:
> >I think I found it:
> >
> >The issue is the lmdb mdb_copy command on btrfs
> >
> >     def offline_mdb_copy(self, path):
> >+        mdb_chksum = create_file_checksum(path)
> >
> >         mdb_copy(path, path + self.backup_ext)
> >
> >+        mdb_copy_chksum = create_file_checksum(path + self.backup_ext)
> >+        if mdb_chksum != mdb_copy_chksum:
> >+            raise CommandError("FATAL: MDB checksums don't match!")
> >
> >
> >This triggers on btrfs and works on ext4!
> >
> >
> >I will prepare a reproducer tomorrow.
> 
> Fantasic debugging Andreas ! That narrows it down perfectly.

I've created

https://bugzilla.redhat.com/show_bug.cgi?id=2169947



-- 
Andreas Schneider                      asn at samba.org
Samba Team                             www.samba.org
GPG-ID:     8DFF53E18F2ABC8D8F3C92237EE0FC4DCC014E3D





More information about the samba-technical mailing list