Re: [gentoo-user] Debugging NFS mounts
On Sunday, 19 November 2023 00:30:24 GMT William Kenworthy wrote: > On 18/11/23 15:29, Peter Humphrey wrote: > > On Friday, 17 November 2023 16:44:29 GMT I wrote: > >> I'll try that - thanks. > > > > Damn fool - it was a firewall problem on the server. For some reason, the > > NFS destination port has changed. > > > > Sorry for the noise. > > Actually, NFS may have some ports dynamicly allocated so they change on > reboot. Google "pin NFS ports" for how to fix them for firewalls. Yes, indeed. In fact I don't know why this has only just bitten me; I've been doing the same thing for years without problem. That search turns up so many answers that I don't know where to start, even prefixing the phrase with "gentoo". Most of them seem to date from 10 years ago or more. -- Regards, Peter.
Re: [gentoo-user] Debugging NFS mounts
On 18/11/23 15:29, Peter Humphrey wrote: On Friday, 17 November 2023 16:44:29 GMT I wrote: I'll try that - thanks. Damn fool - it was a firewall problem on the server. For some reason, the NFS destination port has changed. Sorry for the noise. Actually, NFS may have some ports dynamicly allocated so they change on reboot. Google "pin NFS ports" for how to fix them for firewalls. BillK
Re: [gentoo-user] Debugging NFS mounts
On Friday, 17 November 2023 16:44:29 GMT I wrote: > I'll try that - thanks. Damn fool - it was a firewall problem on the server. For some reason, the NFS destination port has changed. Sorry for the noise. -- Regards, Peter.
Re: [gentoo-user] Debugging NFS mounts
On Thursday, 16 November 2023 20:38:45 GMT Marco Rebhan wrote: > On Wednesday, 15 November 2023 17:29:19 CET Peter Humphrey wrote: > > Hello list, > > > > My little server needs help with compiling, so I NFS-export /var (which > > has > > its own partition) to a chroot on my workstation. I mount all the > > partitions on both server and workstation. Then when I chroot, env-update > > hangs for ever. Well, over an hour anyway. > > > > Is it possible to export /var in this way? I can't see anything else > > wrong. > > I don't see why it shouldn't work, but there's a couple commands I use to > debug NFS. They're not *great*, but they work. > > I haven't used Gentoo in a while so I forget exactly what env-update does, > but I assume mounting the network share works successfully and this is just > a command that accesses /var. > > You can use these commands to make the kernel driver output debugging > information to dmesg. > > On the client: > > # rpcdebug -m nfs -s all > > On the server: > > # rpcdebug -m nfsd -s all > > On both sides, if the others don't give useful info, this is for the lower > > level protocol: > > # rpcdebug -m rpc -s all > > Then, try running the command again. It will spew a lot of info but > hopefully you can figure out from it what's going on. I'll try that - thanks. -- Regards, Peter.
Re: [gentoo-user] Debugging NFS mounts
On Wednesday, 15 November 2023 17:29:19 CET Peter Humphrey wrote: > Hello list, > > My little server needs help with compiling, so I NFS-export /var (which has > its own partition) to a chroot on my workstation. I mount all the partitions > on both server and workstation. Then when I chroot, env-update hangs for > ever. Well, over an hour anyway. > > Is it possible to export /var in this way? I can't see anything else wrong. I don't see why it shouldn't work, but there's a couple commands I use to debug NFS. They're not *great*, but they work. I haven't used Gentoo in a while so I forget exactly what env-update does, but I assume mounting the network share works successfully and this is just a command that accesses /var. You can use these commands to make the kernel driver output debugging information to dmesg. On the client: > # rpcdebug -m nfs -s all On the server: > # rpcdebug -m nfsd -s all On both sides, if the others don't give useful info, this is for the lower level protocol: > # rpcdebug -m rpc -s all Then, try running the command again. It will spew a lot of info but hopefully you can figure out from it what's going on. -Marco :-) signature.asc Description: This is a digitally signed message part.
Re: [gentoo-user] Debugging NFS mounts
On Wednesday, 15 November 2023 17:04:27 GMT Alan McKinnon wrote: > On Wed, Nov 15, 2023 at 6:29 PM Peter Humphrey > > wrote: > > Hello list, > > > > My little server needs help with compiling, so I NFS-export /var (which > > has > > its own partition) to a chroot on my workstation. I mount all the > > partitions > > on both server and workstation. Then when I chroot, env-update hangs for > > ever. > > Well, over an hour anyway. > > > > Is it possible to export /var in this way? I can't see anything else > > wrong. > > Did you run mount inside the chroot or outside of it? Outside. That's how it's worked everywhere else. -- Regards, Peter.
Re: [gentoo-user] Debugging NFS mounts
On Wed, Nov 15, 2023 at 6:29 PM Peter Humphrey wrote: > Hello list, > > My little server needs help with compiling, so I NFS-export /var (which > has > its own partition) to a chroot on my workstation. I mount all the > partitions > on both server and workstation. Then when I chroot, env-update hangs for > ever. > Well, over an hour anyway. > > Is it possible to export /var in this way? I can't see anything else wrong. > Did you run mount inside the chroot or outside of it? -- Alan McKinnon alan dot mckinnon at gmail dot com
[gentoo-user] Debugging NFS mounts
Hello list, My little server needs help with compiling, so I NFS-export /var (which has its own partition) to a chroot on my workstation. I mount all the partitions on both server and workstation. Then when I chroot, env-update hangs for ever. Well, over an hour anyway. Is it possible to export /var in this way? I can't see anything else wrong. -- Regards, Peter.