[Samba] Repacking database from v1 to v2 / Samba failed to prime database, error code 22
Arnaud FLORENT
aflorent at iris-tech.fr
Tue Oct 4 12:53:45 UTC 2022
Hi Andrew and thanks for your support.
Le 03/10/2022 à 21:55, Andrew Bartlett via samba a écrit :
> On Mon, 2022-10-03 at 15:23 +0100, Rowland Penny via samba wrote:
>> On 03/10/2022 13:26, Arnaud FLORENT via samba wrote:
>>> Hi,
>>>
>>> i have an issue direct with in place upgrade from samba 4.3 to
>>> 4.13
>>> running single AD DC on ubuntu based installation
>> I think you may live to regret doing that :-(
>>
>>> samba failed to start after upgrade with this log
>> We have a bug that may be relevant:
>>
>> https://bugzilla.samba.org/show_bug.cgi?id=15189
>
> This is actually the reverse, this is hope :-)
>
> If the server is still working on Samba 4.3 after the failed upgrade
> attempt, this is a way forward to upgrade over DRS instead.
to be exactly clear, we returned to server state before upgrade
>
> Arnaud, I would be very interested if you could attempt to instead
> upgrade using a replication based approach, and if that fails, to try
> the patch at:
> https://gitlab.com/samba-team/samba/-/merge_requests/2728.patch
i have to patch samba 4.13 source and rebuild?
>
> It would be very valuable to me to get real-world feedback.
>
> To test in a 'no changes' approach, you can attempt replication without
> changing the domain by running 'samba-tool drs clone-dc-database --
> server $SERVER --targetdir=$SOMEWHERE_SECURE -Uadministrator'
so i have to run this command on a new server running 4.13 with $SERVER
pointing to my samba 4.3 running server
is this correct?
>
> We can also look into why the in-place upgrade fails.
>
> Running 'samba-tool dbcheck --reindex' using the modern version should
> allow the error to be seen in a more controlled circumstance, and allow
> raising the debug level etc.
samba-tool dbcheck (without --reindex) on 4.13 returns
Checked 4287 objects (6449 errors)
mainly
ERROR: incorrect attributeID values in replPropertyMetaData on ...
ERROR: unsorted attributeID values in replPropertyMetaData on ...
ERROR: unsorted attributeID values in replPropertyMetaData on ...
but may be it is because db repacking failed?
directory is 4 years old and was build with classic upgrade from older
samba3 + openldap
i will do more test on db and keep the list informed.
>
> It is a large version jump, but we actually do keep old databases
> around in our selftest to test this, but it is hard to trigger the
> variability of the real-world.
>
> I do wish you all the best getting to a modern Samba version.
>
> Andrew Bartlett
>
>
--
Arnaud FLORENT
IRIS Technologies
More information about the samba
mailing list