[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: Upgrade Ubuntu server will purge OpenLDAP data



Florian Weimer wrote:
> * Michael Ströder:
> 
>> Florian Weimer wrote:
>>> * Onno van der Straaten:
>>>
>>>> Ubuntu server upgrade from 12.04 to 14.04 LTS will purge the OpenLDAP
>>>> directory data.
>>>
>>> Is there an Ubuntu bug for this behavior?  It's a bit odd.
>>
>> One should generally be careful with system upgrades.
>>
>> AFAIK on-disk-format might change because of Berkeley-DB version upgrade.
> 
> Unless OpenLDAP uses the HASH database type, it's sufficient to
> checkpoint the Berkeley DB environment (and perhaps some other
> undocumented magic) *before* updating OpenLDAP.  The on-disk format of
> B-Tree-type databases is quite stable.
> 
> (Automated dump and reload might not work for large databases during
> automated package upgrades because of the time and disk space
> overhead.)

The original poster did a significant distribution upgrade and not just a
package upgrade.

While there might be distributions which have some sort of upgrade magic I
strongly recommend that everybody should follow the standard slapcat/slapadd
procedure when doing significant upgrade. And of course do a backup right
before upgrade after turning down writing to the directory. Everything else I
would not trust enough for a serious deployment.

Ciao, Michael.

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature