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 If AD-DC, 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 Repeat. 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. Greetz, Louis> -----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 > problems, > >>>> 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 > >
On 10/23/2020 3:57 AM, L.P.H. van Belle via samba wrote:> 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 > > If AD-DC, > 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 > Repeat. > > 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. > > > Greetz, > > LouisThis may be a silly question, but going from 4.10 to 4.11 would also involve going from Stretch to Buster. The upgrade guidance I read for Debian suggests the following last two steps: apt-get full-upgrade apt-get --purge autoremove From what I read, this is effectively the same as the command 'apt-get dist-upgrade --autoremove --purge' which you listed below. So.... When upgrading Debian and jumping to 4.11, I can use either set of commands?
> -----Oorspronkelijk bericht----- > Van: samba [mailto:samba-bounces at lists.samba.org] Namens Marco > Shmerykowsky via samba > Verzonden: woensdag 20 januari 2021 15:20 > Aan: samba at lists.samba.org > Onderwerp: Re: [Samba] Q: Upgrading samba from 4.9 to 4.13 > > > On 10/23/2020 3:57 AM, L.P.H. van Belle via samba wrote: > > 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 > > > > If AD-DC, > > 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 > > Repeat. > > > > 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. > > > > > > Greetz, > > > > Louis > > This may be a silly question, but going from 4.10 > to 4.11 would also involve going from Stretch to > Buster. > > The upgrade guidance I read for Debian suggests > the following last two steps: > > apt-get full-upgrade > apt-get --purge autoremove > > From what I read, this is effectively the same as > the command 'apt-get dist-upgrade --autoremove --purge' > which you listed below. > > So.... When upgrading Debian and jumping to 4.11, > I can use either set of commands? >yes, only there is one difference.. apt-get full-upgrade.. might not remove libldb somewhere, it happend, i cant recall exact on which version,but when that happens. Samba will fail and upgrade process stops.. apt-get install -f fixes that. If you upgrading debian and samba in one go. First upgrade samba to the highest version you want in that distro version. then upgrade Debian itself. Repeat, upgrade samba upto where you want it, upgrade debian. Thats how i upgrade. Greetz, Louis