赞
踩
linux一直卡在nfsd
NFS is Unix and Linux type network based file system. This file system is served over network. In order to serve file system with files and directory nfsd
daemon is used. It is actually a kernel module with a service. NFS is the short form of Network Files System.
NFS是基于Unix和Linux类型网络的文件系统。 该文件系统通过网络提供。 为了使用文件和目录为文件系统提供服务,使用了nfsd
守护程序。 它实际上是带有服务的内核模块。 NFS是网络文件系统的缩写。
We can install NFS client tools and service with the following commands.
我们可以使用以下命令安装NFS客户端工具和服务。
Following command will install client tools.
以下命令将安装客户端工具。
$ sudo apt install nfs-common
and with the following nfs-kernel-server
package we will install server daemon.
并使用以下nfs-kernel-server
软件包安装服务器守护程序。
$ sudo apt install nfs-kernel-server
$ sudo yum install nfs-utils nfs-utils-lib
NFS has different versions to use. Most recent version is v4. There are some major differences about versions. Most of the systems runs NFSv3
and NFSv4
NFS有不同的版本可以使用。 最新版本是v4。 版本之间存在一些主要差异。 大多数系统运行NFSv3
和NFSv4
NFS service has a default configuration which is stored as /usr/share/nfs-kernel-server/conffiles/nfs-kernel-server.default
. We can view an change it like below.
NFS服务具有默认配置,该配置存储为/usr/share/nfs-kernel-server/conffiles/nfs-kernel-server.default
。 我们可以像下面一样查看更改。
$ sudo vim /usr/share/nfs-kernel-server/conffiles/nfs-kernel-server.default
There is following configuration options to change.
有以下配置选项可以更改。
RPCNFSDCOUNT
will set number of NFSD servers which will start.
RPCNFSDCOUNT
将设置将启动的NFSD服务器的数量。
`RPCMOUNTDOPTS` is used to set rpc
mount options.
`RPCMOUNTDOPTS`用于设置rpc
挂载选项。
`NEED_SVCGSSD` is used for Kerberos authentication for exports. The default value is no
which will disable Kerberos authentication.
NEED_SVCGSSD用于导出的Kerberos身份验证。 默认值为no
,它将禁用Kerberos身份验证。
During start of the NFSD we may want to provide some options the the rpc.svcgssd
. We can set it with `RPCSVCGSSDOPTS` .
在NFSD启动期间,我们可能需要提供rpc.svcgssd
选项。 我们可以使用`RPCSVCGSSDOPTS`进行设置。
Files sharing is the main purpose of the NFS service or NFSD . The file share is stored in the /etc/export
file like below.
文件共享是NFS服务或NFSD的主要目的。 文件共享存储在/etc/export
文件中,如下所示。
$ cat /etc/exports
As we can see there are some example configurations which are not active. In this example we will share /mtn
directory to the all of the remote systems.
如我们所见,存在一些未激活的示例配置。 在此示例中,我们将/mtn
目录共享到所有远程系统。
/mnt *
In this example we will share /mnt
to the only to the systems reside in 192.168.1.0/24
在此示例中,我们将/mnt
共享给192.168.1.0/24
的唯一系统
/mnt 192.168.1.0/24
We can also share the given path with a single remote system which is 192.168.1.10
in this example.
在此示例中,我们还可以与单个远程系统192.168.1.10
共享给定路径。
/mnt 192.168.1.10
NFSD
is a user level process but do not have any function to process NFS requests. NFSD redirects requests tot eh kernel transport endpoint and invokes a in-kernel process to process request and respond to the client. NFSD is the server side.
NFSD
是用户级别的过程,但是没有任何功能来处理NFS请求。 NFSD将请求重定向到内核传输端点,并调用内核内进程来处理请求并响应客户端。 NFSD是服务器端。
NFS
is the client side and each process accessing an NFS file system will make its own RPC request to the remote NFSD or NFS server.
NFS
是客户端,访问NFS文件系统的每个进程都会向远程NFSD或NFS服务器发出自己的RPC请求。
翻译自: https://www.poftut.com/what-is-linux-nfsd-process-and-meaning/
linux一直卡在nfsd
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。