Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
distfiles via NFS share
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
^marcs
Apprentice
Apprentice


Joined: 09 Mar 2005
Posts: 169

PostPosted: Wed Apr 25, 2012 2:14 pm    Post subject: distfiles via NFS share Reply with quote

Hello,
does anyone successfuly exported distfiles via NFS protocol?

i have this exported on server
Code:
/usr/portage/distfiles 192.168.1.20(sync,rw,no_subtree_check,insecure,no_root_squash)


i can can read and write it after mounting, but apparently i can't chown anything, i'm getting "Invalid argument" error.
and i think thats the reason why emerge is crashing while it's downloading something on client on to mounted NFS share.

here is portage error
Quote:
Calculating dependencies... done!

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) sys-libs/glibc-2.15-r1
[Errno 22] Invalid argument: '/home/distfiles/.glibc-2.15.tar.xz.portage_lockfile': chown('/home/distfiles/.glibc-2.15.tar.xz.portage_lockfile', -1, 250)
Cannot chown a lockfile: '/home/distfiles/.glibc-2.15.tar.xz.portage_lockfile'
Group IDs of current user: 0 1 2 3 4 6 10 11 26 27 1002
* glibc-2.15.tar.xz RMD160 SHA1 SHA256 size ;-) ... [ ok ]
Traceback (most recent call last):
File "/usr/lib64/portage/pym/_emerge/EbuildFetcher.py", line 191, in _spawn
allow_missing_digests=allow_missing):
File "/usr/lib64/portage/pym/portage/package/ebuild/fetch.py", line 644, in fetch
stat_cached=mystat)
File "/usr/lib64/portage/pym/portage/util/__init__.py", line 1104, in apply_secpass_permissions
stat_cached=stat_cached, follow_links=follow_links)
File "/usr/lib64/portage/pym/portage/util/__init__.py", line 934, in apply_permissions
os.chown(filename, uid, gid)
File "/usr/lib64/portage/pym/portage/__init__.py", line 230, in __call__
rval = self._func(*wrapped_args, **wrapped_kwargs)
OSError: [Errno 22] Invalid argument: '/home/distfiles/glibc-2.15.tar.xz'
* Fetch failed for 'sys-libs/glibc-2.15-r1', Log file:
* '/var/tmp/portage/sys-libs/glibc-2.15-r1/temp/build.log'

>>> Failed to emerge sys-libs/glibc-2.15-r1, Log file:

>>> '/var/tmp/portage/sys-libs/glibc-2.15-r1/temp/build.log'

* Messages for package sys-libs/glibc-2.15-r1:

* Fetch failed for 'sys-libs/glibc-2.15-r1', Log file:
* '/var/tmp/portage/sys-libs/glibc-2.15-r1/temp/build.log'


what might be wrong?
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


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

PostPosted: Wed Apr 25, 2012 2:51 pm    Post subject: Reply with quote

I have portage in whole on NFS. I created user gentoo:gentoo in remote box and I'm mapping all root/portage access from client boxes to this user, which has write access to portage directory of course.
_________________
My Gentoo installation notes.
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
^marcs
Apprentice
Apprentice


Joined: 09 Mar 2005
Posts: 169

PostPosted: Wed Apr 25, 2012 4:45 pm    Post subject: Reply with quote

It appears it was same "problem" as described here http://www.goldfisch.at/knowledge/460
After forcing usage of version 3 I had to additionally add -o nolock , which meas "it will keep all locks localy" , but I dont know what that could mean, anyone care to explain?

this is my current mount line, and its working
Code:
mount -t nfs -o vers=3,nolock xo:/usr/portage/distfiles distfiles/
Back to top
View user's profile Send private message
Thistled
Guru
Guru


Joined: 06 Jan 2011
Posts: 551
Location: Scotland

PostPosted: Wed Apr 25, 2012 7:15 pm    Post subject: Reply with quote

I seem to recall having this problem with lockfiles because I was mixing up NFS-v3 with NFS-v4. ( I had rebuilt my kernel and included v4)
Once I rebuilt my kernel and chose to stay with just version 3, the problem was solved.
_________________
Whatever you do, do it properly!
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