大网数据广告活动
服务器运维问答

Forcing `mount` to bypass nfs kernel limitations in relation to the nfs version

· 52CE 我爱测

According to this answer https://serverfault.com/a/1062570/253400 there's the possibility that the installed software supports nfs version v4.2 but if the underlying kernel is not prepared, the mount command will then downgrade t…

问题原文

原帖链接 · Xavi Montero · CC BY-SA 4.0

According to this answer https://serverfault.com/a/1062570/253400 there's the possibility that the installed software supports nfs version v4.2 but if the underlying kernel is not prepared, the mount command will then downgrade to a "known version by the kenrel" that could be v4.0.

According to the answer it seems that it's not a matter of the nfs libraries, but related to the mount command itself.

Is there any way to tell mount to "bypass" the mount "discovery" and tell it to bind the full capabilities of v4.2 in the libraries regardless of the underlying kernel?

已采纳解答

原帖链接 · kofemann · CC BY-SA 4.0

The kernel is the nfs client, thus you are limited to it's capabilities.

An alternative is a user-space nfs client, like https://github.com/sahlberg/libnfs, with fuse, if you need a mounted files system. But am not aware of any, that supports 4.2.

Today it's easy to have host running a modern kernel and applications in a container, if a specific environment is required.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2021-05-04)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。