Greetings,
Let me try this again.
Why should an NFS server wait 15 seconds before reporting "No such file or directory"?
Greetings,Are there any errors in the log on the server? Increasing the verbosity
Let me try this again.
Why should an NFS server wait 15 seconds before reporting "No such file or directory"?
8
exportfs -rav
On Friday 18 October 2024 15:55:19 BST Michael wrote:
8
exportfs -ravAh! I knew about 'exportfs -r' but not the 'av'. When I added that I got this:
exportfs: duplicated export entries:
exportfs: :192.168.178.7(rw,sync,insecure,no_subtree_check,all_squash,anonuid=250,anongid=250)
exportfs: :192.168.178.7(rw,sync,insecure,no_subtree_check,all_squash,anonuid=250,anongid=250)
exporting :/mnt/nfs/portage.packages
exporting :192.168.178.7(rw,sync,insecure,no_subtree_check,all_squash,anonuid=250,anongid=250)
exportfs: Failed to stat 192.168.178.7(rw,sync,insecure,no_subtree_check,all_squash,anonuid=250,anongid=250): No such file or directory
exporting :/mnt/nfs/portage
exporting :192.168.178.7(rw,sync,no_subtree_check,crossmnt,fsid=0)
exportfs: Failed to stat 192.168.178.7(rw,sync,no_subtree_check,crossmnt,fsid=0): No such file or directory
Of course there's a duplicate export entry; I'm exporting two directories to the one machine. Well, three actually, counting the top-level one, /mnt/nfs. But is that duplication the cause of the 'Failed to stat...'?
Do I need to set some opotions on an rpc service, or something?
On Friday 18 October 2024 15:55:19 BST Michael wrote:
8
exportfs -rav
Ah! I knew about 'exportfs -r' but not the 'av'. When I added that I got this:
exportfs: duplicated export entries:
exportfs: :192.168.178.7(rw,sync,insecure,no_subtree_check,all_squash,anonuid=250,ano ngid=250) exportfs: :192.168.178.7(rw,sync,insecure,no_subtree_check,all_squash,anonuid=250,ano ngid=250) exporting :/mnt/nfs/portage.packages
exporting :192.168.178.7(rw,sync,insecure,no_subtree_check,all_squash,anonuid=250,ano ngid=250) exportfs: Failed to stat 192.168.178.7(rw,sync,insecure,no_subtree_check,all_squash,anonuid=250,anon gid=250): No such file or directory exporting :/mnt/nfs/portage
exporting :192.168.178.7(rw,sync,no_subtree_check,crossmnt,fsid=0)
exportfs: Failed to stat 192.168.178.7(rw,sync,no_subtree_check,crossmnt,fsid=0): No such file or directory
Of course there's a duplicate export entry; I'm exporting two directories to the one machine. Well, three actually, counting the top-level one,
/mnt/nfs. But is that duplication the cause of the 'Failed to stat...'?
Do I need to set some opotions on an rpc service, or something?
Assuming all required directories are on the same fs, what happens if you *only* export the parent directory? Something like this:
/mnt/nfs \ 192.168.178.7/32(rw,sync,insecure,no_subtree_check,all_squash,anonuid=250,an ongid=250)
On Monday 21 October 2024 09:22:37 BST Michael wrote:
Assuming all required directories are on the same fs, what happens if you *only* export the parent directory? Something like this:
/mnt/nfs \ 192.168.178.7/32(rw,sync,insecure,no_subtree_check,all_squash,anonuid=250, an ongid=250)
Actually, the converse turned out to be right. Removing the top-level /mnt/nfs spec from /etc/exports allowed the whole thing to spring into
life.
Go figure, as they say in the colonies. ;)
On Tuesday 22 October 2024 02:10:45 BST Peter Humphrey wrote:
On Monday 21 October 2024 09:22:37 BST Michael wrote:
Assuming all required directories are on the same fs, what happens if
you
*only* export the parent directory? Something like this:
/mnt/nfs \ 192.168.178.7/32(rw,sync,insecure,no_subtree_check,all_squash,anonuid=25 0,
an ongid=250)
Actually, the converse turned out to be right. Removing the top-level /mnt/nfs spec from /etc/exports allowed the whole thing to spring into life.
Go figure, as they say in the colonies. ;)
I'm glad you 'figured' this, although puzzled by your solution. In my experience I only needed to export one directory only as the top directory, for each different partition.
On Tuesday 22 October 2024 10:14:48 BST Michael wrote:
On Tuesday 22 October 2024 02:10:45 BST Peter Humphrey wrote:
On Monday 21 October 2024 09:22:37 BST Michael wrote:
Assuming all required directories are on the same fs, what happens if you
*only* export the parent directory? Something like this:
/mnt/nfs \ 192.168.178.7/32(rw,sync,insecure,no_subtree_check,all_squash,anonuid= 25
0,
an ongid=250)
Actually, the converse turned out to be right. Removing the top-level /mnt/nfs spec from /etc/exports allowed the whole thing to spring into life.
Go figure, as they say in the colonies. ;)
I'm glad you 'figured' this, although puzzled by your solution. In my experience I only needed to export one directory only as the top
directory,
for each different partition.
I followed the Gentoo NFS wiki page, which says "this article demonstrates a best-practice NFSv4 deployment using a virtual root".
It should not matter; the virtual root involves bind mounting directories into a single location - that could be 4 different partitions, a bunch of subvolumes, or some directories scattered across a single partition, or
some combination of those options.
Cheers,
Matt
On 22 Oct 2024 23:36, Michael <[email protected]> wrote:
On Tuesday 22 October 2024 13:00:14 BST Peter Humphrey wrote:
On Tuesday 22 October 2024 10:14:48 BST Michael wrote:
On Tuesday 22 October 2024 02:10:45 BST Peter Humphrey wrote:
On Monday 21 October 2024 09:22:37 BST Michael wrote:
Assuming all required directories are on the same fs, what happens
if
you
*only* export the parent directory? Something like this:
/mnt/nfs \ 192.168.178.7/32(rw,sync,insecure,no_subtree_check,all_squash,anonui d=
25
0,
an ongid=250)
Actually, the converse turned out to be right. Removing the top-level /mnt/nfs spec from /etc/exports allowed the whole thing to spring into life.
Go figure, as they say in the colonies. ;)
I'm glad you 'figured' this, although puzzled by your solution. In my experience I only needed to export one directory only as the top directory,
for each different partition.
I followed the Gentoo NFS wiki page, which says "this article demonstrates a best-practice NFSv4 deployment using a virtual root".
If you are referring to the NFS-utils wiki page:
https://wiki.gentoo.org/wiki/Nfs-utils
it provides an example of exporting two *different* partitions:
Device Mount directory Description
/dev/sdb1 /home Filesystem containing user home
directories. /dev/sdc1 /data Filesystem containing user data.
On Tuesday 22 October 2024 18:01:55 BST Matt Jolly wrote:
It should not matter; the virtual root involves bind mounting directories into a single location - that could be 4 different partitions, a bunch of subvolumes, or some directories scattered across a single partition, or some combination of those options.
All good and fair, but then why Peter's reported error of duplicate exports?
Also while bug-hunting, I found an extra-long Ethernet cable and strung the i5 into the LAN that way. The M9 only ever sees the LAN, whereas I can now start and stop the LAN and WLAN at will on the i5. The Fritz!Box router
sits at the junction. Eventually, of course, once I get this setup working, the cable will go back in the cupboard.
On Wed, 23 Oct 2024 at 12:56, Peter Humphrey <[email protected]> wrote:
I should have added that the remote compilation works well with the cable. I have found though that the linux-firmware ebuild requires the /boot partition to be mounted, which it shouldn't be on a foreign machine, so I say emerge -uaDvN --exclude="linux-firmware-20241017-*", only to find
that it's emerged anyway. Dropping that last hyphen gives the required result.
Is this a portage bug?
It is definitely weird, but it is documented to be that way. From the
manual ebuild(5):
The version part that comes before the ’*’ must be a valid version in
the absence of the ’*’. For example, ’2’ is a valid version and ’2.’
is not. Therefore, ’2*’ is allowed and ’2.*’ is not.
| Sysop: | Keyop |
|---|---|
| Location: | Huddersfield, West Yorkshire, UK |
| Users: | 715 |
| Nodes: | 16 (2 / 14) |
| Uptime: | 160:01:56 |
| Calls: | 12,094 |
| Calls today: | 2 |
| Files: | 15,000 |
| Messages: | 6,517,761 |