Hello, I have two Samba DCs currently on Ubuntu 18.04 LTS with Samba version 4.7 I would like to move to Ubuntu 24.04 LTS with Samba version 4.19. I don't want to do in place upgrade and iterate trough software versions I think there is to many changes. I thought I demote one DC give all FSMO rolls to the other do a clean install with the newer version then rejoin the domain keeping the schema level Win2008 R2 until all servers are upgraded. Can this method work? stepping down each server one by one then rejoining with the newer Samba version with the same server name plus changing the smb.conf file with new directives. I saw there are major upgrades in Samba between 4.7 to 4.19 but it's not clear to me if I do the above will it work will it break replication is there a chance of data loss? Thank You
Hi Hajdu, I have upgraded a few domains the way you want to go. I have also upgraded an existing DC, once. Lots of hazzle, not worth the trouble. It's a snap to create VMs, configure the new DCs, sync them with the existing ones, migrate the FSMO roles to one of the new DCs, and then demote the old DCs. But I don't think it's a good idea to keep the names of the old DCs. You're probably in for a few surprises in that case. If you haven't a really huge network with lots of machines with static IPs, it should be quite painless to change /etc/resolv.conf on Linux members, and update the adapter settings on Windows servers that have got static addresses. Changing DNS addresses in a DHCP server should be trivial. Just my opinion, I wish you good luck. Peter On 18.05.2024 15:01, Hajdu Szabolcs via samba wrote:> Hello, > > I have two Samba DCs currently on Ubuntu 18.04 LTS with Samba version > 4.7 I would like to move to Ubuntu 24.04 LTS with Samba version 4.19. > > I don't want to do in place upgrade and iterate trough software > versions I think there is to many changes. I thought I demote one DC > give all FSMO rolls to the other do a clean install with the newer > version then rejoin the domain keeping the schema level Win2008 R2 > until all servers are upgraded. Can this method work? stepping down > each server one by one then rejoining with the newer Samba version > with the same server name plus changing the smb.conf file with new > directives. I saw there are major upgrades in Samba between 4.7 to > 4.19 but it's not clear to me if I do the above will it work will it > break replication is there a chance of data loss? > > Thank You > >
Hi, My Experience: Last year, I performed an "emergency" upgrade of 3 domains, in a school district, from version 4.7 (self-compiled) to 4.18 (Debian 12). By setting up a new Domain Controller (DC), joining to the domain, transferring all FSMO roles, and finally demoting the old one. The upgrade went nearly flawlessly, except for one DC where I had to follow the "Demoting an Offline Domain Controller" procedure described in the wiki: https://wiki.samba.org/index.php/Demoting_a_Samba_AD_DC. Am 18.05.2024 um 15:01 schrieb Hajdu Szabolcs via samba:> Hello, > > I have two Samba DCs currently on Ubuntu 18.04 LTS with Samba version > 4.7 I would like to move to Ubuntu 24.04 LTS with Samba version 4.19. > > I don't want to do in place upgrade and iterate trough software versions > I think there is to many changes. I thought I demote one DC give all > FSMO rolls to the other do a clean install with the newer version then > rejoin the domain keeping the schema level Win2008 R2 until all servers > are upgraded. Can this method work? stepping down each server one by one > then rejoining with the newer Samba version with the same server name > plus changing the smb.conf file with new directives. I saw there are > major upgrades in Samba between 4.7 to 4.19 but it's not clear to me if > I do the above will it work will it break replication is there a chance > of data loss? > > Thank You > >