Some month ago a local branch office closed; the local branch had a DC, that i've simply removed the dc with: samba-tool domain demote --server=vdcsv1.ad.fvg.lnf.it -U gaio (see https://lists.samba.org/archive/samba/2019-February/221195.html) But this leave some old DNS records, eg: root at vdcsv1:~# host -t SRV _kerberos._udp.ad.fvg.lnf.it | awk '{print $NF}'| sed 's/.$//' vdctms1.ad.fvg.lnf.it vdcsv2.ad.fvg.lnf.it vdcsv1.ad.fvg.lnf.it vdcpp2.ad.fvg.lnf.it vdcud1.ad.fvg.lnf.it vdc3t1.ad.fvg.lnf.it vdcpp1.ad.fvg.lnf.it Now, i need to upgrade (finally!) to something more fresh then 4.5. It is advise to cleanup (manually?) old dns records and do the upgrade, or i can safely upgrade to, eg, 4.8 and then do something like: samba-tool doamin demote --remove-other-dead-server=vdcud1.ad.fvg.lnf.it -U gaio to have better chance to cleanup data? Thanks. -- dott. Marco Gaiarin GNUPG Key ID: 240A3D66 Associazione ``La Nostra Famiglia'' http://www.lanostrafamiglia.it/ Polo FVG - Via della Bont?, 7 - 33078 - San Vito al Tagliamento (PN) marco.gaiarin(at)lanostrafamiglia.it t +39-0434-842711 f +39-0434-842797 Dona il 5 PER MILLE a LA NOSTRA FAMIGLIA! http://www.lanostrafamiglia.it/index.php/it/sostienici/5x1000 (cf 00307430132, categoria ONLUS oppure RICERCA SANITARIA)
Har Marco,> Now, i need to upgrade (finally!) to something more fresh then 4.5.Congratulations, finaly.. ;-)> > It is advise to cleanup (manually?) old dns records and do > the upgrade, or i can safely upgrade to, eg, 4.8 and then do something like: > > samba-tool domain demote > --remove-other-dead-server=vdcud1.ad.fvg.lnf.it -U gaio > > to have better chance to cleanup data?The "what" or How you remove it does not really matter ( in your case of 4.5.x ) You must cleanup AD and DNS. I just use the ADUC for AD and DNS tool in windows and remove all unneeded entries. In the dns the _msdc.dom... Just go carefully through there and remove all references to the old server. Then when its all done, verify it, with samba-tools dbcheck and replication. This should not give any problems.> > > Thanks.Your welkom, Louis
Mandi! L.P.H. van Belle via samba In chel di` si favelave...> The "what" or How you remove it does not really matter ( in your case of 4.5.x ) > You must cleanup AD and DNS. > I just use the ADUC for AD and DNS tool in windows and remove all unneeded entries.OK. Done. Check in progess (via ./samba-check-db-repl.sh) and all seems OK. But i've remove also a 'site' (with site and services), but found on the dns many _sites\SITENAME\_tcp or _udp entry, but i can remove only the entry, not the SITENAME zone... say 'function not supported' or something like that. How can i cleanup 'dead' sites in DNS? Thanks. -- dott. Marco Gaiarin GNUPG Key ID: 240A3D66 Associazione ``La Nostra Famiglia'' http://www.lanostrafamiglia.it/ Polo FVG - Via della Bont?, 7 - 33078 - San Vito al Tagliamento (PN) marco.gaiarin(at)lanostrafamiglia.it t +39-0434-842711 f +39-0434-842797 Dona il 5 PER MILLE a LA NOSTRA FAMIGLIA! http://www.lanostrafamiglia.it/index.php/it/sostienici/5x1000 (cf 00307430132, categoria ONLUS oppure RICERCA SANITARIA)
Hai, The steps shown here dont work? https://wiki.samba.org/index.php/Demoting_a_Samba_AD_DC If that is the case and you besides that free of errors. Then upgrade, and try again once your on at least samba 4.9 or 4.10. As im hoping you are upgrade straight to Buster. Greetz, Louis> -----Oorspronkelijk bericht----- > Van: samba [mailto:samba-bounces at lists.samba.org] Namens > Marco Gaiarin via samba > Verzonden: woensdag 2 oktober 2019 12:25 > Aan: samba at lists.samba.org > Onderwerp: Re: [Samba] Removed a DC but... > > Mandi! L.P.H. van Belle via samba > In chel di` si favelave... > > > The "what" or How you remove it does not really matter ( in > your case of 4.5.x ) > > You must cleanup AD and DNS. > > I just use the ADUC for AD and DNS tool in windows and > remove all unneeded entries. > > OK. Done. Check in progess (via ./samba-check-db-repl.sh) and > all seems > OK. > > But i've remove also a 'site' (with site and services), but found on > the dns many _sites\SITENAME\_tcp or _udp entry, but i can remove only > the entry, not the SITENAME zone... say 'function not supported' or > something like that. > > How can i cleanup 'dead' sites in DNS? Thanks. > > -- > dott. Marco Gaiarin GNUPG > Key ID: 240A3D66 > Associazione ``La Nostra Famiglia'' > http://www.lanostrafamiglia.it/ > Polo FVG - Via della Bont?, 7 - 33078 - San Vito al > Tagliamento (PN) > marco.gaiarin(at)lanostrafamiglia.it t +39-0434-842711 > f +39-0434-842797 > > Dona il 5 PER MILLE a LA NOSTRA FAMIGLIA! > http://www.lanostrafamiglia.it/index.php/it/sostienici/5x1000 > (cf 00307430132, categoria ONLUS oppure RICERCA SANITARIA) > > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/options/samba > >