Blame SOURCES/README.downgrade
|
Anoop C S |
121a04 |
Downgrading Samba
|
|
Anoop C S |
121a04 |
=================
|
|
Anoop C S |
121a04 |
|
|
Anoop C S |
121a04 |
Short version: data-preserving downgrades between Samba versions are not supported
|
|
Anoop C S |
121a04 |
|
|
Anoop C S |
121a04 |
Long version:
|
|
Anoop C S |
121a04 |
With Samba development there are cases when on-disk database format evolves.
|
|
Anoop C S |
121a04 |
In general, Samba Team attempts to maintain forward compatibility and
|
|
Anoop C S |
121a04 |
automatically upgrade databases during runtime when requires.
|
|
Anoop C S |
121a04 |
However, when downgrade is required Samba will not perform downgrade to
|
|
Anoop C S |
121a04 |
existing databases. It may be impossible if new features that caused database
|
|
Anoop C S |
121a04 |
upgrade are in use. Thus, one needs to consider a downgrade procedure before
|
|
Anoop C S |
121a04 |
actually downgrading Samba setup.
|
|
Anoop C S |
121a04 |
|
|
Anoop C S |
121a04 |
Please always perform back up prior both upgrading and downgrading across major
|
|
Anoop C S |
121a04 |
version changes. Restoring database files is easiest and simplest way to get to
|
|
Anoop C S |
121a04 |
previously working setup.
|
|
Anoop C S |
121a04 |
|
|
Anoop C S |
121a04 |
Easiest way to downgrade is to remove all created databases and start from scratch.
|
|
Anoop C S |
121a04 |
This means losing all authentication and domain relationship data, as well as
|
|
Anoop C S |
121a04 |
user databases (in case of tdb storage), printers, registry settings, and winbindd
|
|
Anoop C S |
121a04 |
caches.
|
|
Anoop C S |
121a04 |
|
|
Anoop C S |
121a04 |
Remove databases in following locations:
|
|
Anoop C S |
121a04 |
/var/lib/samba/*.tdb
|
|
Anoop C S |
121a04 |
/var/lib/samba/private/*.tdb
|
|
Anoop C S |
121a04 |
|
|
Anoop C S |
121a04 |
In particular, registry settings are known to prevent running downgraded versions
|
|
Anoop C S |
121a04 |
(Samba 4 to Samba 3) as registry format has changed between Samba 3 and Samba 4.
|