<div dir="ltr">Hello,<div><br></div><div>If you have an Active Directory domain, I would either create a domain DFS root.</div><div>Then create in DFS a share that will point to both node.</div><div>So Windows clients, using DFS client, will figure out to use available node from all enabled.</div><div>You can also use cost &amp; co to direct client.</div><div><br></div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature">Cordialement,<br>Mathieu CHATEAU<br><a href="http://www.lotp.fr" target="_blank">http://www.lotp.fr</a></div></div>
<br><div class="gmail_quote">2015-08-17 5:54 GMT+02:00 Colin Coe <span dir="ltr">&lt;<a href="mailto:colin.coe@gmail.com" target="_blank">colin.coe@gmail.com</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi all<br>
<br>
I&#39;ve setup a two node replicated system that is providing NFS and<br>
SMB/CIFS services to clients (RHEL5,6,7 with NFS and<br>
WinXP,7,2008R2,2012R2).<br>
<br>
I&#39;m try to create a DFS mount point for Windows nodes to use.  I&#39;m<br>
doing this so that if I have to take down one of the Gluster nodes for<br>
maintenance, Windows nodes won&#39;t be affected.<br>
<br>
I&#39;ve googled but not found how to make Gluster and Samba DFS play nicely.<br>
<br>
Version info:<br>
OS - RHEL7.1<br>
Samba - 4.1.12<br>
Gluster - 3.7.3<br>
<br>
smb.conf (sanitized)<br>
---<br>
[global]<br>
        workgroup = DOMAIN<br>
        realm = <a href="http://DOMAIN.COMPANY.COM" rel="noreferrer" target="_blank">DOMAIN.COMPANY.COM</a><br>
        server string = Samba Server Version %v<br>
        security = ADS<br>
        dedicated keytab file = /etc/krb5.keytab<br>
        kerberos method = secrets and keytab<br>
        log file = /var/log/samba/log.%m<br>
        max log size = 50<br>
        client signing = if_required<br>
        load printers = No<br>
        winbind enum users = Yes<br>
        winbind enum groups = Yes<br>
        winbind use default domain = Yes<br>
        winbind nss info = rfc2307<br>
        winbind refresh tickets = Yes<br>
        winbind offline logon = Yes<br>
        idmap config DOMAIN:range = 10000-9999999999<br>
        idmap config DOMAIN:schema_mode = rfc2307<br>
        idmap config DOMAIN:backend = ad<br>
        idmap config *:range = 2000-9999<br>
        idmap config * : backend = tdb<br>
        map acl inherit = Yes<br>
        printing = bsd<br>
        cups options = raw<br>
        print command = lpr -r -P&#39;%p&#39; %s<br>
        lpq command = lpq -P&#39;%p&#39;<br>
        lprm command = lprm -P&#39;%p&#39; %j<br>
        store dos attributes = Yes<br>
        vfs objects = acl_xattr<br>
<br>
[fileshare]<br>
        comment = For samba share of volume gv_fileshare<br>
        path = /export/dfsroot<br>
        admin users = @&#39;DOMAIN\Domain, Admins&#39;<br>
        read only = No<br>
        guest ok = Yes<br>
        vfs objects = glusterfs, acl_xattr<br>
        msdfs root = Yes<br>
        glusterfs:loglevel = 7<br>
        glusterfs:logfile = /var/log/samba/gv_fileshare.log<br>
        glusterfs:volume = gv_fileshare<br>
---<br>
<br>
gluster volume status<br>
---<br>
Status of volume: gv_fileshare<br>
Gluster process                             TCP Port  RDMA Port  Online  Pid<br>
------------------------------------------------------------------------------<br>
Brick benfil01:/export/vdb1/brick1          49153     0          Y       2286<br>
Brick benfil02:/export/vdb1/brick1          49154     0          Y       3629<br>
NFS Server on localhost                     2049      0          Y       19731<br>
Self-heal Daemon on localhost               N/A       N/A        Y       19739<br>
NFS Server on fs02                                       N/A       N/A<br>
       N       N/A<br>
Self-heal Daemon onfs02                                 N/A       N/A<br>
      Y       3595<br>
<br>
Task Status of Volume gv_fileshare<br>
------------------------------------------------------------------------------<br>
There are no active volume tasks<br>
---<br>
<br>
Lastly, I can&#39;t work out why the NFS service generally doesn&#39;t start<br>
on boot.  It seems to be somewhat automagical...  I&#39;ve been through<br>
<a href="http://www.gluster.org/community/documentation/index.php/Gluster_3.1:_NFS_Frequently_Asked_Questions" rel="noreferrer" target="_blank">http://www.gluster.org/community/documentation/index.php/Gluster_3.1:_NFS_Frequently_Asked_Questions</a><br>
but can&#39;t see whats wrong.  How do I go about trouble shooting this?<br>
<br>
<br>
Thanks<br>
_______________________________________________<br>
Gluster-users mailing list<br>
<a href="mailto:Gluster-users@gluster.org">Gluster-users@gluster.org</a><br>
<a href="http://www.gluster.org/mailman/listinfo/gluster-users" rel="noreferrer" target="_blank">http://www.gluster.org/mailman/listinfo/gluster-users</a><br>
</blockquote></div><br></div>