【问题标题】:How to explain NFS crossmnt argument?如何解释 NFS crossmnt 参数?
【发布时间】:2013-12-02 02:56:10
【问题描述】:

我的一个客户发现他需要在 NFS 导出选项中包含“crossmnt”。我打算将选项写入我们的软件,这样他就不必进行破解,并且可以将 crossmnt 用作真正的选项。

这是我可以在我们的文档中使用的对 crossmnt 的正确解释吗?

Crossmnt 允许 NFS 客户端遍历导出的根目录下的目录。例如: 等/出口:

/exports      *(fsid=0,ro,root_squash,sync)
/exports/doc  *(ro,root_squash,bind=/usr/share/doc)

使用crossmnt,客户端可以看到/exports/doc 的内容为/exports 的子文件夹,而没有crossmnt,doc 会显示为一个空文件夹。

此视频用作示例: https://www.youtube.com/watch?v=-9cJciX8dB8

听起来对吗?谢谢。

【问题讨论】:

    标签: nfs


    【解决方案1】:

    我相信这个解释中缺少一些东西。我从 crossmount 中了解到的是,它允许您在导出的目录中查看安装点。如果导出的目录没有在其子文​​件夹上挂载任何分区,则它们应该在 NFS 的客户端可见。

    例如,如果您在“/mnt/testing_dir”上有一个导出目录,其内容如下:

    /mnt/testing_dir/
                     dir1/
                               text1.txt
                               executable.bin
                     dir2/ (mount point for /dev/sda6)
                               doc1
                               doc2
    

    即使没有“crossmnt”选项,“dir1”也将可见。然而,“dir2”,因为它是一个安装点,使用“crossmnt”选项将可见,没有它将是空的(除非您使用“nohide”等其他选项)。

    参考:

    crossmnt - This option is similar to nohide but it makes it possible for clients to move from the filesystem marked with crossmnt to exported filesystems mounted on it. Thus when a child filesystem "B" is mounted on a parent "A", setting crossmnt on "A" has the same effect as setting "nohide" on B.

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-07-02
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多