samba-tool domain backup with lmdb on btrfs fails
Rowland Penny
rpenny at samba.org
Wed Feb 15 08:23:27 UTC 2023
On 15/02/2023 08:14, Andreas Schneider via samba-technical wrote:
> 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
>
>
>
Why ?
This looks to me like a Samba bug, so why not open a Samba bug report ?
Rowland
More information about the samba-technical
mailing list