NFSv3导出带有绑定子目录的目录

我一直在挠头,并认为我会张贴,看看我是否错过了任何明显的!

情况是这样的:

服务器包含一个名为“程序”的非常大的文件夹,这是一个LVM卷,通过networking共享(在Ubuntu和OSX之间混合),所有用户都被授予了R / W访问权限。

摄像头已经安装到我们的工作室(我正在从伦敦的一家电台写)和FTP图像到服务器上的用户帐户( /home/webcam )。

我想绑定程序下的/home/webcam目录,以便在导出程序时可以访问networking。

我已经做了以下fstab:

 #LVM Disk UUID_OF_LVM /media/Programmes ext3 errors=remount ro,users,user,relatime #Bind Web Cam directory and then remount with new RO options /home/webcam /media/Programmes/Web_Cam none bind,user 0 0 /media/Programmes/Web_Cam /media/Programmes/Web_Cam none remount,ro 0 0 #Bind to export directory and use rbind to include submounts /media/Programmes /export/Programmes bind rbind 

在我的/ etc / exports中:

 /export/Programmes 10.0.2.0/255.255.255.0(nohide,fsid=0,async,all_squash,anonu id=1000,anongid=1000,insecure,no_subtree_check,rw, crossmnt) 

我可以看到客户端上的Web-Cam文件夹,但是它是空的。 我怀疑这是一个用户权限问题,因为我正在导出一个用户主目录(恰巧,在Ubuntu上它有一个目录锁)

NFS不“共享文件夹”(它不是SMB / CIFS)。 它导出整个文件系统。 您必须指定要通过NFS导出哪些文件系统。 如果您在导出的文件系统中挂载或链接文件系统,则不会导出文件系统,您还必须显式导出文件系统。

你要求的东西需要NFS版本4:

NFS版本4服务器创build和维护伪文件系统,为客户端提供对服务器上所有导出对象的无缝访问。 在NFS版本4之前,伪文件系统不存在。 客户端被迫安装每个共享服务器文件系统进行访问。

– NFS版本4中的文件系统命名空间