[Samba] Q: Upgrading samba from 4.9 to 4.13
L.P.H. van Belle
belle at bazuin.nl
Fri Oct 23 07:57:10 UTC 2020
Personaly, i would do this as followed.
First i fully check my server, all logs, if i see any warning/error
I check it, fix it if needed and clear log, reboot, check logs/fix again
Then i check the samba database: samba-tool dbcheck (--cross-nc)
Fix if needed and : samba-tool dbcheck --reindex
Then upgrade and i would go from 4.9 to 4.10, check logs, reboot.
Check logs, clear logs, reindex, next upgrade.
If needed adjust smb.conf
If member, 4.9 to 4.12 or 4.13, fine, just upgrade.
*note, if debian/ubuntu, use : apt(-get) dist-upgrade --autoremove --purge
This is an important one, in above steps, the older tdb/ldb files might be
left on the server, which will stop samba from working.
Why --autoremove ; tdb 1.x will be replace by tdb 2.x and
this will remove the old version from your server at install.
--purge, it removes the leftovers/old configs.
In both cases (ad-dc or member), you MUST make sure you config is valid for the samba
version your going to use.
And i try to follow these rules.
any xx.yy.0 version should only be a test server in the production network.
any xx.yy.1 version should only be an authentication only server in the production network.
any xx.yy.2 version should only be the first fileserver server in the production network.
any xx.yy.3-4 version should only be the first AD-DC server in the production network.
This above is a safe path to follow, i using that for years now.
> -----Oorspronkelijk bericht-----
> Van: samba [mailto:samba-bounces at lists.samba.org] Namens
> Marco Shmerykowsky via samba
> Verzonden: donderdag 22 oktober 2020 18:09
> Aan: samba at lists.samba.org
> Onderwerp: Re: [Samba] Q: Upgrading samba from 4.9 to 4.13
> On 2020-10-22 10:27 am, Robert Marcano via samba wrote:
> > On 10/22/20 10:10 AM, Marco Shmerykowsky via samba wrote:
> >> On 10/22/2020 9:40 AM, Robert Marcano via samba wrote:
> >>> On 10/22/20 9:38 AM, Robert Marcano wrote:
> >>>> On 10/22/20 9:30 AM, Marco Shmerykowsky via samba wrote:
> >>>>> I've been looking at the Sambawiki for notes on upgrading
> >>>>> (https://wiki.samba.org/index.php/Upgrading_a_Samba_AD_DC)
> >>>>> The way I read it it is suggested to uninstall samba
> >>>>> completely and then essentially re-installing. That seems
> >>>>> like a Murphy's Law disaster (with my luck) waiting to
> >>>>> happen.
> >>>>> Is "upgrading "in-place" a realistic option?
> >>>> I have been upgrading multiple domains since 4.8 without
> >>>> the difference here is that I have done it incrementally
> and not in
> >>>> a single step. I upgrade to the latest 4.x release when
> 4.x+1.0 is
> >>>> released.
> >>>> I think the developers are very careful to not break in place
> >>>> upgrades, but I don't think there is some kind of testing
> >>>> infrastructure to test single step upgrades from all
> older releases,
> >>>> I maybe wrong. You can try with a dump of your domain on
> a testing
> >>>> environment and report if you have problems.
> >>> I forgot to add that if you go this way I recommend you read all
> >>> release notes from all intermediary releases so you don't miss
> >>> something you need to do.
> >> So an alternate way to do this is to upgrade-in-place at each step.
> >> ie. 4.9 to 4.10 then 4.10 to 4.11 then 4.11 to 4.12 etc.
> > I am not sure I would have the patience to do it that way, If I ever
> > experience problems with in-place upgrade after testing, I would
> > restore from backup and use the rejoin process. It would be
> easier for
> > me because I am running Samba in containers. People running in VMs
> > will be easier too.
> The patience I will need the slow way is likely far less than
> the amount
> I would require fixing stuff after Murphy's Law and my luck creates a
> disaster. :)
> To unsubscribe from this list go to the following URL and read the
> instructions: https://lists.samba.org/mailman/options/samba
More information about the samba