[Solved][nfs-utils] possibly broken on odroid-hc1, xu4

Problems with packages? Post here, using [tags] of the package name.

[Solved][nfs-utils] possibly broken on odroid-hc1, xu4

Postby hfs99 » Mon Jun 21, 2021 4:05 am

Anyone running an nfs server on odroid-hc1? (or maybe -hc2.) After nfs-utils and nfsidmap upgrade from 2.5.3 to 2.5.4, nfs-mountd.,service failed to start. I didn't do any troubleshooting (yet) except to revert the packages, which seemed to fix my issue. I can't do any heavy lifting but I can "un-revert" and try to capture log files and error messages if no one else has seen the issue.

$this->bbcode_second_pass_code('', 'pacman -U /var/cache/pacman/pkg/nfs-utils-2.5.3-1-armv7h.pkg.tar.xz
pacman -U /var/cache/pacman/pkg/nfsidmap-2.5.3-1-armv7h.pkg.tar.xz')
got my server running again.

My "investigation":
$this->bbcode_second_pass_code('', '[root@srvalot hfs2]# systemctl restart nfs-mountd.service
[root@srvalot hfs2]# systemctl status nfs-mountd.service
x nfs-mountd.service - NFS Mount Daemon
Loaded: loaded (/usr/lib/systemd/system/nfs-mountd.service; static)
Active: failed (Result: exit-code) since Sun 2021-06-20 21:37:41 CDT; 16s ago
Process: 1440 ExecStart=/usr/sbin/rpc.mountd (code=exited, status=0/SUCCESS)
Main PID: 1444 (code=exited, status=1/FAILURE)

Jun 20 21:37:41 srvalot systemd[1]: Starting NFS Mount Daemon...
Jun 20 21:37:41 srvalot rpc.mountd[1444]: Unable to watch /proc/fs/nfsd/clients: No such file or directory
Jun 20 21:37:41 srvalot systemd[1]: Started NFS Mount Daemon.
Jun 20 21:37:41 srvalot systemd[1]: nfs-mountd.service: Main process exited, code=exited, status=1/FAILURE
Jun 20 21:37:41 srvalot systemd[1]: nfs-mountd.service: Failed with result 'exit-code'.
[root@srvalot hfs2]# systemctl reboot
[root@srvalot hfs2]# Connection to 192.168.1.79 closed by remote host.
Connection to 192.168.1.79 closed.
[hfs2@asrock-1a ~]$ ssh -l hfs2 192.168.1.79
hfs2@192.168.1.79's password:
Last login: Sun Jun 20 21:33:46 2021 from 192.168.1.3
[hfs2@srvalot ~]$ systemctl status nfs-mountd.service
x nfs-mountd.service - NFS Mount Daemon
Loaded: loaded (/usr/lib/systemd/system/nfs-mountd.service; static)
Active: failed (Result: exit-code) since Sun 2021-06-20 21:39:34 CDT; 26s ago
Process: 283 ExecStart=/usr/sbin/rpc.mountd (code=exited, status=0/SUCCESS)
Main PID: 287 (code=exited, status=1/FAILURE)

Warning: some journal files were not opened due to insufficient permissions.
[')
I don't show it here, but vsftpd and darkhttpd servers had no issues - only the nfs server.
hfs99
 
Posts: 16
Joined: Thu Feb 21, 2019 2:42 pm

Re: [nfs-utils, nfsidmap 2.5.4-1] possibly broken on odroid-

Postby wx64 » Sat Jun 26, 2021 6:42 pm

Hi, thanks for posting, same issue on Odroid XU4 after upgrade of nfs packages from 2.5.3 to 2.5.4 . Under 2.5.4 I got access denied when trying to "showmount -e" both on the server and on the client. Reverting to 2.5.3 fixes the issue.
wx64
 
Posts: 1
Joined: Tue Dec 31, 2019 1:59 pm

Re: [nfs-utils, nfsidmap 2.5.4-1] possibly broken on odroid-

Postby hfs99 » Thu Jul 01, 2021 4:37 pm

I wasn't really able to get any additional info. The only clue I see is
$this->bbcode_second_pass_code('', 'rpc.mountd[288]: Unable to watch /proc/fs/nfsd/clients: No such file or directory')
That (virtual) directory doesn't exist under 2.5.4-1; FWIW it doesn't exist in 2.5.3-1 either.
--------
This is all TL:DR - included for the sake of completeness.
command line and status
$this->bbcode_second_pass_code('', '[root@srvalot hfs2]# pacman -U /var/cache/pacman/pkg/nfs-utils-2.5.4-1-armv7h.pkg.tar.xz
[root@srvalot hfs2]# pacman -U /var/cache/pacman/pkg/nfsidmap-2.5.4-1-armv7h.pkg.tar.xz

[root@srvalot hfs2]# systemctl status nfs-idmapd.servce nfs-mountd.service nfs-server.service nfsdcld.service
Unit nfs-idmapd.servce.service could not be found.
* nfs-mountd.service - NFS Mount Daemon
Loaded: loaded (/usr/lib/systemd/system/nfs-mountd.service; static)
Active: active (running) since Sat 2021-06-26 13:38:58 CDT; 4 days ago
Main PID: 287 (rpc.mountd)
Memory: 2.3M
CGroup: /system.slice/nfs-mountd.service
`-287 /usr/sbin/rpc.mountd

Jun 26 13:38:58 srvalot systemd[1]: Starting NFS Mount Daemon...
Jun 26 13:38:58 srvalot rpc.mountd[287]: Version 2.5.3 starting
Jun 26 13:38:58 srvalot systemd[1]: Started NFS Mount Daemon.

* nfs-server.service - NFS server and services
Loaded: loaded (/usr/lib/systemd/system/nfs-server.service; enabled; vendor preset: disabled)
Drop-In: /run/systemd/generator/nfs-server.service.d
`-order-with-mounts.conf
Active: active (exited) since Sat 2021-06-26 13:38:58 CDT; 4 days ago
Main PID: 289 (code=exited, status=0/SUCCESS)
Memory: 0B
CGroup: /system.slice/nfs-server.service

Jun 26 13:38:58 srvalot systemd[1]: Starting NFS server and services...
Jun 26 13:38:58 srvalot systemd[1]: Finished NFS server and services.

* nfsdcld.service - NFSv4 Client Tracking Daemon
Loaded: loaded (/usr/lib/systemd/system/nfsdcld.service; static)
Active: active (running) since Wed 2021-05-19 09:11:58 CDT; 1 months 12 days ago
Main PID: 257 (nfsdcld)
Memory: 1.8M
CGroup: /system.slice/nfsdcld.service
`-257 /usr/sbin/nfsdcld

May 19 09:11:58 srvalot systemd[1]: Starting NFSv4 Client Tracking Daemon...
May 19 09:11:58 srvalot systemd[1]: Started NFSv4 Client Tracking Daemon.

[root@srvalot hfs2]# systemctl restart nfs-mountd.service
[root@srvalot hfs2]# systemctl status nfs-mountd.service
x nfs-mountd.service - NFS Mount Daemon
Loaded: loaded (/usr/lib/systemd/system/nfs-mountd.service; static)
Active: failed (Result: exit-code) since Thu 2021-07-01 09:32:52 CDT; 17s ago
Process: 17682 ExecStart=/usr/sbin/rpc.mountd (code=exited, status=0/SUCCESS)
Main PID: 17686 (code=exited, status=1/FAILURE)

Jul 01 09:32:52 srvalot systemd[1]: Starting NFS Mount Daemon...
Jul 01 09:32:52 srvalot rpc.mountd[17686]: Unable to watch /proc/fs/nfsd/clients: No such file or directory
Jul 01 09:32:52 srvalot systemd[1]: Started NFS Mount Daemon.
Jul 01 09:32:52 srvalot systemd[1]: nfs-mountd.service: Main process exited, code=exited, status=1/FAILURE
Jul 01 09:32:52 srvalot systemd[1]: nfs-mountd.service: Failed with result 'exit-code'.
[root@srvalot hfs2]#
[root@srvalot hfs2]# systemctl reboot

[root@srvalot hfs2]# systemctl status nfs-idmapd.service
* nfs-idmapd.service - NFSv4 ID-name mapping service
Loaded: loaded (/usr/lib/systemd/system/nfs-idmapd.service; static)
Active: active (running) since Thu 2021-07-01 09:36:11 CDT; 5min ago
Process: 256 ExecStart=/usr/sbin/rpc.idmapd (code=exited, status=0/SUCCESS)
Main PID: 260 (rpc.idmapd)
Memory: 1.3M
CGroup: /system.slice/nfs-idmapd.service
`-260 /usr/sbin/rpc.idmapd

Jul 01 09:36:11 srvalot systemd[1]: Starting NFSv4 ID-name mapping service...
Jul 01 09:36:11 srvalot rpc.idmapd[260]: Setting log level to 0
Jul 01 09:36:11 srvalot systemd[1]: Started NFSv4 ID-name mapping service.
[root@srvalot hfs2]# systemctl status nfs-mountd.service
x nfs-mountd.service - NFS Mount Daemon
Loaded: loaded (/usr/lib/systemd/system/nfs-mountd.service; static)
Active: failed (Result: exit-code) since Thu 2021-07-01 09:36:21 CDT; 7min ago
Process: 285 ExecStart=/usr/sbin/rpc.mountd (code=exited, status=0/SUCCESS)
Main PID: 290 (code=exited, status=1/FAILURE)

Jul 01 09:36:22 srvalot systemd[1]: Starting NFS Mount Daemon...
Jul 01 09:36:21 srvalot systemd[1]: Started NFS Mount Daemon.
Jul 01 09:36:21 srvalot systemd[1]: nfs-mountd.service: Main process exited, code=exited, status=1/FAILURE
Jul 01 09:36:21 srvalot systemd[1]: nfs-mountd.service: Failed with result 'exit-code'.
[root@srvalot hfs2]# systemctl status nfs-server.service
* nfs-server.service - NFS server and services
Loaded: loaded (/usr/lib/systemd/system/nfs-server.service; enabled; vendor preset: disabled)
Drop-In: /run/systemd/generator/nfs-server.service.d
`-order-with-mounts.conf
Active: active (exited) since Thu 2021-07-01 09:36:23 CDT; 9min ago
Process: 291 ExecStartPre=/usr/sbin/exportfs -r (code=exited, status=0/SUCCESS)
Process: 292 ExecStart=/usr/sbin/rpc.nfsd (code=exited, status=0/SUCCESS)
Main PID: 292 (code=exited, status=0/SUCCESS)

Jul 01 09:36:24 srvalot rpc.nfsd[292]: rpc.nfsd: Unable to request RDMA services: Protocol not supported
Jul 01 09:36:21 srvalot systemd[1]: Starting NFS server and services...
Jul 01 09:36:23 srvalot systemd[1]: Finished NFS server and services.
[root@srvalot hfs2]# systemctl status nfsdcld.service
* nfsdcld.service - NFSv4 Client Tracking Daemon
Loaded: loaded (/usr/lib/systemd/system/nfsdcld.service; static)
Active: active (running) since Thu 2021-07-01 09:36:11 CDT; 10min ago
Process: 257 ExecStart=/usr/sbin/nfsdcld (code=exited, status=0/SUCCESS)
Main PID: 259 (nfsdcld)
Memory: 2.0M
CGroup: /system.slice/nfsdcld.service
`-259 /usr/sbin/nfsdcld

Jul 01 09:36:11 srvalot systemd[1]: Starting NFSv4 Client Tracking Daemon...
Jul 01 09:36:11 srvalot systemd[1]: Started NFSv4 Client Tracking Daemon.
')

journal
$this->bbcode_second_pass_code('', '### boots:
### a7f3 -- booted with 2.5.3-1, updated to 2.5.4-1, restarted nfs-mountd.service
### 9294 -- first reboot after update to 2.5.4-1
### e068 -- /etc/idmapd.conf Verbosity = 6 (was 0)
### a7d7 -- Verbosity = 7

[root@srvalot hfs2]# journalctl --unit=nfs-mountd.service
...
-- Boot a0ad1ec38d6e4223b614ec978a6ca7f3 --
Jun 26 13:38:58 srvalot systemd[1]: Starting NFS Mount Daemon...
Jun 26 13:38:58 srvalot rpc.mountd[287]: Version 2.5.3 starting
Jun 26 13:38:58 srvalot systemd[1]: Started NFS Mount Daemon.
Jul 01 09:32:52 srvalot rpc.mountd[287]: Caught signal 15, un-registering and exiting.
Jul 01 09:32:52 srvalot systemd[1]: Stopping NFS Mount Daemon...
Jul 01 09:32:52 srvalot systemd[1]: nfs-mountd.service: Deactivated successfully.
Jul 01 09:32:52 srvalot systemd[1]: Stopped NFS Mount Daemon.
Jul 01 09:32:52 srvalot systemd[1]: Starting NFS Mount Daemon...
Jul 01 09:32:52 srvalot rpc.mountd[17686]: Unable to watch /proc/fs/nfsd/clients: No such file or directory
Jul 01 09:32:52 srvalot systemd[1]: Started NFS Mount Daemon.
Jul 01 09:32:52 srvalot systemd[1]: nfs-mountd.service: Main process exited, code=exited, status=1/FAILURE
Jul 01 09:32:52 srvalot systemd[1]: nfs-mountd.service: Failed with result 'exit-code'.
-- Boot 3b6a1be21d1e4b75a06501481bb29294 --
Jul 01 09:36:22 srvalot systemd[1]: Starting NFS Mount Daemon...
Jul 01 09:36:21 srvalot systemd[1]: Started NFS Mount Daemon.
Jul 01 09:36:21 srvalot systemd[1]: nfs-mountd.service: Main process exited, code=exited, status=1/FAILURE
Jul 01 09:36:21 srvalot systemd[1]: nfs-mountd.service: Failed with result 'exit-code'.
-- Boot e7c491d94ae040d2a4d35b5719ede068 --
Jul 01 10:20:58 srvalot systemd[1]: Starting NFS Mount Daemon...
Jul 01 10:20:58 srvalot rpc.mountd[288]: Unable to watch /proc/fs/nfsd/clients: No such file or directory
Jul 01 10:20:58 srvalot systemd[1]: Started NFS Mount Daemon.
Jul 01 10:20:58 srvalot systemd[1]: nfs-mountd.service: Main process exited, code=exited, status=1/FAILURE
Jul 01 10:20:58 srvalot systemd[1]: nfs-mountd.service: Failed with result 'exit-code'.
-- Boot 373f485d4a6d48dbaa66806deda3a7d7 --
Jul 01 10:57:17 srvalot systemd[1]: Starting NFS Mount Daemon...
Jul 01 10:57:18 srvalot rpc.mountd[281]: Unable to watch /proc/fs/nfsd/clients: No such file or directory
Jul 01 10:57:18 srvalot systemd[1]: Started NFS Mount Daemon.
Jul 01 10:57:18 srvalot systemd[1]: nfs-mountd.service: Main process exited, code=exited, status=1/FAILURE
Jul 01 10:57:18 srvalot systemd[1]: nfs-mountd.service: Failed with result 'exit-code'.
lines 600-654/654 (END)

[root@srvalot hfs2]# journalctl --unit=nfs-idmapd.service
...
-- Boot a0ad1ec38d6e4223b614ec978a6ca7f3 --
Jul 01 09:32:52 srvalot rpc.idmapd[256]: exiting on signal 15
Jul 01 09:32:52 srvalot systemd[1]: Stopping NFSv4 ID-name mapping service...
Jul 01 09:32:52 srvalot systemd[1]: nfs-idmapd.service: Main process exited, code=exited, status=1/FAILURE
Jul 01 09:32:52 srvalot systemd[1]: nfs-idmapd.service: Failed with result 'exit-code'.
Jul 01 09:32:52 srvalot systemd[1]: Stopped NFSv4 ID-name mapping service.
Jul 01 09:32:52 srvalot systemd[1]: Starting NFSv4 ID-name mapping service...
Jul 01 09:32:52 srvalot rpc.idmapd[17683]: Setting log level to 0
Jul 01 09:32:52 srvalot systemd[1]: Started NFSv4 ID-name mapping service.
Jul 01 09:35:31 srvalot systemd[1]: Stopping NFSv4 ID-name mapping service...
Jul 01 09:35:31 srvalot systemd[1]: nfs-idmapd.service: Main process exited, code=exited, status=1/FAILURE
Jul 01 09:35:31 srvalot systemd[1]: nfs-idmapd.service: Failed with result 'exit-code'.
Jul 01 09:35:31 srvalot systemd[1]: Stopped NFSv4 ID-name mapping service.
-- Boot 3b6a1be21d1e4b75a06501481bb29294 --
Jul 01 09:36:11 srvalot systemd[1]: Starting NFSv4 ID-name mapping service...
Jul 01 09:36:11 srvalot rpc.idmapd[260]: Setting log level to 0
Jul 01 09:36:11 srvalot systemd[1]: Started NFSv4 ID-name mapping service.
Jul 01 10:20:14 srvalot rpc.idmapd[260]: exiting on signal 15
Jul 01 10:20:14 srvalot systemd[1]: Stopping NFSv4 ID-name mapping service...
Jul 01 10:20:14 srvalot systemd[1]: nfs-idmapd.service: Main process exited, code=exited, status=1/FAILURE
Jul 01 10:20:14 srvalot systemd[1]: nfs-idmapd.service: Failed with result 'exit-code'.
Jul 01 10:20:14 srvalot systemd[1]: Stopped NFSv4 ID-name mapping service.
-- Boot e7c491d94ae040d2a4d35b5719ede068 --
Jul 01 10:20:50 srvalot systemd[1]: Starting NFSv4 ID-name mapping service...
Jul 01 10:20:50 srvalot rpc.idmapd[257]: Setting log level to 6
Jul 01 10:20:51 srvalot rpc.idmapd[257]: libnfsidmap: Unable to determine the NFSv4 domain; Using 'localdomain' as the NFSv4 domain which means UIDs will be mapped to the 'Nobody-User' user defined in /etc/idmapd.conf
Jul 01 10:20:51 srvalot rpc.idmapd[257]: libnfsidmap: using (default) domain: localdomain
Jul 01 10:20:51 srvalot rpc.idmapd[257]: libnfsidmap: Realms list: 'LOCALDOMAIN'
Jul 01 10:20:51 srvalot rpc.idmapd[257]: libnfsidmap: loaded plugin /usr/lib/libnfsidmap/nsswitch.so for method nsswitch
Jul 01 10:20:51 srvalot rpc.idmapd[257]: Expiration time is 600 seconds.
Jul 01 10:20:51 srvalot rpc.idmapd[257]: Opened /proc/net/rpc/nfs4.nametoid/channel
Jul 01 10:20:51 srvalot rpc.idmapd[257]: Opened /proc/net/rpc/nfs4.idtoname/channel
Jul 01 10:20:51 srvalot systemd[1]: Started NFSv4 ID-name mapping service.
Jul 01 10:56:36 srvalot rpc.idmapd[257]: exiting on signal 15
Jul 01 10:56:36 srvalot systemd[1]: Stopping NFSv4 ID-name mapping service...
Jul 01 10:56:37 srvalot systemd[1]: nfs-idmapd.service: Main process exited, code=exited, status=1/FAILURE
Jul 01 10:56:37 srvalot systemd[1]: nfs-idmapd.service: Failed with result 'exit-code'.
Jul 01 10:56:37 srvalot systemd[1]: Stopped NFSv4 ID-name mapping service.
-- Boot 373f485d4a6d48dbaa66806deda3a7d7 --
Jul 01 10:57:10 srvalot systemd[1]: Starting NFSv4 ID-name mapping service...
Jul 01 10:57:10 srvalot rpc.idmapd[257]: Setting log level to 7
Jul 01 10:57:10 srvalot rpc.idmapd[257]: libnfsidmap: Unable to determine the NFSv4 domain; Using 'localdomain' as the NFSv4 domain which means UIDs will be mapped to the 'Nobody-User' user defined in /etc/idmapd.conf
Jul 01 10:57:10 srvalot rpc.idmapd[257]: libnfsidmap: using (default) domain: localdomain
Jul 01 10:57:10 srvalot rpc.idmapd[257]: libnfsidmap: Realms list: 'LOCALDOMAIN'
Jul 01 10:57:10 srvalot rpc.idmapd[257]: libnfsidmap: loaded plugin /usr/lib/libnfsidmap/nsswitch.so for method nsswitch
Jul 01 10:57:10 srvalot rpc.idmapd[257]: Expiration time is 600 seconds.
Jul 01 10:57:10 srvalot rpc.idmapd[257]: Opened /proc/net/rpc/nfs4.nametoid/channel
Jul 01 10:57:10 srvalot rpc.idmapd[257]: Opened /proc/net/rpc/nfs4.idtoname/channel
Jul 01 10:57:10 srvalot systemd[1]: Started NFSv4 ID-name mapping service.
lines 647-701/701 (END)

[root@srvalot hfs2]# journalctl --unit=nfs-server.service
...
-- Boot a0ad1ec38d6e4223b614ec978a6ca7f3 --
Jun 26 13:38:58 srvalot systemd[1]: Starting NFS server and services...
Jun 26 13:38:58 srvalot systemd[1]: Finished NFS server and services.
Jul 01 09:32:52 srvalot systemd[1]: Stopping NFS server and services...
Jul 01 09:32:52 srvalot systemd[1]: nfs-server.service: Deactivated successfully.
Jul 01 09:32:52 srvalot systemd[1]: Stopped NFS server and services.
Jul 01 09:32:52 srvalot systemd[1]: Starting NFS server and services...
Jul 01 09:32:53 srvalot rpc.nfsd[17688]: rpc.nfsd: Unable to request RDMA services: Protocol not supported
Jul 01 09:32:53 srvalot systemd[1]: Finished NFS server and services.
Jul 01 09:35:30 srvalot systemd[1]: Stopping NFS server and services...
Jul 01 09:35:30 srvalot systemd[1]: nfs-server.service: Deactivated successfully.
Jul 01 09:35:30 srvalot systemd[1]: Stopped NFS server and services.
-- Boot 3b6a1be21d1e4b75a06501481bb29294 --
Jul 01 09:36:24 srvalot rpc.nfsd[292]: rpc.nfsd: Unable to request RDMA services: Protocol not supported
Jul 01 09:36:21 srvalot systemd[1]: Starting NFS server and services...
Jul 01 09:36:23 srvalot systemd[1]: Finished NFS server and services.
Jul 01 10:20:13 srvalot systemd[1]: Stopping NFS server and services...
Jul 01 10:20:14 srvalot systemd[1]: nfs-server.service: Deactivated successfully.
Jul 01 10:20:14 srvalot systemd[1]: Stopped NFS server and services.
-- Boot e7c491d94ae040d2a4d35b5719ede068 --
Jul 01 10:20:58 srvalot systemd[1]: Starting NFS server and services...
Jul 01 10:20:58 srvalot rpc.nfsd[290]: rpc.nfsd: Unable to request RDMA services: Protocol not supported
Jul 01 10:20:58 srvalot systemd[1]: Finished NFS server and services.
Jul 01 10:56:36 srvalot systemd[1]: Stopping NFS server and services...
Jul 01 10:56:36 srvalot systemd[1]: nfs-server.service: Deactivated successfully.
Jul 01 10:56:36 srvalot systemd[1]: Stopped NFS server and services.
-- Boot 373f485d4a6d48dbaa66806deda3a7d7 --
Jul 01 10:57:18 srvalot systemd[1]: Starting NFS server and services...
Jul 01 10:57:18 srvalot rpc.nfsd[283]: rpc.nfsd: Unable to request RDMA services: Protocol not supported
Jul 01 10:57:18 srvalot systemd[1]: Finished NFS server and services.
lines 586-640/640 (END)

[root@srvalot hfs2]# journalctl --unit=nfsdcld.service
...
-- Boot a0ad1ec38d6e4223b614ec978a6ca7f3 --
Jul 01 09:35:31 srvalot systemd[1]: Stopping NFSv4 Client Tracking Daemon...
Jul 01 09:35:31 srvalot systemd[1]: nfsdcld.service: Deactivated successfully.
Jul 01 09:35:31 srvalot systemd[1]: Stopped NFSv4 Client Tracking Daemon.
-- Boot 3b6a1be21d1e4b75a06501481bb29294 --
Jul 01 09:36:11 srvalot systemd[1]: Starting NFSv4 Client Tracking Daemon...
Jul 01 09:36:11 srvalot systemd[1]: Started NFSv4 Client Tracking Daemon.
Jul 01 10:20:14 srvalot systemd[1]: Stopping NFSv4 Client Tracking Daemon...
Jul 01 10:20:14 srvalot systemd[1]: nfsdcld.service: Deactivated successfully.
Jul 01 10:20:14 srvalot systemd[1]: Stopped NFSv4 Client Tracking Daemon.
-- Boot e7c491d94ae040d2a4d35b5719ede068 --
Jul 01 10:20:50 srvalot systemd[1]: Starting NFSv4 Client Tracking Daemon...
Jul 01 10:20:51 srvalot systemd[1]: Started NFSv4 Client Tracking Daemon.
Jul 01 10:56:37 srvalot systemd[1]: Stopping NFSv4 Client Tracking Daemon...
Jul 01 10:56:37 srvalot systemd[1]: nfsdcld.service: Deactivated successfully.
Jul 01 10:56:37 srvalot systemd[1]: Stopped NFSv4 Client Tracking Daemon.
-- Boot 373f485d4a6d48dbaa66806deda3a7d7 --
Jul 01 10:57:10 srvalot systemd[1]: Starting NFSv4 Client Tracking Daemon...
Jul 01 10:57:10 srvalot systemd[1]: Started NFSv4 Client Tracking Daemon.
lines 455-509/509 (END)
')

I didn't have much success increasing log verbosity. I did change /etc/idmapd.conf Verbosity from 0 to 7. I also looked at /etc/nfs.conf and etc/nfsmount.conf for clues about /proc/fs/nfsd/clients, as well as increased verbosity, and didn't see anything that looked useful to me.
verbose fail
$this->bbcode_second_pass_code('', '[root@srvalot hfs2]# systemctl service-log-level nfs-idmapd.service
Unit nfs-idmapd.service doesn't declare BusName=.
Hint: the service must declare BusName= and implement the appropriate D-Bus interface.
See the org.freedesktop.LogControl1(5) man page for details.
[root@srvalot hfs2]# systemctl service-log-level nfs-mountd.service
Unit nfs-mountd.service doesn't declare BusName=.
Hint: the service must declare BusName= and implement the appropriate D-Bus interface.
See the org.freedesktop.LogControl1(5) man page for details.
[root@srvalot hfs2]# systemctl service-log-level nfs-server.service
Unit nfs-server.service doesn't declare BusName=.
Hint: the service must declare BusName= and implement the appropriate D-Bus interface.
See the org.freedesktop.LogControl1(5) man page for details.
[root@srvalot hfs2]# systemctl service-log-level nfsdcld.service
Unit nfsdcld.service doesn't declare BusName=.
Hint: the service must declare BusName= and implement the appropriate D-Bus interface.
See the org.freedesktop.LogControl1(5) man page for details.
')
hfs99
 
Posts: 16
Joined: Thu Feb 21, 2019 2:42 pm

Re: [nfs-utils, nfsidmap 2.5.4-1] possibly broken on odroid-

Postby hfs99 » Thu Jul 01, 2021 5:11 pm

Floundering, grasping-at-straws, jumping-to-conclusions across-the-Grand-Canyon here.
All this is under 2.5.3.1 (which works).
contents of /proc/fs/nfsd
$this->bbcode_second_pass_code('', '[root@srvalot hfs2]# ls -l /proc/fs/nfsd
total 0
-r--r--r-- 1 root root 0 Jul 1 11:50 export_features
-r--r--r-- 1 root root 0 Jul 1 11:50 exports
-rw------- 1 root root 0 Jul 1 11:50 filehandle
-rw-r--r-- 1 root root 0 Jul 1 11:50 max_block_size
-rw-r--r-- 1 root root 0 Jul 1 11:50 max_connections
-rw------- 1 root root 0 Jul 1 11:50 nfsv4gracetime
-rw------- 1 root root 0 Jul 1 11:50 nfsv4leasetime
-rw------- 1 root root 0 Jul 1 11:50 nfsv4recoverydir
-r--r--r-- 1 root root 0 Jul 1 11:50 pool_stats
-rw------- 1 root root 0 Jul 1 11:50 pool_threads
-rw-r--r-- 1 root root 0 Jul 1 11:50 portlist
-r--r--r-- 1 root root 0 Jul 1 11:50 reply_cache_stats
-r--r--r-- 1 root root 0 Jul 1 11:50 supported_krb5_enctypes
-rw------- 1 root root 0 Jul 1 11:50 threads
-rw------- 1 root root 0 Jul 1 11:50 unlock_filesystem
-rw------- 1 root root 0 Jul 1 11:50 unlock_ip
-rw-r--r-- 1 root root 0 Jul 1 11:50 v4_end_grace
-rw------- 1 root root 0 Jul 1 11:50 versions
')

exports - no clients connected
$this->bbcode_second_pass_code('', '[root@srvalot hfs2]# cat /proc/fs/nfsd/exports
# Version 1.1
# Path Client(Flags) # IPs
')

exports - one client connected
$this->bbcode_second_pass_code('', '[root@srvalot hfs2]# cat /proc/fs/nfsd/exports
# Version 1.1
# Path Client(Flags) # IPs
/srv *(ro,insecure,no_root_squash,sync,no_wdelay,no_subtree_check,v4root,uuid=6cffd59d:75964767:8cd214db:44915e59,sec=390003:390004:390005:1)
/srv/public *(rw,root_squash,all_squash,sync,wdelay,no_subtree_check,anonuid=1001,anongid=1001,uuid=6cffd59d:75964767:8cd214db:44915e59,sec=1)
/ *(ro,insecure,no_root_squash,sync,no_wdelay,no_subtree_check,v4root,fsid=0,uuid=e293dd93:89a84ab4:b57f60b2:255d6446,sec=390003:390004:390005:1)
')

Hypothesizing that 2.5.3 uses /proc/fs/nfsd/exports rather than /proc/fs/nfsd/clients. Could be way off base.
hfs99
 
Posts: 16
Joined: Thu Feb 21, 2019 2:42 pm

Re: [nfs-utils, nfsidmap 2.5.4-1] possibly broken on odroid-

Postby alfmel » Sun Jul 04, 2021 1:18 pm

Same problem as I upgraded today on XU4. I wonder if the kernel is missing a config directive... maybe?
alfmel
 
Posts: 4
Joined: Sat Feb 02, 2019 2:54 pm

Re: [nfs-utils, nfsidmap 2.5.4-1] possibly broken on odroid-

Postby hfs99 » Mon Jul 05, 2021 2:46 pm

distantly related data point: nfs-utils just went from 2.5.3 to 2.5.4 on Fedora 33 x86-64. /proc/fs/nfsd/clients existed both before and after the upgrade.
------
nfs-utils is on my desktop for test/comparison purposes only. Normally disabled. Correct sequence would have been
enable - check - upgrade - check - disable.
My sequence was
upgrade - enable - check - downgrade - check - upgrade - disable
Apples and oranges anyway
  • Fedora vs Arch
  • x86-64 vs armv7h
  • kernel 5.12.13 vs 4.14.18
-------
Talking out my arse here but config maintenance probably gets more complicated as the kernel gets farther out of date.
hfs99
 
Posts: 16
Joined: Thu Feb 21, 2019 2:42 pm

Re: [nfs-utils, nfsidmap 2.5.4-1] possibly broken on odroid-

Postby jimduchek » Mon Jul 19, 2021 5:11 pm

I don't think it's a kernel config issue. It looks like the code that adds /proc/fs/nfsd/clients/ was added to the kernel in 2019, and is not in the 4.14 kernel that hardkernel provides for the odroid (in my case, XU4, but seeing the same issue). I can reproduce the exact same behaviour w/2.5.2 by simply killing rpc.mountd. I looked through the code that was added in nfs-utils 2.5.4 and this inotify check is entirely unavoidable (no config options or anything to get around it), it appears that they entirely broke NFS for all 4.X kernels (several of which are still active LTS, so this is bad).

I suspect most systems running a 4.X LTS kernel do _not_ generally keep the rest of their packages particularly up-to-date either, which is why nobody else but Archlinux/ARM seems to have noticed it :D
jimduchek
 
Posts: 5
Joined: Tue Aug 01, 2017 5:24 pm

Re: [nfs-utils, nfsidmap 2.5.4-1] possibly broken on odroid-

Postby stefguy » Wed Jul 21, 2021 7:04 am

Howdy,

just received my first Odroid-HC1 a few days back. Plan was to run a NFS server on it but for the reason you guys discussed above this failed so far.

As my installation is shiny fresh I do not have the old packages in the cache, and the few RasPis running alarm around here don't have either. So, to get this to work with downgrading I guess I need the two 2.5.3-1 packages of nfs-utils and nfsidmap. I know of the Arch Linux Archive, but it only contains old x64 stuff .. is there something around like that for alarm as well?

Or any chance one of you would be so kind to post the packages somewhere :roll: ?

greetings, Stefan
stefguy
 
Posts: 18
Joined: Fri Jul 13, 2018 2:55 pm

Re: [nfs-utils, nfsidmap 2.5.4-1] possibly broken on odroid-

Postby mcarni » Fri Jul 23, 2021 10:29 am

Hi all,

I am quite new to archlinux arm and the odroid platform
i was pointed in the direction of this thread by one of the cool IRC guys, somehow my forum search fu was weak yesterday ;-)

I just wanted to confirm that reverting nfs-utils down to 2.5.3 solved the issue for me

@stefguy, if you need it i can give you my PKGBUILD, no problem in sharing it if it helps... (I might have broken all the best practices... it was the first time i built/compiled a package myself...)


i have also not understood if this issue is being worked on by someone and if at some point there will be a fix
or if i have to keep re-installing manually the old nfs-utils version every time there is an update
no intention to put pressure on anyone, i would just like to know how i need to tackle this for the future

thanks a lot
M
mcarni
 
Posts: 19
Joined: Fri Jul 23, 2021 9:54 am

Re: [nfs-utils, nfsidmap 2.5.4-1] possibly broken on odroid-

Postby hfs99 » Fri Jul 23, 2021 3:55 pm

@ stefguy: I tried to upload the packages to
https://overtracks.com/sos/20210723/

Let me know it that seems broken. Sorry for the delay - didn't check this forum for a couple of days.

@mcarni
Seems (semi)-permanent per jimduchek. You can add the following to /etc/pacman.conf to prevent upgrades of the two packages
$this->bbcode_second_pass_code('', 'IgnorePkg = nfs-utils nfsidmap')

There is a post in the hardware forum about update to newer kernel. (Doesn't sound promising in short term.)
hfs99
 
Posts: 16
Joined: Thu Feb 21, 2019 2:42 pm

Next

Return to Packages

Who is online

Users browsing this forum: No registered users and 7 guests