[Samba] Active/Passive Samba Cluster for Shared NFS Backend

Andrew Martin amartin at xes-inc.com
Wed Sep 17 12:57:42 MDT 2014


I am working on setting up an Active/Passive Samba cluster on Ubuntu 14.04
using Samba 4.1.6. Samba will be sharing an NFS mount so that it can be
accessible to CIFS clients. Thus, the server setup is as follows:

             -- cifs0 --
            /           \
           /             \
NFS_Server                VIP --- CIFS clients
           \             /
            \           /
             -- cifs1 --

The NFS export is mounted at the same place on both cifs0 and cifs1, /mnt/nfs.
I have configured "lock directory" to point at a directory inside of the NFS
lock directory = /mnt/nfs/locks

I then configured a share: 
 path = /mnt/nfs/test
 browseable = yes
 public = yes
 guest ok = yes
 writable = yes
 create mode = 0644
 directory mode = 0775

Both cifs0 and cifs1 are running keepalived to export a VIP and move it between
the two of them. All CIFS clients use this VIP for accessing the share. I have
some questions about this setup:
 * does "private dir" also need to be on the shared NFS directory? I am syncing
   the smb.conf to be identical on both servers (except for "netbios name"), so
   I don't think it's necessary to have it on shared storage 
 * can I have smbd and nmbd running on both cifs0 and cifs1 simultaneously, 
   since traffic should only come through one server at any given time?  
 * are there any other problems with this configuration?


Andrew Martin

More information about the samba mailing list