Re: recursively share NFS
On Wed, Mar 19, 2025 at 14:53:51 -0400, Eben King wrote:
> I have this machine "alexandria". It mounts a directory from the nas
> via NFS. When I export a parent directory on alexandria, the mount
> point appears empty, even though you can ssh to it and see everything
> there that should be. How do I get it to share the contents of that mount?
As I understand it, you have three machines: alexandria (a), nas (n)
and another client (c).
You have shared a directory from n, and mounted it on a (at /foo/bar).
Meanwhile, you have shared directory /foo from a, and mounted it on c.
I believe all of these shares and mounts are using NFS.
If I understand correctly, you are wondering why c cannot see the
contents of /foo/bar which is only shared between n and a.
In essence, what you are asking is "how can I re-share an NFS share
that I'm mounting as a client, to another client".
To the best of my knowledge, this is not possible.
However, what *is* possible, because I've done it, is to mount an NFS
share and then share that via Samba.
If you mount your NAS share at /foo/bar on a, and then share /foo via
Samba, which is a userspace file server, any client mounting that share
will see the contents of /foo/bar the way you expect them to.
If you need c to see the contents of n's share using NFS, then c should
mount the share directly from n, and not go through a.
Reply to: