我正在尝试在 Ubuntu(版本 20.04)系统(在 Dell Precision Tower 3620 上)上对 Solaris(版本 5.10)文件系统(在 Sun Blade 2500 上)进行 NFS 挂载。我(可能不正确)的理解是这应该是可行的。参见,例如这
我将描述我的设置以及我为执行连接所做的操作。我的问题是:你能看到/猜猜我做错了什么,并提出修复建议。
我在两台机器之间有直接的以太网电缆连接。通过此链接,我可以从另一台机器 ping 通每台机器。通过此链接,我可以通过 telnet 和 ftp 从 Ubuntu 计算机到 Solaris 计算机。
Sun的IP地址是128.104.77.240。
戴尔的IP地址是128.104.77.239。
/etc/dfs/dfstab
在太阳的文件中我有
share -F nfs -o rw=128.104.77.239 /export/home
/etc/dfs/sharetab
在太阳的文件中我有
/export/home - nfs rw=128.104.77.239
在太阳上我做了:
svcadm -v disable network/nfs/server
svcadm -v enable network/nfs/server
shareall
在 Dell 上,我通过执行以下操作来确保 NFS 客户端功能可用:
sudo apt install nfs-common
我在戴尔上做过
sudo mount -vt nfs 128.104.77.240:/export/home /home/user/test
并得到了
[sudo] password for user:
我提供的。
然后我得到了
mount.nfs: timeout set for Sat Mar 19 16:51:55 2022
mount.nfs: trying text-based options 'vers=4.2,addr=128.104.77.240,clientaddr=128.104.77.239'
mount.nfs: mount(2): Input/output error
mount.nfs: mount system call failed
有什么建议/猜测吗???
回复 Andrew: 3/25/22, 6:42
在 Dell 上运行(Ubuntu 机器,128.104.77.239):
showmount -e 128.104.77.240
产生
128.104.77.240 的导出列表:
/export/home/test 128.104.77.239
响应 Romeo:我更改了 Sun /etc/default/nfs 文件,以便 NFS 版本为 3。
我随后获得的结果的一个示例是:
root@user-Precision-Tower-3620:/home/user# mount -vt nfs 128.104.77.240:/export/home/test /home/steve2/mount_test
mount.nfs: timeout set for Fri Mar 25 16:03:36 2022
mount.nfs: trying text-based options 'vers=4.2,addr=128.104.77.240,clientaddr=128.104.77.239'
mount.nfs: mount(2): Protocol not supported
mount.nfs: trying text-based options 'vers=4.1,addr=128.104.77.240,clientaddr=128.104.77.239'
mount.nfs: mount(2): Protocol not supported
mount.nfs: trying text-based options 'vers=4.0,addr=128.104.77.240,clientaddr=128.104.77.239'
mount.nfs: mount(2): Protocol not supported
mount.nfs: trying text-based options 'addr=128.104.77.240'
mount.nfs: prog 100003, trying vers=3, prot=6
mount.nfs: trying 128.104.77.240 prog 100003 vers 3 prot TCP port 2049
mount.nfs: prog 100005, trying vers=3, prot=17
mount.nfs: trying 128.104.77.240 prog 100005 vers 3 prot UDP port 32781
mount.nfs: mount(2): Permission denied
mount.nfs: access denied by server while mounting 128.104.77.240:/export/home/test