I am trying to find any information about nmbd in cluster environment.
Ctdb project made it possible to run samba cluster. Ctdb's wiki
recommends to configure DNS and WINS with cluster public IP's.
However, it is not clear how does nmbd work in the cluster?
Does it run on single node or there is some synchronization between
different instances?
Please share information if you have it.
Thanks in advance,
Evgeny
Hi Evgeny,
Evgeny Privarotskiy wrote:
> Hi,
>=20
The NetBIOS browsing stuff works with broadcasts. Since the nodes
in a samba-ctdb cluster should appear as _one_ cifs server with a
common netbios name and so on, when you start nmbd on mutliple
nodes, then the nmbd will compete with each other about who the
names belong to. Also the wins functionality of nmbd is not
replicated properly in the cluster (it is not a tdb database that
could be replicated by ctdb).
So my advice is this: do _not_ start nmbd on the cluster nodes!
(But if for some reason you really really want to start it,
start it on one node at most, but this won't work very well
either, since it will only register the current node's IP
addresses.)
The advice above for configuring the WINS server is referring
to an external WINS server: Just register all the public
IP addresses for the cluster's netbios name, just as you
create A records for each public IP in DNS.
Hope this helps.
Cheers - Michael
--i3lJ51RuaGWuFYNw
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: comment
iD8DBQFKXOzlyU9JOBhPkDQRAkG/AJ0SGWsX/0hT46HXxh5wtrigOdRfkQCglfAZ
d+PmImDnh2MUQLuyYnI6CyQ=
=2a5o
-----END PGP SIGNATURE-----
--i3lJ51RuaGWuFYNw--
Thanks for prompt reply.
1. Suppose that there is a need to support broadcast. In this case
nmbd should run only on one of the nodes (as you said). I am checking
the following solution. Nmbd has access to the list of Public IP's and
answers to name query requests using round robin among IP's. My
question is if this solution will be interesting to samba?
2. Regarding WINS. Do you mean manually register Public IP's in WINS
server? If I understand samba code correct, currently nmbd cannot
register several Public IP into WINS. Am I right?
Thanks in advance,
Evgeny
On Tue, Jul 14, 2009 at 11:39 PM, Michael Adam<ob...@samba.org> wrote:
> Hi Evgeny,
>
> Evgeny Privarotskiy wrote:
>> Hi,
>>
> The NetBIOS browsing stuff works with broadcasts. Since the nodes
> in a samba-ctdb cluster should appear as _one_ cifs server with a
> common netbios name and so on, when you start nmbd on mutliple
> nodes, then the nmbd will compete with each other about who the
> names belong to. Also the wins functionality of nmbd is not
> replicated properly in the cluster (it is not a tdb database that
> could be replicated by ctdb).
There is a config parameter cluster addresses with which you can specify
which addresses nmbd should announce on the network.
However there is currently no direct interaction between ctdb and nmbd,
so each time you modify your list of public addresses, you'll have to
update that parameter.
I am not sure if this allows to run nmbd multiple times, but at least
with one nmbd, it will announce all addresses of your cluster.
Cheers,
Christian
Christian M Ambach wrote:
> Michael wrote on 07/14/2009 10:39:01 PM:
>=20
> > The NetBIOS browsing stuff works with broadcasts. Since the nodes
> > in a samba-ctdb cluster should appear as _one_ cifs server with a
> > common netbios name and so on, when you start nmbd on mutliple
> > nodes, then the nmbd will compete with each other about who the
> > names belong to. Also the wins functionality of nmbd is not
> > replicated properly in the cluster (it is not a tdb database that
> > could be replicated by ctdb).
>=20
> There is a config parameter cluster addresses with which you can specify
> which addresses nmbd should announce on the network.
> However there is currently no direct interaction between ctdb and nmbd,
> so each time you modify your list of public addresses, you'll have to
> update that parameter.
> =20
> I am not sure if this allows to run nmbd multiple times, but at least
> with one nmbd, it will announce all addresses of your cluster.
Golly gosh - I was not aware of this at all!!
Thanks Christian for pointing this out...
It is precisely supposed to make nmbd runnable on all cluster
nodes. Metze has added this 2 years ago... As Christian wrote,
you need to update this setting when you change the overall list of
public IP addresses.
When you specify an (external) wins server in smb.conf, then
the nmbds will register the cluster addresses with the wins
server (under the netbios name of the cluster) automatically.
This should be an external server though.
Michael
--iAL9S67WQOXgEPD9
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: comment
iD8DBQFKXZkGyU9JOBhPkDQRAhN4AKCdh+k57XpNfoyeMVRleI5I9x0XSQCdF7ov
6xhNfLNQSgKC6fZFnoxCOiU=
=BvL/
-----END PGP SIGNATURE-----
--iAL9S67WQOXgEPD9--
On Wed, Jul 15, 2009 at 11:53 AM, Michael Adam<ob...@samba.org> wrote:
> Christian M Ambach wrote:
>> Michael wrote on 07/14/2009 10:39:01 PM:
>>
>> > The NetBIOS browsing stuff works with broadcasts. Since the nodes
>> > in a samba-ctdb cluster should appear as _one_ cifs server with a
>> > common netbios name and so on, when you start nmbd on mutliple
>> > nodes, then the nmbd will compete with each other about who the
>> > names belong to. Also the wins functionality of nmbd is not
>> > replicated properly in the cluster (it is not a tdb database that
>> > could be replicated by ctdb).
>>
>> There is a config parameter cluster addresses with which you can specify
>> which addresses nmbd should announce on the network.
>> However there is currently no direct interaction between ctdb and nmbd,
>> so each time you modify your list of public addresses, you'll have to
>> update that parameter.
>>