Centos 仅接受第一个 DFS 推荐

Centos 仅接受第一个 DFS 推荐
$ umount -a:
Linux server01 3.10.0-957.1.3.el7.x86_64 #1 SMP Thu Nov 29 14:49:43 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

我能够使用以下命令成功挂载 DFS 文件共享:

$ sudo mount.cifs \\\\domain.com\\share /mnt/share -o username=user

$ mount | grep domain
\\domain.com\share on /mnt/share type cifs (rw,relatime,vers=default,cache=strict,username=user,domain=,uid=0,noforceuid,gid=0,noforcegid,addr=10.0.0.10,file_mode=0755,dir_mode=0755,soft,nounix,serverino,mapposix,rsize=1048576,wsize=1048576,echo_interval=60,actimeo=1)

以下是 Windows 上 DFSutil.exe 的输出,显示了有效的引用:

C:/> dfsutil /pktinfo
Entry: \domain.com\share
ShortEntry: \domain.com\share
Expires in 260 seconds
UseCount: 0 Type:0x8081 ( REFERRAL_SVC DFS FAILBACK_ENABLED )
   0:[\DFS-02\Share] AccessStatus: 0 ( ACTIVE TARGETSET )
   1:[\DFS-01\Share] ( TARGETSET )

如果我模拟主服务器 (10.0.0.10) 发生故障,即使第二个引用有效,也无法挂载共享。我已包含详细的命令输出:

sudo iptables -I OUTPUT -j DROP -d DFS-02.domain.com
sudo mount.cifs \\\\domain.com\\share /mnt/share -o username=user --verbose
Password for user@\domain.com\share:  *****
mount.cifs kernel mount options: ip=10.0.0.4,unc=\\domain.com\share,user=user,pass=********
mount error(115): Operation now in progress
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
sudo tail /var/log/messages
May 30 11:50:52 server01 kernel: CIFS VFS: BAD_NETWORK_NAME: \\domain.com\share

10.0.0.4 是我的 DC。我可以通过重新确定 Windows 端 DFS 引用的优先级来手动强制切换,但此处 DFS 的目的是自动切换到有效服务器。Windows 客户端默认能够执行此操作。我们最近有一个 DFS 服务器宕机,导致的问题比我们预期的要多。

我可能遗漏了 cifs 的配置或包吗?DFS 引用在其他版本上是否正常工作?

不是重复的2013 年的问题,没有答案,并且引用了无效链接。似乎与较旧的问题无关,在较旧的问题中,需要添加较旧的 keyutils (<1.5) dns_resolver 条目才能使用 cifs.upcall。

相关内容