View previous topic :: View next topic |
Author |
Message |
zhushazang Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/857428424c3cfeff663ef.jpg)
Joined: 01 Dec 2005 Posts: 81
|
Posted: Mon Jun 07, 2010 7:36 pm Post subject: NFS4 mounting problem |
|
|
I'm using net-fs/nfs-utils1.2.2-r1 in server and client host and trying to mount under nfs4 /usr/portage/distfiles mount point to share downloaded archs. But something are wrong:
in server
/etc/fstab
rpc_pipefs /var/lib/nfs/rpc_pipefs rpc_pipefs defaults 0 0
nfsd /proc/fs/nfsd nfsd defaults 0 0
/etc/exports
/usr/portage/ mynetwork.0/24(fsid=0,rw,sync,no_subtree_check,secure,anonuid=1000,anongid=100)
/usr/portage/distfiles mynetwork.0/24(nohide,rw,sync,no_subtree_check,secure,anonuid=1000,anongid=100)
in client
/et/fstab
server.mydomain:/usr/portage/distfiles/ /usr/portage/distfiles nfs4 tcp,sync,rw,hard,intr 0 0
But, i'm blocked in this message:
mount -v -t nfs4 myserver:/usr/portage/distfiles/ /usr/portage/distfiles/
mount.nfs4: timeout set for Mon Jun 7 16:37:43 2010
mount.nfs4: trying text-based options 'addr=xxx.xxx.xxx.150,clientaddr=xxx.xxx.xxx.138'
mount.nfs4: mount(2): No such file or directory
mount.nfs4: mounting myserver:/usr/portage/distfiles/ failed, reason given by server:
No such file or directory
What is the matter?
Att |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
maxime1986 n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 23 Oct 2009 Posts: 74
|
Posted: Mon Jun 07, 2010 8:08 pm Post subject: |
|
|
Hello
try : Code: | mount -v -t nfs4 myserver:/distfiles /usr/portage/distfiles |
does /usr/portage/distfiles is a "bind mounted" directory ?? because if it's not .. I think that you can remove :
Code: | /usr/portage/distfiles mynetwork.0/24(nohide,rw,sync,no_subtree_check,secure,anonuid=1000,anongid=100) |
from your exports file. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
zhushazang Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/857428424c3cfeff663ef.jpg)
Joined: 01 Dec 2005 Posts: 81
|
Posted: Wed Jun 09, 2010 4:09 pm Post subject: |
|
|
Man, you save me.
Thanks a lot. Now, NFS4 on the road.
Thanks again. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
zhushazang Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/857428424c3cfeff663ef.jpg)
Joined: 01 Dec 2005 Posts: 81
|
Posted: Wed Jun 09, 2010 4:21 pm Post subject: |
|
|
Hi again.
Problems in NFS4 world.
I can mount, but now i can't write inside mounted directory.
I'm using this options now:
client:
myserver:/distfiles/ /usr/portage/distfiles nfs4 tcp,sync,rw,hard,intr 0 0
server:
/usr/portage/ mynetwork/24(fsid=0,rw,sync,no_subtree_check,insecure)
In mount answer command, apear rw, but, don't workk yet.
Some hide option?
Thanks... |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
zhushazang Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/857428424c3cfeff663ef.jpg)
Joined: 01 Dec 2005 Posts: 81
|
Posted: Wed Jun 09, 2010 4:51 pm Post subject: [SOLVED] NFS4 Problems |
|
|
Changing some options inside /etc/exports (+no_root_squash,-insecure) and now, really working.
Bye |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
dol-sen Retired Dev
![Retired Dev Retired Dev](/images/ranks/rank-retired.gif)
![](images/avatars/895601024436ad996b979b.gif)
Joined: 30 Jun 2002 Posts: 2805 Location: Richmond, BC, Canada
|
Posted: Wed Jun 30, 2010 7:45 pm Post subject: |
|
|
Could you please post your final server and client setup again. I can't get mine to have write access either, despite everything ![Sad :(](images/smiles/icon_sad.gif) _________________ Brian
Porthole, the Portage GUI frontend irc@freenode: #gentoo-guis, #porthole, Blog
layman, gentoolkit, CoreBuilder, esearch... |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
dol-sen Retired Dev
![Retired Dev Retired Dev](/images/ranks/rank-retired.gif)
![](images/avatars/895601024436ad996b979b.gif)
Joined: 30 Jun 2002 Posts: 2805 Location: Richmond, BC, Canada
|
Posted: Thu Jul 01, 2010 12:31 am Post subject: |
|
|
I found the problem. It turned out that rpc.idmapd wasn't running on the client, so the uid and gid's were wrong for portage and pkgcore. I could touch and write using cp. _________________ Brian
Porthole, the Portage GUI frontend irc@freenode: #gentoo-guis, #porthole, Blog
layman, gentoolkit, CoreBuilder, esearch... |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|
|
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
|
|