1 |
On 2022.07.29 12:54, Fabulous Zhang Zheng wrote: |
2 |
> Dear Jack, |
3 |
> |
4 |
> |
5 |
> Jack <ostroffjh@×××××××××××××××××.net> 于2022年7月27日周三 06:59写道: |
6 |
> |
7 |
> > This list prefers bottom posting. See below. |
8 |
> > |
9 |
> > On 2022.07.23 21:52, Fabulous Zhang Zheng wrote: |
10 |
> > > Dear Jack, |
11 |
> > > |
12 |
> > > thanks for your reply, I reconfigured menuconfig. |
13 |
> > > |
14 |
> > > NFS v2 support I found is client support, and I can't still find |
15 |
> v2 |
16 |
> > > support |
17 |
> > > for server ( sorry for not mentioning it in my ambiguous question |
18 |
> ) |
19 |
> > > I also looked up in forum and wiki, and recent posts seem to |
20 |
> indicate |
21 |
> > > the removal of nfs v2 server support. |
22 |
> > > |
23 |
> > > I followed this link for open genera |
24 |
> > > ( https://archives.loomcom.com/genera/genera-install.html ) |
25 |
> > > not in portage or an overlay. |
26 |
> > > |
27 |
> > > Best regards :) |
28 |
> > > |
29 |
> > > Jack <ostroffjh@×××××××××××××××××.net> 于2022年7月24日周日 03:30写道: |
30 |
> > > |
31 |
> > > > On 2022.07.23 01:25, Fabulous Zhang Zheng wrote: |
32 |
> > > > > Dear genteel users, |
33 |
> > > > > |
34 |
> > > > > |
35 |
> > > > > Recently I'm trying to run Open Genera on Gentoo, which |
36 |
> requires |
37 |
> > > the |
38 |
> > > > > old |
39 |
> > > > > NFS v2 protocol for communication. |
40 |
> > > > > |
41 |
> > > > > I successfully run it on a Ubuntu 16.04 virtual machine, which |
42 |
> > > > > enables it |
43 |
> > > > > by default. |
44 |
> > > > > |
45 |
> > > > > In 5.18.12 it seems deprecated and not supported, am I |
46 |
> supposed to |
47 |
> > > > > revert |
48 |
> > > > > back to a kernel version before its removal, or manually |
49 |
> patch it |
50 |
> > > > > into the |
51 |
> > > > > current kernel ? Or there might be some more elegant methods ? |
52 |
> > > > > |
53 |
> > > > > It will be much appreciated if anyone could help :) |
54 |
> > > > > |
55 |
> > > > Looking at the config for 5.18.14, I see no evidence V2 has been |
56 |
> > > > deprecated. However, your kernel may well have been configured |
57 |
> to |
58 |
> > > not |
59 |
> > > > use V2. Note the kernel has different client and server |
60 |
> settings |
61 |
> > > for |
62 |
> > > > this. Most likely, you just need to reconfigure and recompile |
63 |
> your |
64 |
> > > > kernel. |
65 |
> > > > |
66 |
> > > > Also, I don't see any genera available in portage. If it is in |
67 |
> an |
68 |
> > > > overlay, I would check for any documentation in the overlay |
69 |
> about |
70 |
> > > > necessary kernel configuration. |
71 |
> > > > |
72 |
> > > > Jack |
73 |
> > > > |
74 |
> > > > |
75 |
> > > |
76 |
> > I am aware that NFSv2 is likely to be deprecated due to security |
77 |
> > concerns, but it hasn't happened yet in the Linux kernel. |
78 |
> > |
79 |
> > The entry (5.18.14) for "NFS server support (NFSD)" or CONFIG_NFSD: |
80 |
> says |
81 |
> > |
82 |
> > ----- |
83 |
> > Choose Y here if you want to allow other computers to access files |
84 |
> > residing on this system using Sun's Network File System protocol. To |
85 |
> > compile the NFS server support as a module, choose M here: the |
86 |
> module |
87 |
> > will be called nfsd. |
88 |
> > |
89 |
> > You may choose to use a user-space NFS server instead, in which case |
90 |
> > you can choose N here. |
91 |
> > |
92 |
> > To export local file systems using NFS, you also need to install |
93 |
> user |
94 |
> > space programs which can be found in the Linux nfs-utils package, |
95 |
> > available from http://linux-nfs.org/. More detail about the Linux |
96 |
> NFS |
97 |
> > server implementation is available via the exports(5) man page. |
98 |
> > |
99 |
> > Below you can choose which versions of the NFS protocol are |
100 |
> available |
101 |
> > to clients mounting the NFS server on this system. Support for NFS |
102 |
> > version 2 (RFC 1094) is always available when CONFIG_NFSD is |
103 |
> selected. |
104 |
> > ----- |
105 |
> > |
106 |
> > In addition, from just a very brief search, it is likely that there |
107 |
> are |
108 |
> > other configuration files you may need to alter in order for the nfs |
109 |
> > server to actually respond to V2 requests. This is likely how some |
110 |
> > distributions have blocked V2 from the default configuration. |
111 |
> Google |
112 |
> > is your friend. |
113 |
> > |
114 |
> > Jack |
115 |
> > |
116 |
> > |
117 |
> Sorry for the late reply, |
118 |
> |
119 |
> I found this commit |
120 |
> <https://git.linux-nfs.org/?p=steved/nfs-utils.git;a=commit;h=2c2c36c59fa1de2ff7fd28917e54700ecb39b730> |
121 |
> of last November, which might be the reason. |
122 |
> 2.5.4 might be the last version with such support. |
123 |
> |
124 |
> I emerged manually changed ebuild and $( rpcinfo -p localhost | |
125 |
> grep nfs |
126 |
> ) |
127 |
> explicitly indicates the version 2 of nfs, which runs successfully. |
128 |
> |
129 |
> Thanks again for your dedicated and detailed reply, |
130 |
> and also the bottom-posting reminder. |
131 |
> |
132 |
> |
133 |
> Best regards :) |
134 |
> |
135 |
I don't fully understand the interactions and relationship, but there |
136 |
are obviously some differences between the kernel nfs and userland |
137 |
nfs. Glad you got it working for you. |