Gentoo Archives: gentoo-user

From: "J. Roeleveld" <joost@××××××××.org>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] NFS problem
Date: Tue, 24 Dec 2019 06:11:27
Message-Id: A4ABF708-8B1B-475D-8D34-CDFC61C5B326@antarean.org
In Reply to: [gentoo-user] NFS problem by Peter Humphrey
1 What happens when you remove the IPv6 adresses from the NFS config? As you are using IPv4, those should not be needed.
2
3 I haven't had time to enable IPv6 yet, so can't check locally what works and what doesn't.
4
5
6 On 23 December 2019 17:50:58 CET, Peter Humphrey <peter@××××××××××××.uk> wrote:
7 >Hello list,
8 >
9 >Since I set up IPv6 on my LAN, I've been unable to NFS-export a
10 >directory on
11 >machine A (an Atom serving portage via git, among other things) and
12 >mount it
13 >on machine B (this workstation). It was working fine until then, but
14 >now mount
15 >commands fail. In both kernels I have NFSv4 selected, but not 4.x; no
16 >fancy
17 >extras like ACLs.
18 >
19 >I went back to the Gentoo nfs-utils wiki page and made sure I had
20 >everything
21 >right, then searched for other people's problems. Nothing has helped so
22 >far.
23 >
24 >On the server:
25 >$ cat /etc/conf.d/nfs
26 >NFS_NEEDED_SERVICES="rpc.idmapd"
27 >OPTS_RPC_NFSD="1 -N 2 -N 3 -V 4 -N 4.1"
28 >OPTS_RPC_MOUNTD="-p 32767"
29 >OPTS_RPC_STATD="-p 32765 -o 32766"
30 >OPTS_RPC_IDMAPD=""
31 >OPTS_RPC_GSSD=""
32 >OPTS_RPC_SVCGSSD=""
33 >OPTS_RPC_RQUOTAD=""
34 >EXPORTFS_TIMEOUT=30
35 >$ cat /etc/exports
36 >mnt/nfs 192.168.1.5/24(rw,no_subtree_check,crossmnt,fsid=0) \
37 > fe80::5/64(rw,sync,no_subtree_check,crossmnt,fsid=0)
38 >/mnt/nfs/portage
39 >192.168.1.5/24(rw,no_subtree_check,anonuid=250,anongid=250,fsid=1) \
40 > fe80::5/64(rw,no_subtree_check,anonuid=250,anongid=250,fsid=1)
41 >/mnt/nfs/port.resc
42 >192.168.1.5/24(rw,no_subtree_check,anonuid=250,anongid=250,fsid=2) \
43 > fe80::5/64(rw,no_subtree_check,anonuid=250,anongid=250,fsid=2)
44 >$ grep nfs /etc/fstab
45 >/usr/portage /mnt/nfs/portage none bind
46 > 0 0
47 >
48 >On the client:
49 >$ grep nfs /etc/fstab
50 >192.168.1.2:/mnt/nfs/portage /mnt/atom/usr/portage nfs4
51 >noauto,rw,_netdev 0 0
52 >
53 >Now I try to mount /usr/portage from the host on /mnt/atom/usr/portage
54 >(which
55 >does exist) and get this:
56 ># mount /mnt/atom/usr/portage
57 >mount.nfs4: mounting 192.168.1.2:/mnt/nfs/portage failed, reason given
58 >by server: No such file or directory
59 ># mount 192.168.1.2:/mnt/nfs/portage /mnt/atom/usr/portage
60 >mount.nfs: mounting 192.168.1.2:/mnt/nfs/portage failed, reason given
61 >by server: No such file or directory
62 ># mount [fe80::2]:/mnt/nfs/portage /mnt/atom/usr/portage
63 >mount.nfs: mount system call failed
64 >
65 >It doesn't seem to be a firewall problem, because I get the same result
66 >if I
67 >start both machines without their firewalls - I don't do that very
68 >often! Ping
69 >works fine in both directions, whether IPv4 or v6. Do I have to tweak
70 >mapd
71 >somehow?
72 >
73 >I'm feeling a bit clueless...
74
75
76 --
77 Sent from my Android device with K-9 Mail. Please excuse my brevity.

Replies

Subject Author
Re: [gentoo-user] NFS problem Peter Humphrey <peter@××××××××××××.uk>
Re: [gentoo-user] NFS problem Peter Humphrey <peter@××××××××××××.uk>