nfs mount 在启动时失败

nfs mount 在启动时失败

更新到 Kubuntu 13.10(测试版)后,我的 nfs 共享在启动期间停止自动挂载。

这是我的 fstab:

dimanne@Impedance:~$ cat /etc/fstab
# <file system>                           <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sda1 during installation
UUID=328a9124-e5ff-4c13-a7e2-559ee6a20292 /               ext4    errors=remount-ro 0       1
# swap was on /dev/sda5 during installation
UUID=b3a4a4a4-c563-45c1-9d6b-602b07d66c70 none            swap    sw              0       0
# was on /dev/sdb1
UUID=9383ee42-aea8-4098-9533-08d1b9b04e59 /mnt/backup    ext4   defaults        0       2
# was on /dev/sdc1
UUID=4ad4e84a-1e0e-4cb6-a63a-753d3ffc9ff2 /mnt/freedata ext4    defaults        0       2

server:/mnt/media                       /mnt/media      nfs4    defaults

/dev/fd0        /media/floppy0  auto    rw,user,noauto,exec,utf8 0       0

我还注意到以下可疑消息dmesg

dimanne@Impedance:~$ dmesg | grep killed
[   23.436063] init: idmapd-mounting (/mnt/media) main process (455) killed by TERM signal
[   26.828198] init: failsafe main process (1119) killed by TERM signal
[   28.352642] init: kdm main process (1757) killed by TERM signal

但是,如果我手动挂载 nfs 共享(sudo mount -vvv server:/mnt/media /mnt/media),一切都会正常进行,但此时我会在 dmesg 中收到这些消息

[  458.804009] NFS: Registering the id_resolver key type
[  458.804024] Key type id_resolver registered
[  458.804026] Key type id_legacy registered
[  473.827828] RPC: AUTH_GSS upcall timed out.
[  473.827828] Please check user daemon is running.

这是什么问题?我该如何解决?

PS我已经读过这个NFS Mount 启动失败但没有解决方案......

答案1

在 Ubuntu 12.04 上,可以通过将“rpcsec_gss_krb5”模块列入黑名单来解决此问题。只需在“/etc/modprobe.d/blacklist.conf”末尾添加“blacklist rpcsec_gss_krb5”即可。

当然,如果你不使用 Kerberos,这种解决方案也是合适的。你可以在这个 bug 上找到更多详细信息这里这里

答案2

您需要将“server”替换为您服务器的 IP 地址,并将“/mnt/media”替换为您服务器的共享资源/目录...

相关内容