Gentoo Archives: gentoo-user

From: walt <w41ter@×××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Re: [OT] NFSv4: 32-bit server versus 64-bit client?
Date: Sat, 06 Aug 2011 00:41:22
Message-Id: j1i2fg$n6u$1@dough.gmane.org
In Reply to: Re: [gentoo-user] [OT] NFSv4: 32-bit server versus 64-bit client? by Joost Roeleveld
1 On 08/05/2011 12:10 AM, Joost Roeleveld wrote:
2 > On Thursday, August 04, 2011 02:53:28 PM walt wrote:
3
4 >> For reasons I don't know, the 64-bit client machines mount the 32-bit
5 >> NFSv4 share with UID/GID 0xffffffe, which won't let even root write to
6 >> the rw share.
7 >>
8 >> I googled an old thread mentioning that 0xffff is decimal 65534, a UID
9 >> traditionally assigned to the user 'nobody'.
10 >
11 > This is how I do this:
12 > ** (On server)
13 > ~ $ cat /etc/exports
14 > /usr/portage
15 > *(rw,sync,all_squash,anonuid=250,anongid=250,no_subtree_check)
16
17 (Thanks also to Todd and Victor for their replies. I hope this will
18 address your points too.)
19
20 Joost, here's what I'm using at the moment:
21
22 #grep portage /etc/exports
23
24 /usr/portage 192.168.0.100/29(rw,sync,all_squash,anonuid=250,anongid=250,no_subtree_check)
25
26 This is what my 32-bit server thinks:
27
28 #exportfs -v | grep portage
29
30 /usr/portage 192.168.0.100/29(rw,wdelay,root_squash,all_squash,no_subtree_check,anonuid=250,anongid=250)
31
32 Unfortunately, this is what the 64-bit client thinks:
33
34 #mount | grep portage
35
36 k2:/usr/portage on /mnt/nfs type nfs (rw,vers=4,addr=192.168.0.100,clientaddr=192.168.0.102)
37
38 #ls -la /mnt/nfs | head
39
40 total 2120
41 drwxr-xr-x 164 4294967294 4294967294 4096 Aug 5 04:32 .
42 drwxr-xr-x 5 root root 4096 Jun 17 2008 ..
43 -rw-r--r-- 1 4294967294 4294967294 1258556 Aug 5 04:33 .ebuild.x
44 drwxr-xr-x 44 4294967294 4294967294 4096 Aug 5 03:31 app-accessibility
45 drwxr-xr-x 198 4294967294 4294967294 4096 Aug 5 03:31 app-admin
46 drwxr-xr-x 3 4294967294 4294967294 4096 Aug 5 03:31 app-antivirus
47 drwxr-xr-x 92 4294967294 4294967294 4096 Aug 5 03:31 app-arch
48 drwxr-xr-x 36 4294967294 4294967294 4096 Aug 5 03:31 app-backup
49 drwxr-xr-x 30 4294967294 4294967294 4096 Aug 5 03:31 app-benchmarks
50
51 When I look at the uid/gid of that mount, my gut tells me there's a bug in there
52 somewhere. Do you disagree?
53
54 I have only one 32-bit machine, so I'm thinking I can install a 32-bit gentoo
55 virtualbox guest to test my 32-bit versus 64-bit theory. That's going to wait
56 for tomorrow, though.
57
58 Meanwhile, anyone know of a live CD that would let me mount an NFS4 share? My
59 ubuntu vbox guest supports NFS3 but not NFS4 :(