Error rpc.idmapd[xxx]: main: open(/var/lib/nfs/rpc_pipefs/nfs): No such file or directory | Algo de Linux

lunes, 24 de octubre de 2016

Error rpc.idmapd[xxx]: main: open(/var/lib/nfs/rpc_pipefs/nfs): No such file or directory

Echando un vistazo al syslog de mis equipos, observo que hay un error que se repite con frecuencia:
Oct 20 13:40:22 a26-pro rpc.idmapd[966]: main: open(/var/lib/nfs/rpc_pipefs/nfs): No such file or directory
Oct 20 13:40:22 a26-pro rpc.idmapd[994]: main: open(/var/lib/nfs/rpc_pipefs/nfs): No such file or directory
La configuración NFS de mis clientes tiene activado el idmap:
# If you do not set values for the NEED_ options, they will be attempted
# autodetected; this should be sufficient for most people. Valid alternatives
# for the NEED_ options are "yes" and "no".

# Do you want to start the statd daemon? It is not needed for NFSv4.
NEED_STATD=

# Options for rpc.statd.
#   Should rpc.statd listen on a specific port? This is especially useful
#   when you have a port-based firewall. To use a fixed port, set this
#   this variable to a statd argument like: "--port 4000 --outgoing-port 4001".
#   For more information, see rpc.statd(8) or http://wiki.debian.org/?SecuringNFS
STATDOPTS=

# Do you want to start the idmapd daemon? It is only needed for NFSv4.
NEED_IDMAPD=yes

# Do you want to start the gssd daemon? It is required for Kerberos mounts.
NEED_GSSD=
Si ejecuto rpc.idmapd manualmente, compruebo que el error me muestra que no existe el directorio /var/lib/nfs/rpc_pipefs/nfs:
# rpc.idmapd -fv
rpc.idmapd: libnfsidmap: using domain: valledeljerte3
rpc.idmapd: libnfsidmap: Realms list: 'VALLEDELJERTE3' 
rpc.idmapd: libnfsidmap: processing 'Method' list
rpc.idmapd: libnfsidmap: loaded plugin /lib/i386-linux-gnu/libnfsidmap/nsswitch.so for method nsswitch

rpc.idmapd: Expiration time is 600 seconds.
rpc.idmapd: Opened /proc/net/rpc/nfs4.nametoid/channel
rpc.idmapd: Opened /proc/net/rpc/nfs4.idtoname/channel
rpc.idmapd: main: open(/var/lib/nfs/rpc_pipefs/nfs): No such file or directory
Así que la solución será crearlo:
# mkdir -p /var/lib/nfs/rpc_pipefs/nfs
Publicado por primera vez en http://enavas.blogspot.com.es

2 comentarios:

deabru dijo...

Raro que no tengas ese directorio ya:

# mount |grep rpc
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw,relatime)

# ls /var/lib/nfs/rpc_pipefs
cache gssd lockd mount nfs nfsd nfsd4_cb portmap statd

En mi distro, openSUSE, ese directorio se crea al llamarse nfs-client.target (systemctl start nfs-client.target).

Esteban M. Navas Martín dijo...

Parece ser un bug en Ubuntu.