我在XBMC和am流媒体文件服务器(使用NFS挂载)中使用Ubuntu12.04。
现在,我已经配置fstab来挂载我的NFS共享,如下所示:
192.168.0.99:/tank/media /mnt/media nfs4 _netdev,auto 0 0然而,有时挂载还不可用(?)当XBMC启动时,所以当我尝试从该挂载播放一个文件时,它会冻结(即等待,然后等待.)。为了解决这个问题,我需要将SSH放到服务器并挂载-a。(或者,有时我可以等待几分钟,它可能会自行修复和/或完成安装。
在这种情况下使用AutoFS更好吗?如果没有,还有哪些其他选择可供选择?
编辑:我还希望挂载能够抵御文件服务器停机或奇怪的网络问题等等。
发布于 2013-01-14 09:29:28
我已经使用了多年的媒体文件的静态挂载和良好的结果,因为我们希望他们的高度可用。然而,我们有一个专门的HTPC/MediaServer运行24/7 (它也需要晚上从台座备份)。我认为AutoFS看起来很复杂,只是将服务器分区安装在fstab中,然后让它们运行。我不喜欢断断续续地切换硬盘。
我不知道你的坐骑为什么会这样?设置nfs4挂载的方式有什么奇怪之处吗?我认为我修复了/etc/exports条目中父目录上的“交叉”选项的类似问题。在打开父导出文件夹后,子挂载将被延迟一段时间。我认为在顶层/etc/export中使用了crossmnt选项;子挂载弹出得很快,但我已经有一段时间没有解决这个问题了。
列出您的/etc/导出将有帮助。
在客户端:
$cat /proc/mounts | grep nfs4将显示所有正在结束的客户端nfs4挂载选项。
这可能会帮助你从nfs文件系统的nfs格式和选项
bg / fg Determines how the mount(8) command behaves if an
attempt to mount an export fails. The fg option causes
mount(8) to exit with an error status if any part of the
mount request times out or fails outright. This is
called a "foreground" mount, and is the default behavior
if neither the fg nor bg mount option is specified.
If the bg option is specified, a timeout or failure
causes the mount(8) command to fork a child which
continues to attempt to mount the export. The parent
immediately returns with a zero exit code. This is
known as a "background" mount.
If the local mount point directory is missing, the
mount(8) command acts as if the mount request timed out.
This permits nested NFS mounts specified in /etc/fstab
to proceed in any order during system initialization,
even if some NFS servers are not yet available.
Alternatively these issues can be addressed using an
automounter (refer to automount(8) for details).https://askubuntu.com/questions/234737
复制相似问题