Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
NFSv4 got me ... is it me or Gentoo?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo Chat
View previous topic :: View next topic  
Author Message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Tue Feb 11, 2020 3:02 pm    Post subject: NFSv4 got me ... is it me or Gentoo? Reply with quote

So I got serious and migrated to NFSv4, in full, all boxes, all shares.
Then I upgraded kernel and forgot it. A few days later I ran world upgrade and ... emerge cannot save distfiles.
My $DISTDIR is in my media server which is up 24x7. All was working fine with NFSv3.
Now, troubleshooting. When I do
Code:
su -s /bin/bash portage
touch /mnt/dist/test

it fails with access denied error.
However, if I do
Code:
su -s /bin/bash portage
cd /mnt/dist
touch test

then the file 'test' is created. Go figure.
The solution was to rebuild nfs-utils.

It would be nice to have a command to find and rebuild such sensitive packages after kernel upgrade. To avoid all that head scratching and inevitable hair loss associated with it (not that many left). :roll:
_________________
My Gentoo installation notes.
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 6920

PostPosted: Tue Feb 11, 2020 6:21 pm    Post subject: Reply with quote

I've had problems using a similar setup, but there's also autofs in between. It usually fails when ebuilds try to check /usr/src/linux (also on NFS), which is weird because it can usually access $PORTDIR and $DISTDIR fine mounted the same way.

I think portage's sandbox interferes with it somehow. Not 100% sure.
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Tue Feb 11, 2020 7:40 pm    Post subject: Reply with quote

I created a set with nfs-utils in it, now I can run 'emerge @post-kernel-upgrade'. Not that it is a magic solution, but it at least helps me remember.
_________________
My Gentoo installation notes.
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 6920

PostPosted: Tue Feb 11, 2020 10:16 pm    Post subject: Reply with quote

May be a good idea to put @module-rebuild in that set too (you can nest them). It might not be relevant today, but it's another thing taken care of if you're already running it after every kernel change.
Back to top
View user's profile Send private message
Zucca
Moderator
Moderator


Joined: 14 Jun 2007
Posts: 3815
Location: Rasi, Finland

PostPosted: Tue Feb 11, 2020 10:39 pm    Post subject: Reply with quote

Nice tips guys.

I'll start creating such sets too. Thanks.
_________________
..: Zucca :..

My gentoo installs:
init=/sbin/openrc-init
-systemd -logind -elogind seatd

Quote:
I am NaN! I am a man!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo Chat 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