> -----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
On 1/20/2021 10:05 AM, L.P.H. van Belle via samba wrote:> >> -----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, > > LouisOn my test setup I'm on Samba 4.10.18 & Stretch. Now... 4.11 needs Buster from what I understand. Wouldn't I need to move to Buster first before going from 4.10-Stretch to 4.11-Buster?
> > On my test setup I'm on Samba 4.10.18 & Stretch. > > Now... 4.11 needs Buster from what I understand. > > Wouldn't I need to move to Buster first before going from > 4.10-Stretch to 4.11-Buster? > > > > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/options/sambaif your now on 4.10 and stretch, now upgrade to buster and samba 4.10 Thats the most easy step. from there you can upgrade samba.. small side note, 4.13.3 is not life, im testing it, but i need to change a thing in the packageing. its planned for next week or next samba release, depending on the time i have. Really busy here at my side due corona.. :-/ Greetz, Louis