更新到 Kubuntu 13.10 beta(内核版本为 3.11.0-7-generic)后,我的 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
我还注意到以下可疑消息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.
这是什么问题?我该如何解决?
答案1
在启动时检查您的 fstab 文件。以读写模式编辑 fstab 文件,然后重新启动机器。
答案2
在我看来,挂载发生在 NFS 包完全初始化之前,需要更多时间才能完全初始化。
修复此问题可能涉及在重启周期中提前移动 NFS 初始化。
我还会为 NFS 选项添加“bg”。如果第一次挂载尝试失败,它会将挂载置于后台,以多次重试请求。