[SOLVED] Procedure to upgrade from 4.7 to 4.8

Come here to share your tips and tricks for using Samba4
Locked
Eric
Messages: 29
Registration: March 11, 2018 - 08:22

October 7, 2018 - 9:53 AM

Hello,

I recently installed a test Samba4 instance from the Tranquil-it packages, and it turns out the version is 4.8, which is great, thank you!

My question is, what are the recommendations for migrating to 4.8 on my production servers? I have

4 servers:
1 AD-BDC,
2 BDCs,
and 1 CUPS file server.

Thank you in advance, and thank you again for this work,
Eric.
User avatar
dcardon
WAPT Expert
Messages: 1932
Registration: June 18, 2014 - 09:58
Location: Saint Sébastien sur Loire
Contact :

October 12, 2018 - 8:23 PM

Hello Eric,
Eric wrote: Oct 7, 2018 - 9:53 AM I recently installed a test Samba4 server from the Tranquil IT packages, and it turns out the version is 4.8. Great, thank you!

My question is, what are the recommendations for migrating to 4.8 on my production servers?

4 servers:
1 AD-BDC,
2 BDCs,
1 CUPS file server.

Thanks in advance, and thanks again for this work.
It is possible to upgrade the servers in any order; replication will continue to function. Typically, the upgrade begins with the server holding the FSMO roles.

A quick note: be aware that upgrading to version 4.8 requires recalculating the indexes (the internal LDB structure has changed), and the server will be unavailable for a few tens of seconds to a few minutes. Keep this in mind if you plan to perform the upgrade at noon.

To fully benefit from the new database structures, it's even preferable to demote and then rejoin the servers to perform an upgrade. However, for this, it's best to wait for the upcoming 4.10 release: LMDB support should become the default (a change of backend compared to the legacy TDB), and it will be even more worthwhile to demote and rejoin the servers to perform an upgrade.

When upgrading from 4.7 to 4.8, be aware of a problematic package if you are using CentOS. You can look https://dev.tranquil.it/wiki/SAMBA_-_Up ... _samba_4.8

Sincerely,

Denis
Denis Cardon - Tranquil IT
Share your experiences on WAPT! Send us your blog and article URLs in the "Your Opinion of the forum, and we'll feature them on the WAPT
Eric
Messages: 29
Registration: March 11, 2018 - 08:22

October 16, 2018 - 12:07

Hello,

thank you very much for this clarification. So I think I'll wait for version 4.10 then. When it's available on Debian 9, when you mention unmounting, what exactly does that mean? I'm not familiar with that term in networking.

Thank you very much
Sincerely,
Eric
User avatar
vcardon
WAPT Expert
Messages: 278
Registration: Oct 06, 2017 - 10:55 p.m.
Location: Nantes, France

October 16, 2018 - 12:15

Eric wrote: Oct 16, 2018 - 12:07 When you specify that it is necessary to demount, what exactly does that mean? I don't know this term in networking.
Démoter is Denis's French version of the verb "to demote", meaning to retrograde in French.

So, in this context, it involves downgrading the server's functional role, then joining it to a new domain controller with all functional roles and enabling replication.
Vincent CARDON
Tranquil IT
Eric
Messages: 29
Registration: March 11, 2018 - 08:22

October 16, 2018 - 3:05 PM

Hello,

does this mean we'll need to place a special order on the purchase orders before the update? If so, which one?

Thank you in advance,
sincerely,
Eric
User avatar
dcardon
WAPT Expert
Messages: 1932
Registration: June 18, 2014 - 09:58
Location: Saint Sébastien sur Loire
Contact :

October 16, 2018 - 6:47 PM

Hello Eric,
Eric wrote: Oct 16, 2018 - 3:05 PM Does this mean we'll need to place a special order on the order forms before the update? If so, which one?
There is no longer a concept of BDC in an Active Directory domain.

To remove a domain controller (which has been previously shut down/removed), you must run the following command on the remaining DC:

Code: Select all

samba-tool domain demote --remove-other-dead-server=<NOM_DU_SERVEUR_A_SUPPRIMER>
Sincerely,

Denis
Denis Cardon - Tranquil IT
Share your experiences on WAPT! Send us your blog and article URLs in the "Your Opinion of the forum, and we'll feature them on the WAPT
gtirmont
Messages: 5
Registration: Sep 21, 2018 - 4:54 p.m.

November 23, 2018 - 2:29 PM

To fully benefit from the new database structures, it's even preferable to demote and then rejoin the servers to perform an upgrade. However, for this, it's best to wait for the upcoming 4.10 release: LMDB support should become the default (a change of backend compared to the legacy TDB), and it will be even more worthwhile to demote and rejoin the servers to perform an upgrade.
Good morning,

So, can we migrate directly from 4.7 to 4.8? Without going through the "demote" procedure?.

Thank you so much
Locked