Netbios aliases on HP/Compaq TruCluster

Jean-Michel Barbet barbet at subatech.in2p3.fr
Wed Dec 3 08:51:48 GMT 2003


Hi,

This question was already posted in the main samba newsgroup 
but I got no answers. I apologize for those who havec seen it
already, bu thought that one might know the answer here...

I run Samba V2.2.8a on a Compaq cluster composed of two servers
nanas1 and nanas2. The Cluster is seen as one machine named nanasc.
The operating system is 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.

Here is the patch I applied :

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"). This is not
the case if I do not run virtual servers (I only see "nanasc", the 
configured Netbios name)


a) With virtual servers "nanasc" and "smart" :
----------------------------------------------
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>


b) Without virtual servers (netbios name = nanasc) :
----------------------------------------------------
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 when I run virtual
servers. 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.



More information about the samba-technical mailing list