Daniel Carrasco Marín
2015-Jun-23 18:19 UTC
[Samba] Samba4 Secondary DC as Backup DC (redundancy)
El 23/6/2015 8:11 p. m., "Rowland Penny" <rowlandpenny at googlemail.com> escribi?:> > On 23/06/15 18:58, Daniel Carrasco Mar?n wrote: >> >> Hi, >> >> I've sucessfull created a secondary DC using the wiki manual ( >> https://wiki.samba.org/index.php/Join_a_domain_as_a_DC), and is working >> perfectly, user and groups are synced on both and I can use any of themfor>> login using clients like Owncloud, Prosody, python scripts... >> >> Now my question is: ?how I can use that secondary DC as backup when the >> main fails?. >> >> I've tried to disable the main AD daemon but clients don't try to connetto>> secondary DC, then all fails... >> >> Greetings and Thanks!! > > > OK, how do the clients get their ipaddress etc, is this by DHCP or dothey have static addresses ?> > If it is by DHCP, then the dhcp server needs to push out both DCs asnameservers, if static, then each client needs to be set to use both DCs as nameservers.> > The DCs need to be set to use each other as nameservers, falling back tothemselves in case of failure i.e. /etc/resolv.conf needs to be this:> > search samdom.example.com > nameserver 192.168.0.3 > nameserver 192.168.0.2 > > Where 'samdom.example.com' is your domain name > 192.168.0.3 is the other DC > 192.168.0.2 is the DC this /etc/resolv.conf is on > > Swap the two nameserver on the other DC. > > Rowland > > > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/options/sambaI see. I'll take a look tomorrow. I'm migrating an old samba domain, then for now i've clients with mixed DHCP (ip by DHCP, but DNS is static). Thanks!!
On 23/06/15 19:19, Daniel Carrasco Mar?n wrote:> > > El 23/6/2015 8:11 p. m., "Rowland Penny" <rowlandpenny at googlemail.com > <mailto:rowlandpenny at googlemail.com>> escribi?: > > > > On 23/06/15 18:58, Daniel Carrasco Mar?n wrote: > >> > >> Hi, > >> > >> I've sucessfull created a secondary DC using the wiki manual ( > >> https://wiki.samba.org/index.php/Join_a_domain_as_a_DC), and is working > >> perfectly, user and groups are synced on both and I can use any of > them for > >> login using clients like Owncloud, Prosody, python scripts... > >> > >> Now my question is: ?how I can use that secondary DC as backup when the > >> main fails?. > >> > >> I've tried to disable the main AD daemon but clients don't try to > connet to > >> secondary DC, then all fails... > >> > >> Greetings and Thanks!! > > > > > > OK, how do the clients get their ipaddress etc, is this by DHCP or > do they have static addresses ? > > > > If it is by DHCP, then the dhcp server needs to push out both DCs as > nameservers, if static, then each client needs to be set to use both > DCs as nameservers. > > > > The DCs need to be set to use each other as nameservers, falling > back to themselves in case of failure i.e. /etc/resolv.conf needs to > be this: > > > > search samdom.example.com <http://samdom.example.com> > > nameserver 192.168.0.3 > > nameserver 192.168.0.2 > > > > Where 'samdom.example.com <http://samdom.example.com>' is your > domain name > > 192.168.0.3 is the other DC > > 192.168.0.2 is the DC this /etc/resolv.conf is on > > > > Swap the two nameserver on the other DC. > > > > Rowland > > > > > > -- > > To unsubscribe from this list go to the following URL and read the > > instructions: https://lists.samba.org/mailman/options/samba > > I see. I'll take a look tomorrow. > > I'm migrating an old samba domain, then for now i've clients with > mixed DHCP (ip by DHCP, but DNS is static). > > Thanks!! >It would probably be best to just set the hostname on the clients, then get the DHCP server to push out the domain name etc, you can if you wish, run a dhcp server on one of the samba4 AD DCs Rowland
Daniel Carrasco Marín
2015-Jun-23 18:30 UTC
[Samba] Samba4 Secondary DC as Backup DC (redundancy)
Porque El 23/6/2015 8:23 p. m., "Rowland Penny" <rowlandpenny at googlemail.com> escribi?:> > On 23/06/15 19:19, Daniel Carrasco Mar?n wrote: >> >> >> El 23/6/2015 8:11 p. m., "Rowland Penny" <rowlandpenny at googlemail.com>escribi?:>> > >> > On 23/06/15 18:58, Daniel Carrasco Mar?n wrote: >> >> >> >> Hi, >> >> >> >> I've sucessfull created a secondary DC using the wiki manual ( >> >> https://wiki.samba.org/index.php/Join_a_domain_as_a_DC), and isworking>> >> perfectly, user and groups are synced on both and I can use any ofthem for>> >> login using clients like Owncloud, Prosody, python scripts... >> >> >> >> Now my question is: ?how I can use that secondary DC as backup whenthe>> >> main fails?. >> >> >> >> I've tried to disable the main AD daemon but clients don't try toconnet to>> >> secondary DC, then all fails... >> >> >> >> Greetings and Thanks!! >> > >> > >> > OK, how do the clients get their ipaddress etc, is this by DHCP or dothey have static addresses ?>> > >> > If it is by DHCP, then the dhcp server needs to push out both DCs asnameservers, if static, then each client needs to be set to use both DCs as nameservers.>> > >> > The DCs need to be set to use each other as nameservers, falling backto themselves in case of failure i.e. /etc/resolv.conf needs to be this:>> > >> > search samdom.example.com >> > nameserver 192.168.0.3 >> > nameserver 192.168.0.2 >> > >> > Where 'samdom.example.com' is your domain name >> > 192.168.0.3 is the other DC >> > 192.168.0.2 is the DC this /etc/resolv.conf is on >> > >> > Swap the two nameserver on the other DC. >> > >> > Rowland >> > >> > >> > -- >> > To unsubscribe from this list go to the following URL and read the >> > instructions: https://lists.samba.org/mailman/options/samba >> >> I see. I'll take a look tomorrow. >> >> I'm migrating an old samba domain, then for now i've clients with mixedDHCP (ip by DHCP, but DNS is static).>> >> Thanks!! > > > It would probably be best to just set the hostname on the clients, thenget the DHCP server to push out the domain name etc, you can if you wish, run a dhcp server on one of the samba4 AD DCs> > Rowland >Thanks for the suggestion, but i'm using a proxy server as dhcp and for now i don't want to change it. Greetings!!