NFS lockd not starting properly on reboot

DaveY

Contributor
Joined
Dec 1, 2014
Messages
141
Been using FreeNAS for over 5 years and decided to finally upgrade to new TrueNAS core in December. Since then, users have reported NFS related errors, mainly related to applications needing to lock a NFS file (e.g. gnupg, libreoffice)

After some troubleshooting, it seems lockd is not starting properly on reboot or is terminating after a reboot. rpcinfo -p returns the following:
Code:
rpcinfo -p
   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
    100000    4     7    111  portmapper
    100000    3     7    111  portmapper
    100000    2     7    111  portmapper
    100005    1   udp    987  mountd
    100005    3   udp    987  mountd
    100005    1   tcp    987  mountd
    100005    3   tcp    987  mountd
    100003    2   tcp   2049  nfs
    100003    3   tcp   2049  nfs
    100024    1   udp    888  status
    100024    1   tcp    888  status

The lockd process does appear to be running, but nlockmgr is just not being serviced.
root 3356 0.0 0.0 17336 4324 - Ss 22:08 0:00.00 /usr/sbin/rpc.lockd -d 10

Performing a manual restart directly from GUI fixes the nlockmgr service, but the slider icon just spins indefinitely as if the restart did not complete cleanly (see image)
truenas-nfs-start-hang.png


Not seeing any logs as to why this is happening. Note, I was running FreeNAS 11.2-U7 prior to upgrading and never encountered this issue.

No hardware changes whatsoever. Only updated to TrueNAS 12-U1

Be happy to provide any logs, outputs, etc... Any assistance would be appreciated. Thanks

Specs:
Gigabyte Z97N-WIFI
Intel(R) Core(TM) i7-4765T CPU @ 2.00GHz
16GB DDR3 1333Mhz RAM
Intel Pro Gigabit NIC (onboard)
Chelsio T440-CR 10Gb Card
 

hunter-nl

Cadet
Joined
Oct 15, 2020
Messages
7
I experience exactly the same issue. After reboot TrueNAS system, I get "unable to get shared lock - EIO: I/O error" on the NFS clients. To get this working again the NFS service in the GUI needs to be restarted. And the spinner is running forever until you go to other GUI page and go back to the services page. I'm running the system from the early TrueNAS 12-beta version, but experience this issue since version 12.0-stable and newer. I'm running now 12.0-stable U1.1. As temporarily workaround, I've created a cron job to restart NFS service 5 minutes after it has been rebooted. But it should be nice to get this issue fixed.
 

fraenki

Cadet
Joined
Feb 16, 2012
Messages
9
It looks like the same issue is still present in TrueNAS Core 12.0-U8.

Was anyone able to find a permanent fix? Is a bug report available in iXsystems Jira?
 
Top