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