Sysop: | Amessyroom |
---|---|
Location: | Fayetteville, NC |
Users: | 43 |
Nodes: | 6 (0 / 6) |
Uptime: | 96:17:56 |
Calls: | 290 |
Files: | 904 |
Messages: | 76,426 |
Greetings,
[New readers start here... :) ]
I've spent several days-worth of my time over the last few weeks in trying
to get my i5 box to export its portage tree and packages directory to a chroot on my M9 machine. I read all the docs, I thought about the help that was offered here, I changed file systems and partitions around - everything
I could think of.
The answer was simple, and I stumbled over it in a post on Stack Exchange: the behaviour of NFS mount calls changed in NFS v4. I didn't need to change /etc/ exports on the i5, but the NFS-mount call on the M9 did need to
change.
# cat /etc/exports # on the i5
/mnt/nfs \
192.168.178.7(rw,sync,no_subtree_check,no_root_squash,crossmnt,fsid=0) /mnt/nfs/portage \
192.168.178.7(rw,sync,insecure,no_subtree_check,no_root_squash) /mnt/nfs/packages \
192.168.178.7(rw,sync,insecure,no_subtree_check,no_root_squash)
$ grep nfs /etc/init.d/nuci # on the M9. Nuci is the I5
mount -t nfs 192.168.178.4:portage /mnt/nuci/var/db/repos/gentoo
mount -t nfs 192.168.178.4:packages /mnt/nuci/var/cache/packages
Notice the absence of '/mnt/nfs' from the M9 mount commands. That's what was tripping me up all that time.
Someone needs to have a look at the nfs-utils wiki page. I'd do something myself, but how? I raised a bug against a document once, only to be rebuked.
... I think there should be clearer disambiguation with separate examples between v3 and v4. However, isn't NFS v3 considered legacy by now?
On Tuesday 26 November 2024 16:13:01 GMT Peter Humphrey wrote:
I've spent several days-worth of my time over the last few weeks in trying to get my i5 box to export its portage tree and packages directory to a chroot on my M9 machine. I read all the docs, I thought about the help
that was offered here, I changed file systems and partitions around - everything I could think of.
The answer was simple, and I stumbled over it in a post on Stack Exchange: the behaviour of NFS mount calls changed in NFS v4. I didn't need to
change /etc/ exports on the i5, but the NFS-mount call on the M9 did need to change.
Can you please share the link?
I had (another) look at the wiki. You're right, it seems to describe NFSv3 only. I don't have NFSv3 here to compare. With NFSv4 you export the global root directory to allow its subdirectories to be exported too - at least
this is how I understand it works on my systems.
On Monday 2 December 2024 17:56:38 Greenwich Mean Time Michael wrote:
I had (another) look at the wiki. You're right, it seems to describe
NFSv3
only. I don't have NFSv3 here to compare. With NFSv4 you export the global root directory to allow its subdirectories to be exported too - at least this is how I understand it works on my systems.
...but today I see, buried in what you might call the small print: "If the NFS server or client support NFSv3 only, the full path to the exported directory (e.g. /export/home or /export/data) needs to be specified when mounting." [1]
We could debate whether that's guidance enough.
1. https://wiki.gentoo.org/wiki/Nfs-utils#Mounting_exports , about a page down.
Someone needs to have a look at the nfs-utils wiki page. I'd do something >myself, but how? I raised a bug against a document once, only to be rebuked.
Hi Peter,wrote:
On 27 November 2024 2:13:01 am AEST, Peter Humphrey <peter@prh.myzen.co.uk>
Someone needs to have a look at the nfs-utils wiki page. I'd do something >myself, but how? I raised a bug against a document once, only to be >rebuked.You can raise issues on the "Talk" page for a given article, e.g. https://wiki.gentoo.org/wiki/Talk:Nfs-utils
Ideally, since it's a wiki, if you know how to fix it you can edit the page directly. Don't be afraid, other editors will help polish your contribution if it's a little rough around the edges as long as it's complete.
Trying this from Thunderbird mobile. Hopefully it doesn't mangle the reply!
On Tuesday 3 December 2024 13:08:51 Greenwich Mean Time Matt Jolly wrote:
Hi Peter,
On 27 November 2024 2:13:01 am AEST, Peter Humphrey <peter@prh.myzen.co.uk>wrote:
Someone needs to have a look at the nfs-utils wiki page. I'd do something >myself, but how? I raised a bug against a document once, only to be >rebuked.
You can raise issues on the "Talk" page for a given article, e.g. https://wiki.gentoo.org/wiki/Talk:Nfs-utils
Ideally, since it's a wiki, if you know how to fix it you can edit the
page
directly. Don't be afraid, other editors will help polish your
contribution
if it's a little rough around the edges as long as it's complete.
Trying this from Thunderbird mobile. Hopefully it doesn't mangle the
reply!
That's a real help; thank you Matt.
On Tuesday 26 November 2024 16:13:01 GMT Peter Humphrey wrote:
Greetings,
[New readers start here... :) ]
I've spent several days-worth of my time over the last few weeks in trying to get my i5 box to export its portage tree and packages directory to a chroot on my M9 machine. I read all the docs, I thought about the help
that
was offered here, I changed file systems and partitions around -
everything
I could think of.
The answer was simple, and I stumbled over it in a post on Stack Exchange: the behaviour of NFS mount calls changed in NFS v4. I didn't need to
change
/etc/ exports on the i5, but the NFS-mount call on the M9 did need to change.
Can you please share the link?