相当复杂的问题,我尽力了,也请更熟悉的人看过,但似乎没有任何成果。
在两台机器上,我们都无法使用 cifs 挂载网络共享,但在其他机器上,以及在同一子网中的 Windows 机器上,完全相同的过程都可以正常工作。/etc/fstab 在底部配置了以下几行:
#DFS Drive X
//ad.mydomain.org/data /mnt/DriveX cifs user,file_mode=0777,rw,gid=1000,vers=3.0,sec=ntlmssp,credentials=/etc/credentials.txt 0 0
#subdolder
//ad.mydomain.org/data/subfolder /mnt/subfolder cifs user,file_mode=0777,rw,gid=1000,vers=2.0,credentials=/etc/credentials.txt 0 0
//ad.mydomain.org/data/subfolder2 /mnt/subfolder2 cifs user,file_mode=0777,rw,gid=1000,vers=3.0,credentials=/etc/credentials.txt 0 0
/etc/credentails.txt 也已配置,并使用 chmod 700
所有提到的目录都已创建,但是当我输入“sudo mount -a”时系统卡住了,在一台机器上我们有时也会出现这种情况:
Message from syslogd@wks-schl-060 at Oct 13 15:37:40 ...
kernel:[ 2346.905732] watchdog: BUG: soft lockup - CPU#34 stuck for 1926s! [migration/34:223]
Message from syslogd@wks-schl-060 at Oct 13 15:38:00 ...
kernel:[ 2367.029834] watchdog: BUG: soft lockup - CPU#79 stuck for 2004s! [cifsd:4489]
以下是 cifs 上的 dmesg 输出:
[ 207.287549] CIFS: VFS: \\SRV-x.AD.MYDOMAIN.ORG has not responded in 180 seconds. Reconnecting...
[ 887.247795] rfkill: input handler enabled
[ 891.464229] EXT4-fs (sda): mounted filesystem a1c73175-df7b-4e2f-87f1-229141478d6e with ordered data mode. Quota mode: none.
[ 891.491923] rfkill: input handler disabled
[ 958.467584] CIFS: VFS: \\ad.mydomain.org\IPC$ smb2_get_dfs_refer: ioctl error: rc=-78
[ 1040.850969] EXT4-fs (nvme1n1): mounted filesystem 477b98b5-c5e6-470d-a033-36d845709d01 with ordered data mode. Quota mode: none.
[ 1892.463967] CIFS: VFS: reconnect tcon failed rc = -11
[ 1892.465891] CIFS: VFS: \\SRV-x.AD.MYDOMAIN.ORG Send error in SessSetup = -11
[ 1892.471705] CIFS: VFS: \\SRV-x.AD.MYDOMAIN.ORG\IPC$ smb2_get_dfs_refer: ioctl error: rc=-13
[ 4071.728893] CIFS: VFS: reconnect tcon failed rc = -11
[ 4071.731358] CIFS: VFS: \\SRV-x.AD.MYDOMAIN.ORG Send error in SessSetup = -11
[ 4071.738955] CIFS: VFS: \\SRV-x.AD.MYDOMAIN.ORG\IPC$ smb2_get_dfs_refer: ioctl error: rc=-78
[ 6251.041749] CIFS: VFS: \\SRV-x.AD.MYDOMAIN.ORG Send error in SessSetup = -11
[ 6251.043897] CIFS: VFS: \\SRV-x.AD.MYDOMAIN.ORG Send error in SessSetup = -11
[ 6251.048689] CIFS: VFS: \\SRV-x.AD.MYDOMAIN.ORG disabling echoes and oplocks
[ 6251.048721] CIFS: VFS: \\SRV-x.AD.MYDOMAIN.ORG Send error in SessSetup = -11
[10298.322219] CIFS: VFS: \\SRV-x.AD.MYDOMAIN.ORG Send error in SessSetup = -11
[10298.330581] CIFS: VFS: reconnect tcon failed rc = -11
[10298.337341] CIFS: VFS: \\SRV-x.AD.MYDOMAIN.ORG\IPC$ smb2_get_dfs_refer: ioctl error: rc=-78
[14345.591042] CIFS: VFS: \\SRV-x.AD.MYDOMAIN.ORG Send error in SessSetup = -11
[14345.595349] CIFS: VFS: reconnect tcon failed rc = -11
[14345.599895] CIFS: VFS: \\SRV-x.AD.MYDOMAIN.ORG\IPC$ smb2_get_dfs_refer: ioctl error: rc=-78
[18392.848970] CIFS: VFS: reconnect tcon failed rc = -11
[18392.851997] CIFS: VFS: reconnect tcon failed rc = -11
[18392.855095] CIFS: VFS: \\SRV-x.AD.MYDOMAIN.ORG\IPC$ smb2_get_dfs_refer: ioctl error: rc=-78
可以从同一子网上的 Windows 系统对要安装共享的服务器进行 ping 操作并进行访问。nmap 显示端口 445 和 139 已打开。
请帮我解决这个问题,我真的没有答案了,哈哈哈