View previous topic :: View next topic |
Author |
Message |
Jaglover Watchman
Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
Posted: Tue Feb 11, 2020 3:02 pm Post subject: NFSv4 got me ... is it me or Gentoo? |
|
|
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). _________________ My Gentoo installation notes.
Please learn how to denote units correctly! |
|
Back to top |
|
|
Ant P. Watchman
Joined: 18 Apr 2009 Posts: 6920
|
Posted: Tue Feb 11, 2020 6:21 pm Post subject: |
|
|
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 |
|
|
Jaglover Watchman
Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
|
Back to top |
|
|
Ant P. Watchman
Joined: 18 Apr 2009 Posts: 6920
|
Posted: Tue Feb 11, 2020 10:16 pm Post subject: |
|
|
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 |
|
|
Zucca Moderator
Joined: 14 Jun 2007 Posts: 3815 Location: Rasi, Finland
|
Posted: Tue Feb 11, 2020 10:39 pm Post subject: |
|
|
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 |
|
|
|