El servidor NFS no pudo iniciarse

Mensaje de error

En una server ipplaca y ipen las circunstancias correctas se han producido ERROR:File lookup fail, es decir, encontrar el archivo falló. ¿Cómo podemos solucionarlo?

imagen-20210306135616482

Esto se debe a que ubootutilizamos NFSla versión V2de versión, Ubuntuusando V3, V4o más tarde, lo que resulta en la Junta no puede encontrar el NFSarchivo entre los servidores.

Solución

Deje que la versión V2 compatible con Ubuntu, que es /etc/default/nfs-kernel-serverarchivos modificados . Este es el contenido del archivo original:

# Number of servers to start up
RPCNFSDCOUNT=8

# Runtime priority of server (see nice(1))
RPCNFSDPRIORITY=0

# Options for rpc.mountd.
# If you have a port-based firewall, you might want to set up
# a fixed port here using the --port option. For more information, 
# see rpc.mountd(8) or http://wiki.debian.org/SecuringNFS
# To disable NFSv4 on the server, specify '--no-nfs-version 4' here
RPCMOUNTDOPTS="--manage-gids"

# Do you want to start the svcgssd daemon? It is only required for Kerberos
# exports. Valid alternatives are "yes" and "no"; the default is "no".
NEED_SVCGSSD=""

# Options for rpc.svcgssd.
RPCSVCGSSDOPTS=""
  • Contenido modificado:
# Number of servers to start up
# RPCNFSDCOUNT=8
RPCNFSDCOUNT="-V 2 8"

# Runtime priority of server (see nice(1))
RPCNFSDPRIORITY=0

# Options for rpc.mountd.
# If you have a port-based firewall, you might want to set up
# a fixed port here using the --port option. For more information, 
# see rpc.mountd(8) or http://wiki.debian.org/SecuringNFS
# To disable NFSv4 on the server, specify '--no-nfs-version 4' here
# RPCMOUNTDOPTS="--manage-gids"
RPCMOUNTDOPTS="-V 2 --manage-gids"

# Do you want to start the svcgssd daemon? It is only required for Kerberos
# exports. Valid alternatives are "yes" and "no"; the default is "no".
NEED_SVCGSSD=""

# Options for rpc.svcgssd.
RPCSVCGSSDOPTS="--nfs-version 2,3,4 --debug --syslog"
  • Guardar y Salir. Reinicie el NFSservicio:
sudo service nfs-kernel-server restart

resultado

imagen-20210306140950478

Supongo que te gusta

Origin blog.csdn.net/qq_43125185/article/details/114439791
Recomendado
Clasificación