CentOS 7 nfs服务器使autofs nfs客户端运行macOS 10.11+崩溃

我想知道为什么macOS客户端在从CentOS 7服务器自动挂载的NFS主目录上访问文件时重启。 与CentOS 6 NFS服务器完全相同的configuration工作得非常好。

在CentOS 7服务器上:

# cat /etc/selinux/config SELINUX=disabled SELINUXTYPE=targeted # systemctl stop firewalld # cat /etc/exports /export mac.corp.org(rw,insecure) # systemctl enable nfs # systemctl start nfs # showmount -e Export list for c7.corp.org: /export mac.corp.org # id jdoe uid=1001(jdoe) gid=1001(jdoe) groups=1001(jdoe) 

在macOS客户端(ElCapitan或Sierra)上:

 # cat /etc/auto_home jdoe -fstype=nfs,vers=4,sec=sys,proto=tcp,resvport,soft,intr,rsize=32768,wsize=32768,nosuid,rw c7.corp.org:/export/& # id jdoe uid=1001(jdoe) gid=1001(jdoe) groups=20(staff),701(com.apple.sharepoint.group.1),12(everyone),61(localaccounts),79(_appserverusr),80(admin),81(_appserveradm),98(_lpadmin),33(_appstore),100(_lpoperator),204(_developer),395(com.apple.access_ftp),398(com.apple.access_screensharing),399(com.apple.access_ssh-disabled) # su - jdoe Password: # pwd /home/jdoe # mount /dev/disk0s2 on / (hfs, local, journaled) devfs on /dev (devfs, local, nobrowse) map -hosts on /net (autofs, nosuid, automounted, nobrowse) map auto_home on /home (autofs, automounted, nobrowse) c7.corp.org:/export/jdoe on /home/jdoe (nfs, nodev, nosuid, automounted, nobrowse) # vim non-existant_file.txt :q 

使用VI这个简单的“打开/closures”function会使macOS崩溃并重新启动,而不会在/private/var/log/system.log中写入任何内容。

有谁知道如何解决我的问题?

修复是configurationautofs使用nfs v3。 Osx有一个nfsv4的破坏,苹果公司并不急于解决这个问题。

  jdoe -fstype=nfs,vers=3,sec=sys,proto=tcp,resvport,soft,intr,rsize=32768,wsize=32768,nosuid,rw c7.corp.org:/export/&