Hai Guys, Just a general notification. Currently if you run samba 4.x-4.8 and upgraded to 4.9.0-4.9.4 on bind9 dns. Your missing the new folders. So even when your already running on bind9_dlz, follow these steps, and prevent possible problems in future. # create the missing folder. mkdir -p /var/lib/samba/bind-dns/dns # use samba_upgradedns to move the files and folder and fixes rights. samba_upgradedns --dns-backend=BIND9_DLZ ... Yes, even if you already run bind9_dlz. # Change the path in bind. So samba can load the needed named.conf again. sed -i 's/private/bind-dns/g' $(rgrep "samba/private/named.conf" | awk -F":" '{ print $1 }') # restart bind and samba systemctl restart bind9 samba-ad-dc And your done. Greetz, Louis
L.P.H. van Belle
2019-Feb-27 15:57 UTC
[Samba] Samba 4.x to 4.9 upgrade and bind DLZ dns. V2
Hai Guys, V2, i missed the cd /etc/bind.> > Just a general notification. > > Currently if you run samba 4.x-4.8 and upgraded to > 4.9.0-4.9.4 on bind9 dns. > Your missing the new folders. > > So even when your already running on bind9_dlz, follow these steps, > and prevent possible problems in future. > > # create the missing folder. > mkdir -p /var/lib/samba/bind-dns/dns > > # use samba_upgradedns to move the files and folder and fixes rights. > samba_upgradedns --dns-backend=BIND9_DLZ > ... Yes, even if you already run bind9_dlz. > > # Change the path in bind. So samba can load the needed named.conf again.Sorry, missed.. cd /etc/bind sed -i 's/private/bind-dns/g' $(rgrep "samba/private/named.conf" | awk -F":" '{ print $1 }')> > # restart bind and samba > systemctl restart bind9 samba-ad-dc > > And your done. > > Greetz, > > Louis
On Wed, 27 Feb 2019 16:51:20 +0100 "L.P.H. van Belle via samba" <samba at lists.samba.org> wrote:> Hai Guys, > > Just a general notification. > > Currently if you run samba 4.x-4.8 and upgraded to 4.9.0-4.9.4 on > bind9 dns. Your missing the new folders. > > So even when your already running on bind9_dlz, follow these steps, > and prevent possible problems in future. > > # create the missing folder. > mkdir -p /var/lib/samba/bind-dns/dns > > # use samba_upgradedns to move the files and folder and fixes rights. > samba_upgradedns --dns-backend=BIND9_DLZ > ... Yes, even if you already run bind9_dlz. > > # Change the path in bind. So samba can load the needed named.conf > again. sed -i 's/private/bind-dns/g' $(rgrep > "samba/private/named.conf" | awk -F":" '{ print $1 }') > > # restart bind and samba > systemctl restart bind9 samba-ad-dc > > And your done. > > Greetz, > > LouisSo it happened to you ;-) I have written a patch for samba_upgradedns to check for and add /var/lib/samba/bind-dns if it is missing. This has been sat on samba-technical since the 15th Feb, care to check it and give it your RB+ ? Rowland
Well.. Yes and no. :-) Yes.. I happend to me that folder /var/lib/samba/bind-dns/dns was not created. And I did recall you made a patch for that but to prevent future problems. I've created and changed the setup to match the standards again of samba. Upgrading from 4.8.9 to 4.9.4 was flawless and everything works perfect but besides thats and i wanted to know a simple fixup. Looked around in the samba list and below is the result ;-) Greetz, Louis> -----Oorspronkelijk bericht----- > Van: Rowland Penny [mailto:rpenny at samba.org] > Verzonden: woensdag 27 februari 2019 17:26 > Aan: samba at lists.samba.org > CC: L.P.H. van Belle > Onderwerp: Re: [Samba] Samba 4.x to 4.9 upgrade and bind DLZ dns. > > On Wed, 27 Feb 2019 16:51:20 +0100 > "L.P.H. van Belle via samba" <samba at lists.samba.org> wrote: > > > Hai Guys, > > > > Just a general notification. > > > > Currently if you run samba 4.x-4.8 and upgraded to 4.9.0-4.9.4 on > > bind9 dns. Your missing the new folders. > > > > So even when your already running on bind9_dlz, follow these steps, > > and prevent possible problems in future. > > > > # create the missing folder. > > mkdir -p /var/lib/samba/bind-dns/dns > > > > # use samba_upgradedns to move the files and folder and > fixes rights. > > samba_upgradedns --dns-backend=BIND9_DLZ > > ... Yes, even if you already run bind9_dlz. > > > > # Change the path in bind. So samba can load the needed named.conf > > again. sed -i 's/private/bind-dns/g' $(rgrep > > "samba/private/named.conf" | awk -F":" '{ print $1 }') > > > > # restart bind and samba > > systemctl restart bind9 samba-ad-dc > > > > And your done. > > > > Greetz, > > > > Louis > > So it happened to you ;-) > > I have written a patch for samba_upgradedns to check for and > add /var/lib/samba/bind-dns if it is missing. This has been sat on > samba-technical since the 15th Feb, care to check it and give it your > RB+ ? > > Rowland > >