Good Day, We experience the following when we have outages or perform disaster recovery exercises. Our DFS Shares come from a Windows cluster with 2 servers, each one in a different location. When the server that we have active connections to goes offline, the server has an issue connecting to the second server. This even happens under a controlled shutdown and startup situation. If we persistently try and force the server to mount the share it will eventually connect to the second server ... this is time consuming and annoying. Here is an example from '/etc/fstab' file : //our.domain.com/PATH/TO/SHARE /target cifs credentials=/etc/samba/credfiles/credentials,uid=user,gid=group,_netdev 0 0 Servers Vary between RHEL 6 / 7 and SLES12. We patch quarterly so various software packages are never that out of date. Can anyone provide some assistance in this matter ? Much appreciated. Regards Shaun
(re-sending to list with right address) Shaun Glass via samba <samba at lists.samba.org> writes:> Our DFS Shares come from a Windows cluster with 2 servers, each one in > a different location. When the server that we have active connections > to goes offline, the server has an issue connecting to the second > server. This even happens under a controlled shutdown and startup > situation.DFS failover support was added to cifs.ko in Linux v5.0 (and backported to SLE15-SP1, can't say for RHEL). It also requires a change in cifs-utils so that the cached DNS entries expire, released in cifs-utils v6.9 (unreleased yet). Cheers, -- Aurélien Aptel / SUSE Labs Samba Team GPG: 1839 CB5F 9F5B FB9B AA97 8C99 03C8 A49B 521B D5D3 SUSE Linux GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany GF: Felix Imendörffer, Jane Smithard, Graham Norton, HRB 21284 (AG Nürnberg)
Hi, As requested : search our.domain.com nameserver 10.11.12.13 nameserver 10.11.12.14 options rotate options timeout:1 First DNS Server sits in original location, second is in location we fail over to. As for handling remount ... just manually from command line. If there is indeed a fix down the line we can wait. Our DR exercises are normally twice a year and at least 6 months or more until then. Regards Shaun On Tue, Mar 19, 2019 at 7:10 PM Aurélien Aptel <aaptel at suse.com> wrote:> > (re-sending to list with right address) > > Shaun Glass via samba <samba at lists.samba.org> writes: > > Our DFS Shares come from a Windows cluster with 2 servers, each one in > > a different location. When the server that we have active connections > > to goes offline, the server has an issue connecting to the second > > server. This even happens under a controlled shutdown and startup > > situation. > > DFS failover support was added to cifs.ko in Linux v5.0 (and backported > to SLE15-SP1, can't say for RHEL). > > It also requires a change in cifs-utils so that the cached DNS entries > expire, released in cifs-utils v6.9 (unreleased yet). > > Cheers, > > -- > Aurélien Aptel / SUSE Labs Samba Team > GPG: 1839 CB5F 9F5B FB9B AA97 8C99 03C8 A49B 521B D5D3 > SUSE Linux GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany > GF: Felix Imendörffer, Jane Smithard, Graham Norton, HRB 21284 (AG Nürnberg)