Re: [Samba] smb.conf sync
Hi, I already have a clustered config between my servers data partitions, is it possible to move my tdb files there and tell samba those tdb files are there? Is this meet the requirements of ctdb solution? I think I can give a try to syncronise my sysvol directory like this way, since the users and IDs should be identical. What are you think about this? Regards, Robert 2013-05-29 14:21 keltezéssel, Andrew Bartlett írta: On Wed, 2013-05-29 at 14:14 +0200, Michael Wood wrote: Hi Andrew On 29 May 2013 03:19, Andrew Bartlett wrote: On Tue, 2013-05-28 at 12:45 +0200, Sandbox wrote: I solved the shared data problem with heartbeat+drbd combo so that should not be a problem. TDB files data should be syncronized between my domain members or am I wrong? Please synchronise TDB files except by using using real CTDB (which doesn't provide an AD DC). I spent much of a week trying to reconstruct a database lost this way. I assume you mean "Please DO NOT synchronise TDB file except by using real CTDB." Indeed. The only other way to safely access a tdb from 'under' a running process is via tdbbackup. I know that the tdb should eventually end up the same if every change is replicated, and it was probably the lack of barriers in the FS that caused the pain I saw, but direct block replication doesn't do any checks, while tdbbackup and (better) DRS replication will fail and show errors if the DB is corrupt, rather than forward the corruption on to the 'backup'. Andrew Bartlett -- Kind regards: Robert -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] smb.conf sync
On Wed, 2013-05-29 at 14:14 +0200, Michael Wood wrote: > Hi Andrew > > On 29 May 2013 03:19, Andrew Bartlett wrote: > > On Tue, 2013-05-28 at 12:45 +0200, Sandbox wrote: > >> I solved the shared data problem with heartbeat+drbd combo so that should > >> not be a problem. TDB files data should be syncronized between my domain > >> members or am I wrong? > > > > Please synchronise TDB files except by using using real CTDB (which > > doesn't provide an AD DC). I spent much of a week trying to reconstruct > > a database lost this way. > > I assume you mean "Please DO NOT synchronise TDB file except by using > real CTDB." Indeed. The only other way to safely access a tdb from 'under' a running process is via tdbbackup. I know that the tdb should eventually end up the same if every change is replicated, and it was probably the lack of barriers in the FS that caused the pain I saw, but direct block replication doesn't do any checks, while tdbbackup and (better) DRS replication will fail and show errors if the DB is corrupt, rather than forward the corruption on to the 'backup'. Andrew Bartlett -- Andrew Bartletthttp://samba.org/~abartlet/ Authentication Developer, Samba Team http://samba.org -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] smb.conf sync
Hi Andrew On 29 May 2013 03:19, Andrew Bartlett wrote: > On Tue, 2013-05-28 at 12:45 +0200, Sandbox wrote: >> I solved the shared data problem with heartbeat+drbd combo so that should >> not be a problem. TDB files data should be syncronized between my domain >> members or am I wrong? > > Please synchronise TDB files except by using using real CTDB (which > doesn't provide an AD DC). I spent much of a week trying to reconstruct > a database lost this way. I assume you mean "Please DO NOT synchronise TDB file except by using real CTDB." > If this is about the AD DC, then the only safe way is to use DRS > replication. > > The important details for the domain are synchronised over DRS, except > for the sysvol share. > > Andrew Bartlett > > -- > Andrew Bartletthttp://samba.org/~abartlet/ > Authentication Developer, Samba Team http://samba.org -- Michael Wood -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] smb.conf sync
On Tue, 2013-05-28 at 12:45 +0200, Sandbox wrote: > I solved the shared data problem with heartbeat+drbd combo so that should > not be a problem. TDB files data should be syncronized between my domain > members or am I wrong? Please synchronise TDB files except by using using real CTDB (which doesn't provide an AD DC). I spent much of a week trying to reconstruct a database lost this way. If this is about the AD DC, then the only safe way is to use DRS replication. The important details for the domain are synchronised over DRS, except for the sysvol share. Andrew Bartlett -- Andrew Bartletthttp://samba.org/~abartlet/ Authentication Developer, Samba Team http://samba.org -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] smb.conf sync
I solved the shared data problem with heartbeat+drbd combo so that should not be a problem. TDB files data should be syncronized between my domain members or am I wrong? Regards, Robert 2013/5/27 Marc Muehlfeld > Hello Robert, > > Am 27.05.2013 21:37, schrieb Sandbox: > >> Just a quick question. Do I have to syncronise my smb.conf file between my servers? >>> >>> No. And it would be a bad idea. Each Samba server has it's own >>> smb.conf, with it's own shares/paths/server name/etc. If you mix there >>> something (e. g. twice the same DC name in your network), you maybe >>> confuse everything in your network. >>> >> >> That was the reason why I thought about this, I sat up the DC, and >> joined to the DC with my other Samba. But I asked myself if the "master" >> server dies for any reason the member server how could provide the >> shares if there is only basic smb.conf settings on the member server. >> > > It's not just done with syncing the smb.conf. If an other server should > take over the job of the failed one, you also would need the whole share > data on the second host, the servers tdb files, etc - what brings you to > the clustering topic. > > > Regards, > Marc > -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] smb.conf sync
On Mon, 2013-05-27 at 16:56 +0200, Michael De Groote wrote: > watch out when you do that!! > i killed one of my previous test-setups by doing that when i forgot to > change the netbios name for the second machine Our fix for that sort of problem is to have "/etc/samba/netbiosname.conf" which is different on each host (and just sets the netbios name, but obviously you can extend that idea to whatever machine-specific settings need to be different), have a smb.conf that includes that file, and then I can ensure that the master smb.conf is synced between multiple machines. Adam -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] smb.conf sync
Hello Robert, Am 27.05.2013 21:37, schrieb Sandbox: Just a quick question. Do I have to syncronise my smb.conf file between my servers? No. And it would be a bad idea. Each Samba server has it's own smb.conf, with it's own shares/paths/server name/etc. If you mix there something (e. g. twice the same DC name in your network), you maybe confuse everything in your network. That was the reason why I thought about this, I sat up the DC, and joined to the DC with my other Samba. But I asked myself if the "master" server dies for any reason the member server how could provide the shares if there is only basic smb.conf settings on the member server. It's not just done with syncing the smb.conf. If an other server should take over the job of the failed one, you also would need the whole share data on the second host, the servers tdb files, etc - what brings you to the clustering topic. Regards, Marc -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] smb.conf sync
2013-05-27 17:07 keltezéssel, Marc Muehlfeld írta: Hello Robert, Am 27.05.2013 11:15, schrieb Sandbox: Just a quick question. Do I have to syncronise my smb.conf file between my servers? No. And it would be a bad idea. Each Samba server has it's own smb.conf, with it's own shares/paths/server name/etc. If you mix there something (e. g. twice the same DC name in your network), you maybe confuse everything in your network. Regards Marc Hi Marc, That was the reason why I thought about this, I sat up the DC, and joined to the DC with my other Samba. But I asked myself if the "master" server dies for any reason the member server how could provide the shares if there is only basic smb.conf settings on the member server. Regards, Robert -- Üdvözlettel / Kind regards: SandBoX ;) -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] smb.conf sync
Hello Robert, Am 27.05.2013 11:15, schrieb Sandbox: Just a quick question. Do I have to syncronise my smb.conf file between my servers? No. And it would be a bad idea. Each Samba server has it's own smb.conf, with it's own shares/paths/server name/etc. If you mix there something (e. g. twice the same DC name in your network), you maybe confuse everything in your network. Regards Marc -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] smb.conf sync
watch out when you do that!! i killed one of my previous test-setups by doing that when i forgot to change the netbios name for the second machine (so there were to DCs with the same netbios name, which totally blasted my setup. Even after shutting down all samba servers, stopping BIND, correcting the config, and trying to wipe the offending entries in the ._msdcs.blablabla zone, it kept spamming my logs every 5 secs about something (which i unfortunately dont remember now) so the simplest route was to reprovision. Lucky for me it was only a test setup :) Michael 2013/5/27 Sandbox > Hi, > > Just a quick question. > Do I have to syncronise my smb.conf file between my servers? > > Thanks, Robert > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/options/samba > -- Michael De Groote ICT-coordinator Sint-Pietersschool Korbeek-Lo ICT-support Sancta Maria Basisschool Leuven -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
[Samba] smb.conf sync
Hi, Just a quick question. Do I have to syncronise my smb.conf file between my servers? Thanks, Robert -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba