View previous topic :: View next topic |
Author |
Message |
Jaglover Watchman
![Watchman Watchman](/images/ranks/rank-G-2-watchman.gif)
![](images/avatars/179708169458f2999e44e26.gif)
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). ![Rolling Eyes :roll:](images/smiles/icon_rolleyes.gif) _________________ My Gentoo installation notes.
Please learn how to denote units correctly! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Ant P. Watchman
![Watchman Watchman](/images/ranks/rank-G-2-watchman.gif)
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 |
|
![](templates/gentoo/images/spacer.gif) |
Jaglover Watchman
![Watchman Watchman](/images/ranks/rank-G-2-watchman.gif)
![](images/avatars/179708169458f2999e44e26.gif)
Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Ant P. Watchman
![Watchman Watchman](/images/ranks/rank-G-2-watchman.gif)
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 |
|
![](templates/gentoo/images/spacer.gif) |
Zucca Moderator
![Moderator Moderator](/images/ranks/rank-mod.gif)
![](images/avatars/8484577066727ff6a19116.gif)
Joined: 14 Jun 2007 Posts: 3939 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 |
|
![](templates/gentoo/images/spacer.gif) |
|