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?
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?
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?
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 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.
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.
On Wed, Mar 19, 2025 at 02:53:51PM -0400, Eben King wrote:
I have this machine "alexandria". It mounts a directory from the nasIt is possible, see the file /etc/exports and its man page exports(7), specifically the options nohide and crossmnt there.
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?
There are caveats, though (e.g. you might get duplicate inode numbers
from the two file systems), described in the above man page.
Sorry to be so handwavy, but it's a while ago I had hands-on experience
with that.
Cheers
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.
I assume it would also work if you use [unfsd](https://github.com/unfs3/unfs3).
It doesn't seem to be packaged for Debian, tho.
On Wed, Mar 19, 2025 at 02:53:51PM -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?
It is possible, see the file /etc/exports and its man page exports(7), specifically the options nohide and crossmnt there.
There are caveats, though (e.g. you might get duplicate inode numbers
from the two file systems), described in the above man page.
On 3/19/25 16:19, tomas@tuxteam.de wrote:
On Wed, Mar 19, 2025 at 02:53:51PM -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?
It is possible, see the file /etc/exports and its man page exports(7), specifically the options nohide and crossmnt there.
Great to hear. I don't suppose you know how to access /etc/exports on a
WD Mycloud Mirror? Theoretically it supports SSH but I haven't got it
to work yet.
There are caveats, though (e.g. you might get duplicate inode numbers
from the two file systems), described in the above man page.
hmm, I'll have to see if that's a problem. So the same inode number on
two different filesystems conflict? Or what do you mean?
AFAIK,
Exporting a nfs mounted location is possible via nfs-ganesha
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?
On 3/19/25 15:05, Greg Wooledge wrote:
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).
Yes.
Meanwhile, you have shared directory /foo from a, and mounted it on
c.
Yes.
I believe all of these shares and mounts are using NFS.
Yes.
If I understand correctly, you are wondering why c cannot see the
contents of /foo/bar which is only shared between n and a.
Correct.
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".
Correct.
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.
I used to use SMB, but it did funny things to filenames with a colon.
These files are TV shows and movies, and colons are not infrequent.
Has it got better, or is there a config option I need to set?
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.
That was my temporary workaround. I guess it'll become a permanent workaround.
It's not a workaround. It's expected behaviour. You told the NAS to
share some of its contents with alexandria. That's what it's doing. Why
would you expect it to respond to a random request from some other
computer?
Alternatively, why would you expect alexandria to share
content that doesn't belong to it?
debian-user@howorth.org.uk (HE12025-03-20):
It's not a workaround. It's expected behaviour. You told the NAS to
share some of its contents with alexandria. That's what it's doing. Why would you expect it to respond to a random request from some other computer?
That is not what it is doing. nas would only be replying to alexandria.
The only difference is that alexandria is asking on behalf of client and
not on its own behalf.
Alternatively, why would you expect alexandria to share
content that doesn't belong to it?
There are many scenarios where it is useful, you just have to exercise
your imagination.
Exporting a nfs mounted location is possible via nfs-ganesha
On Thu, Mar 20, 2025 at 01:29:39AM -0400, Eben King wrote:
On 3/19/25 16:19, tomas@tuxteam.de wrote:
On Wed, Mar 19, 2025 at 02:53:51PM -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?
It is possible, see the file /etc/exports and its man page exports(7),
specifically the options nohide and crossmnt there.
Great to hear. I don't suppose you know how to access /etc/exports on a
WD Mycloud Mirror? Theoretically it supports SSH but I haven't got it
to work yet.
I don't even know what a WD Mycloud Mirror is :)
This is the intermediate box which you'd like to re-export the mounted
file system?
There are caveats, though (e.g. you might get duplicate inode numbers
from the two file systems), described in the above man page.
hmm, I'll have to see if that's a problem. So the same inode number on
two different filesystems conflict? Or what do you mean?
The man page isn't very clear, but I guess that NFS passes the inodes
along and the client uses them for file identification (cache, what
have you) and gets confused when the server's and the server's server
inodes collide. But that's only a guess.
On Thu, Mar 20, 2025 at 01:32:27PM +0100, Nicolas George wrote:
debian-user@howorth.org.uk (HE12025-03-20):
It's not a workaround. It's expected behaviour. You told the NAS
to share some of its contents with alexandria. That's what it's
doing. Why would you expect it to respond to a random request
from some other computer?
That is not what it is doing. nas would only be replying to
alexandria. The only difference is that alexandria is asking on
behalf of client and not on its own behalf.
Alternatively, why would you expect alexandria to share
content that doesn't belong to it?
There are many scenarios where it is useful, you just have to
exercise your imagination.
Agreed.
Besides, we already know NFS can do that (with caveats). I wonder
whether people read the other postings in the threads they reply
to :)
And, as someone pointed out, ganesha NFS (a user-space server)
seems to explicitly allow that. Available as a Debian package
(of course, the NAS will be running something and not letting
the user change it, violating lots of free software licenses
in the process, but people keep paying for that, so...)
Cheers
<tomas@tuxteam.de> wrote:
Besides, we already know NFS can do that (with caveats). I wonder
whether people read the other postings in the threads they reply
to :)
I certainly don't always read all the posts in a long thread before
replying. And I stand by what I wrote, although I'd now qualify it by
saying that that's the default position and it can now be overridden.
And I try not to respond with rude responses, although sometimes it is difficult.
tomas@tuxteam.de (HE12025-03-20):
Sorry if that came across as rude.
Do not be: not reading before replying at least to see if what one is
about to reply has already been addressed and therefore wasting
everybody's time is way ruder than your message might seem.
Sorry if that came across as rude.
Eben King <eben@gmx.us>:
NAS:/nfs/Movies is mounted on alexandria by NFS as /files/movies. Alex
exports /files by NFS. My computer mounts alexandria:/files and sees
/files/movies/ as empty.
Why don't you
mount alexandria:/files /files &&
mount nas:/nfs/Movies /files/movies
rather than -o nohide,crossmnt?
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 546 |
Nodes: | 16 (1 / 15) |
Uptime: | 160:20:15 |
Calls: | 10,385 |
Calls today: | 2 |
Files: | 14,056 |
Messages: | 6,416,492 |