LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-04-2017, 07:24 PM   #1
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,555

Rep: Reputation: 177Reputation: 177
NFSD: Unable to end grace period


I'm running an up-to-date Slackware64 14.2 server. I'm getting this error on boot:
Code:
mail kernel: [  141.199102] NFSD: Unable to end grace period: -110
The mount points exported appear to be accessible from other hosts.

Does anyone know what this error means?
 
Old 03-06-2017, 09:07 PM   #2
dijetlo
Senior Member
 
Registered: Jan 2009
Location: RHELtopia....
Distribution: Solaris 11.2/Slackware/RHEL/
Posts: 1,491
Blog Entries: 2

Rep: Reputation: Disabled
I would guess it means that on the last reboot of the NFS server, the Slackware server was unable to reclaim it's file locks because it has it's grace period set to a negative integer (-110), so the grace period effectively never runs out because it cannot be accurately evaluated.
However that's just a guess

"cat" these three files on the Slackware server (they're in /proc/sys so they are being exported from kernel-space don't try to open them in an editor or you'll get an unpleasant surprise.)

cat /proc/fs/nfsd/nfsv4gracetime
cat /proc/fs/nfsd/nfsv4leasetime
cat /proc/sys/fs/nfs/nlm_grace_period

If one of them is set to '-110' or any other non-standard value (i.e. it doesn't match the other two)...

Stop NFSD
Echo the same value into all three (30 is 30 seconds, for example. If you're unsure what value to set, check one of the other Linux clients that are mounting NFS to see what values they are set to and use that).
Restart NFSD and see if that resolves the issue.

Last edited by dijetlo; 03-06-2017 at 09:08 PM.
 
Old 03-07-2017, 09:01 AM   #3
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,555

Original Poster
Rep: Reputation: 177Reputation: 177
/proc/fs/nfsd/nfsv4gracetime = 90
cat /proc/fs/nfsd/nfsv4leasetime = 90
cat /proc/sys/fs/nfs/nlm_grace_period - file does not exist.

On a client that uses this server's exports, the /proc/fs/nfsd directory is empty.

Does this tell you anything?

Here's another interesting message that just popped up 2 hours after a reboot:
Code:
Mar  7 10:03:36 mail kernel: [ 5155.548764] CIFS VFS: cifs_mount failed w/return code = -112
I have no cifs mounts in my fstab!

Last edited by mfoley; 03-07-2017 at 09:27 AM.
 
Old 03-08-2017, 09:59 AM   #4
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,659
Blog Entries: 4

Rep: Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941
Since the contents of /proc are entirely synthetic ... it is actually a kernel API, not any sort of physical resource ... I conclude that the NFS subsystem, although provided-for in the kernel, is not running.

On VMs which use NFS shares, I see that this directory exists and is populated.

On VMs which do not use NFS, I see that the directory exists ... somewhat to my surprise ... but is empty.
 
Old 03-09-2017, 09:53 AM   #5
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,555

Original Poster
Rep: Reputation: 177Reputation: 177
Quote:
Originally Posted by sundialsvcs View Post
Since the contents of /proc are entirely synthetic ... it is actually a kernel API, not any sort of physical resource ... I conclude that the NFS subsystem, although provided-for in the kernel, is not running.
But, it must be running or client machines could not see the NFS exported directories.
Quote:
On VMs which use NFS shares, I see that this directory exists and is populated.

On VMs which do not use NFS, I see that the directory exists ... somewhat to my surprise ... but is empty.
Not sure what you're saying here. What do you mean by "VM's"? Virtual Machines? I have not virtual machines in the mix. The /proc/fs/nfsd directory is empty on my NFS client. It is also empty on hosts that do not use NFS.
 
Old 03-09-2017, 10:30 AM   #6
dijetlo
Senior Member
 
Registered: Jan 2009
Location: RHELtopia....
Distribution: Solaris 11.2/Slackware/RHEL/
Posts: 1,491
Blog Entries: 2

Rep: Reputation: Disabled
Quote:
The /proc/fs/nfsd directory is empty... on hosts that do not use NFS.
That makes sense
I think the confusion lies here.
The Slackware machine is an NFS client, not the NFS server. TRUE/FALSE
IF TRUE
Other nodes with a fully functional NFS kernel drivers should be able to mount any directory exported from the NFS server assuming they are authorized to do so in the NFS servers exports configuration on the NFS server. The Kernel driver on the Slackware client seems to have at least partially failed and therefor cannot "recapture" it's NFS mounts because the 'grace-period' where is delays accessing the mounts to allow the Server to clear the pre-existing file locks never expires (because the mechanism at the kernel level it is relying on doesn't exist).
IF FALSE
Why are you trying to mount local NFS shares onto the NFS server? These shares are already running locally through the mounted file system? It seems an unlikely thing to do and so was discounted in the initial discussion.

Last edited by dijetlo; 03-09-2017 at 10:32 AM.
 
Old 03-10-2017, 08:27 AM   #7
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,555

Original Poster
Rep: Reputation: 177Reputation: 177
Quote:
Originally Posted by dijetlo View Post
That makes sense
I think the confusion lies here.
The Slackware machine is an NFS client, not the NFS server. TRUE/FALSE
Yes, confusion. Let me try to clarify. I have several computers, all Linux. For the case in point, one of them is an NFS server exporting a couple of directories, let's call it "A". It is this server that is getting the "NFSD: Unable to end grace period: -110". I have a client, "B" who mounts an exported directory of A's. I reported that, despite the error on A, B can mount A's export.

But now, you make me question myself on this. Due to another problem, I have temporarily switch motherboard and CPU on server A and, interestingly, have not see this error since, so cannot at this time verify that B can mount A's exports. I will be putting the hardware back the way is was in the next 24 hours, so I'll double check this and report back.
 
Old 03-11-2017, 01:17 AM   #8
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,555

Original Poster
Rep: Reputation: 177Reputation: 177
Confirmed. Yes I am getting the "grace period" error/warning on the Server (A) and yes the client (B) can nevertheless successfully mount A's export.
 
Old 03-11-2017, 08:47 AM   #9
dijetlo
Senior Member
 
Registered: Jan 2009
Location: RHELtopia....
Distribution: Solaris 11.2/Slackware/RHEL/
Posts: 1,491
Blog Entries: 2

Rep: Reputation: Disabled
Is server A trying to mount any directories (is it identified in any external exports file )?
Quote:
Yes, confusion.
Language... it's a bent screwdriver...
 
Old 08-02-2017, 01:40 AM   #10
andrixnet
Member
 
Registered: Oct 2012
Location: Romania
Distribution: Slackware
Posts: 167

Rep: Reputation: Disabled
I am getting the same error on a Slackware-14.1 server, that is acting as NFS server.
THe error appears in `dmesg` at boot time, every time.

This is what appears in the `dmesg`:
Quote:
[ 12.650427] NFSD: starting 90-second grace period (net ffffffff820d2540)
[ 20.321526] hpet1: lost 6 rtc interrupts
[ 54.238127] hpet1: lost 5 rtc interrupts
[ 133.002126] NFSD: Unable to end grace period: -110
The server is a virtual machine under VMWare hypervisor.

Last edited by andrixnet; 08-02-2017 at 01:42 AM.
 
Old 08-02-2017, 02:32 AM   #11
TheEzekielProject
Member
 
Registered: Dec 2016
Distribution: arch
Posts: 668

Rep: Reputation: 190Reputation: 190
Quote:
Originally Posted by andrixnet View Post
I am getting the same error on a Slackware-14.1 server, that is acting as NFS server.
THe error appears in `dmesg` at boot time, every time.

This is what appears in the `dmesg`:


The server is a virtual machine under VMWare hypervisor.
You should start a new thread detailing your issue for the best chance at getting help
 
  


Reply

Tags
nfs



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] AWK Adding a Period at the end of a line metallica1973 Programming 11 11-26-2012 02:05 PM
Scheduling with CFS: what happens at the end of a period? bharathravi1 Linux - Kernel 3 01-27-2012 08:33 AM
Unable to get nfsd port number from server j32 Linux - Embedded & Single-board computer 5 09-16-2010 03:51 AM
don't have nfsd mount point in /proc/fs/nfsd...can't start NFS as a result alirezan1 Linux - Newbie 1 11-19-2008 07:57 AM
Root-NFS: Unable to get nfsd port number from server Eileen Linux - Networking 2 04-11-2006 10:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:09 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration