View previous topic :: View next topic |
Author |
Message |
RayDude Advocate
Joined: 29 May 2004 Posts: 2062 Location: San Jose, CA
|
Posted: Sat Jul 03, 2021 4:41 pm Post subject: Recent hardware upgrade has broken NFS shares. |
|
|
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 |
|
|
alamahant Advocate
Joined: 23 Mar 2019 Posts: 3879
|
|
Back to top |
|
|
Hu Moderator
Joined: 06 Mar 2007 Posts: 21631
|
Posted: Sat Jul 03, 2021 5:35 pm Post subject: |
|
|
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 |
|
|
RayDude Advocate
Joined: 29 May 2004 Posts: 2062 Location: San Jose, CA
|
Posted: Sun Jul 04, 2021 3:25 am Post subject: |
|
|
Thanks! _________________ Some day there will only be free software. |
|
Back to top |
|
|
RayDude Advocate
Joined: 29 May 2004 Posts: 2062 Location: San Jose, CA
|
Posted: Mon Jul 05, 2021 4:42 pm Post subject: |
|
|
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 |
|
|
|