Discussion:
Bug#1009106: nfs-common: blkmapd open pipe file /run/rpc_pipefs/nfs/blocklayout failed
Add Reply
olaf
2022-04-07 09:40:01 UTC
Reply
Permalink
Package: nfs-common
Version: 1:2.6.1-1+b1
Severity: normal

Dear Maintainer,

apparently a file expected by "blkmapd" is not found because it does not exist.

#+begin_quote
# systemctl status nfs-blkmap.service
● nfs-blkmap.service - pNFS block layout mapping daemon
Loaded: loaded (/lib/systemd/system/nfs-blkmap.service; enabled; vendor preset: enabled)
Active: active (running) since Thu 2022-04-07 11:03:48 CEST; 10min ago
Process: 1007 ExecStart=/usr/sbin/blkmapd (code=exited, status=0/SUCCESS)
Main PID: 1010 (blkmapd)
Tasks: 1 (limit: 37594)
Memory: 388.0K
CPU: 1ms
CGroup: /system.slice/nfs-blkmap.service
└─1010 /usr/sbin/blkmapd

Apr 07 11:03:48 acht systemd[1]: Starting pNFS block layout mapping daemon...
Apr 07 11:03:48 acht blkmapd[1010]: open pipe file /run/rpc_pipefs/nfs/blocklayout failed: No such file or directory
Apr 07 11:03:48 acht systemd[1]: Started pNFS block layout mapping daemon.

# LANG=en ls -la /run/rpc_pipefs/nfs/
total 0
dr-xr-xr-x 2 root root 0 2022-04-07 11:03 .
dr-xr-xr-x 11 root root 0 2022-04-07 11:03 ..
#+end_quote

If it is a trivial message, I think it should no longer be reported.



-- Package-specific info:
-- rpcinfo --
program vers proto port service
100000 4 tcp 111 portmapper
100000 3 tcp 111 portmapper
100000 2 tcp 111 portmapper
100000 4 udp 111 portmapper
100000 3 udp 111 portmapper
100000 2 udp 111 portmapper
100005 1 udp 48372 mountd
100005 1 tcp 50807 mountd
100005 2 udp 51838 mountd
100005 2 tcp 33005 mountd
100005 3 udp 41222 mountd
100005 3 tcp 47085 mountd
100024 1 udp 60298 status
100024 1 tcp 57121 status
100003 3 tcp 2049 nfs
100003 4 tcp 2049 nfs
100227 3 tcp 2049
100021 1 udp 48057 nlockmgr
100021 3 udp 48057 nlockmgr
100021 4 udp 48057 nlockmgr
100021 1 tcp 39169 nlockmgr
100021 3 tcp 39169 nlockmgr
100021 4 tcp 39169 nlockmgr
-- /etc/default/nfs-common --
NEED_STATD=
STATDOPTS=
NEED_IDMAPD=
NEED_GSSD=
-- /etc/idmapd.conf --
[General]
Verbosity = 0
[Mapping]
Nobody-User = nobody
Nobody-Group = nogroup
-- /etc/fstab --
192.168.1.7:/anexemplary /entry nfs rw,soft,retrans=3,timeo=10,user,noauto 0 0
-- /proc/mounts --
nfsd /proc/fs/nfsd nfsd rw,relatime 0 0

-- System Information:
Debian Release: bookworm/sid
APT prefers testing
APT policy: (990, 'testing'), (500, 'stable'), (99, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 5.16.0-6-amd64 (SMP w/12 CPU threads; PREEMPT)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages nfs-common depends on:
ii adduser 3.121
ii init-system-helpers 1.62
ii keyutils 1.6.1-3
ii libc6 2.33-7
ii libcap2 1:2.44-1
ii libcom-err2 1.46.5-2
ii libdevmapper1.02.1 2:1.02.175-2.1
ii libevent-core-2.1-7 2.1.12-stable-1
ii libgssapi-krb5-2 1.19.2-2+b1
ii libkeyutils1 1.6.1-3
ii libkrb5-3 1.19.2-2+b1
ii libmount1 2.37.3-1+b1
ii libnfsidmap1 1:2.6.1-1+b1
ii libtirpc3 1.3.2-2
ii libwrap0 7.6.q-31
ii lsb-base 11.1.0
ii python3 3.9.8-1
ii rpcbind 1.2.6-2
ii ucf 3.0043

nfs-common recommends no packages.

Versions of packages nfs-common suggests:
pn open-iscsi <none>
pn watchdog <none>

Versions of packages nfs-kernel-server depends on:
ii keyutils 1.6.1-3
ii libblkid1 2.37.3-1+b1
ii libc6 2.33-7
ii libcap2 1:2.44-1
ii libevent-core-2.1-7 2.1.12-stable-1
ii libsqlite3-0 3.38.2-1
ii libtirpc3 1.3.2-2
ii libuuid1 2.37.3-1+b1
ii libwrap0 7.6.q-31
ii lsb-base 11.1.0
ii netbase 6.3
ii ucf 3.0043

Versions of packages nfs-kernel-server recommends:
ii python3 3.9.8-1
ii python3-yaml 5.4.1-1+b1

-- no debconf informat
Athanasius
2024-08-31 14:40:01 UTC
Reply
Permalink
On Debian 12.6 everything was fine, then I updated today and had
nfs-idmapd.service failing with:

Aug 31 14:44:17 tuesday rpc.idmapd[2235967]: Unable to inotify_add_watch(/run/rpc_pipefs/nfs): No such file or directory

It looks like this is because nfs-common has /etc/nfs.conf contain:

[general]
pipefs-directory=/run/rpc_pipefs

When this has been moved to /var/lib/nfs/rpc_pipefs. That's the default
path that rpc.idmapd is expecting, and there's no attempt at utilising
the -p CL arg to change this. It's also where
/lib/systemd/system/var-lib-nfs-rpc_pipefs.mount causes it to be
mounted. That unit is the sole Requires/After in rpc_pipefs.target,
which is itself a Requires/After on nfs-idmapd.service.

My copy of /etc/nfs.conf was auto-created in the bullseye > bookworm
upgrade, and on bookworm 12.7 /usr/share/nfs-common/conffiles/nfs.conf
still contains the /run/ path.

Editing /etc/nfs.conf to have the /var/... path allows rpc.idmapd to
start correctly.

So, it looks like the nfs-common nfs.conf needs updating, and of
course an update pushed out to ensure that all users *get* that change
as well.
--
- Athanasius (he/him) = Athanasius(at)miggy.org / https://miggy.org/
GPG/PGP Key: https://miggy.org/gpg-key
"And it's me who is my enemy. Me who beats me up.
Me who makes the monsters. Me who strips my confidence." Paula Cole - ME
Loading...