[Samba] Netbios aliases (virtual hosts) and TruCluster

Jean Michel BARBET Jean-Michel.Barbet at subatech.in2p3.fr
Wed Nov 26 15:02:11 GMT 2003


Hi,

I run Samba V2.2.8a on a dual Alpha system under TruCluster V5.1a.

I had to patch the file samba-2.2.8a/source/lib/interface.c to make
the failover from one member of the cluster to the other work.
Samba runs on one member at a time.

See :

http://www.dragoninc.on.ca/mail-archives/samba-technical/2001-08/0364.html

Now, I want to use netbios aliases to make users believe that there
are several different servers. The problem is that, along with the
names "nanasc" and "smart" which corresponds to my virtual servers
(actually nanasc is also the name of the whole cluster),the name of the
machine on which samba runs appears (here : "nanas2").


nmblookup -A <ip-of-cluster-alias>
Looking up status of <ip-of-cluster-alias>
	NANAS2          <00> -         B <ACTIVE>
	NANAS2          <03> -         B <ACTIVE>
	NANAS2          <20> -         B <ACTIVE>
	NANASC          <00> -         B <ACTIVE>
	NANASC          <03> -         B <ACTIVE>
	NANASC          <20> -         B <ACTIVE>
	SMART           <00> -         B <ACTIVE>
	SMART           <03> -         B <ACTIVE>
	SMART           <20> -         B <ACTIVE>
	SUBATECH        <00> - <GROUP> B <ACTIVE>
	SUBATECH        <1e> - <GROUP> B <ACTIVE>

This is not the case without the netbios alias configuration
(only the name of the cluster is published, not the name
  of the member on which runs samba) :

nmblookup -A <ip-of-cluster-alias>
Looking up status of <ip-of-cluster-alias>
	NANASC          <00> -         B <ACTIVE>
	NANASC          <03> -         B <ACTIVE>
	NANASC          <20> -         B <ACTIVE>
	SUBATECH        <00> - <GROUP> B <ACTIVE>
	SUBATECH        <1e> - <GROUP> B <ACTIVE>

I do not want the name "nanas2" to be published. I tried the options
"bind interfaces only = yes" and "interfaces = <ip-of-cluster-alias>"
without any success.

Does someone know how to deal with TruCluster and how to avoid
this problem.

Hope it is clear enough. Thank you.

Jean-Michel.

-- 
------------------------------------------------------------------------
Jean-michel BARBET                    | Tel: +33 (0)2 51 85 84 86
Laboratoire SUBATECH Nantes France    | Fax: +33 (0)2 51 85 84 79
CNRS-IN2P3/Ecole des Mines/Universite | E-Mail: barbet at subatech.in2p3.fr
------------------------------------------------------------------------




More information about the samba mailing list