Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Recent hardware upgrade has broken NFS shares.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
RayDude
Advocate
Advocate


Joined: 29 May 2004
Posts: 2062
Location: San Jose, CA

PostPosted: Sat Jul 03, 2021 4:41 pm    Post subject: Recent hardware upgrade has broken NFS shares. Reply with quote

My server has a bunch of shares via nfs. I recently upgraded processor and motherboard on that system. I have also just emerged -DNuq @world on all these systems and have switched to 5.13 gentoo kernel.

Since then, none of the clients can connect with the NFS folders. (or disconnect as evidenced by the fact that one system I did an emerge -DNuq @world on wouldn't shut down because it hung at "unmounting shares"). I tried an old kernel on the client, but that didn't help.

Trying to mount the nfs folders on the client results in a hang on bootup. One machine I attempted to mount to says this after a really long timeout, "mount.nfs: mount system call failed". Nothing appears in dmesg or in /var/log/messages.

I checked exportfs and the server thinks he's sharing. I did actually rebuild the whole system (emerge -e @world) for the new CPU ARCH (CFLAGS includes -march=native -mtune=native).

I'm trying to think of a way to debug this. Never had this problem before.

Can anyone make some suggestions?

Thanks.
_________________
Some day there will only be free software.
Back to top
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3879

PostPosted: Sat Jul 03, 2021 5:33 pm    Post subject: Reply with quote

Plz see
https://forums.gentoo.org/viewtopic-t-1138170-highlight-.html
_________________
:)
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21631

PostPosted: Sat Jul 03, 2021 5:35 pm    Post subject: Reply with quote

I would start by narrowing the problem scope. You changed several things at once, including switching to the new 5.13 kernel. If I recall correctly, there is a known regression in 5.13 when used as an NFS server.
Back to top
View user's profile Send private message
RayDude
Advocate
Advocate


Joined: 29 May 2004
Posts: 2062
Location: San Jose, CA

PostPosted: Sun Jul 04, 2021 3:25 am    Post subject: Reply with quote

alamahant wrote:
Plz see
https://forums.gentoo.org/viewtopic-t-1138170-highlight-.html


Thanks!
_________________
Some day there will only be free software.
Back to top
View user's profile Send private message
RayDude
Advocate
Advocate


Joined: 29 May 2004
Posts: 2062
Location: San Jose, CA

PostPosted: Mon Jul 05, 2021 4:42 pm    Post subject: Reply with quote

For those who find this thread in the near future, create a file called: /etc/portage/patches/sys-kernel/gentoo-sources-5.13.0/nfs_v3.patch

And put this in it:
Code:
diff --git a/mm/page_alloc.c b/mm/page_alloc.c
index 5b5c9f5813b9a..2bf03c76504b0 100644
--- a/mm/page_alloc.c
+++ b/mm/page_alloc.c
@@ -5058,7 +5058,7 @@ unsigned long __alloc_pages_bulk(gfp_t gfp, int preferred_nid,
 
        /* Already populated array? */
        if (unlikely(page_array && nr_pages - nr_populated == 0))
-               return 0;
+               return nr_populated;
 
        /* Use the single page allocator for one page. */
        if (nr_pages - nr_populated == 1)


Then re-emerge the package, rebuild your kernel, etc.

This will be fixed in the next release of the kernel.
_________________
Some day there will only be free software.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum