Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
NFS4 mounting problem
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
zhushazang
Tux's lil' helper
Tux's lil' helper


Joined: 01 Dec 2005
Posts: 81

PostPosted: Mon Jun 07, 2010 7:36 pm    Post subject: NFS4 mounting problem Reply with quote

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
View user's profile Send private message
maxime1986
n00b
n00b


Joined: 23 Oct 2009
Posts: 74

PostPosted: Mon Jun 07, 2010 8:08 pm    Post subject: Reply with quote

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
View user's profile Send private message
zhushazang
Tux's lil' helper
Tux's lil' helper


Joined: 01 Dec 2005
Posts: 81

PostPosted: Wed Jun 09, 2010 4:09 pm    Post subject: Reply with quote

Man, you save me.

Thanks a lot. Now, NFS4 on the road.

Thanks again.
Back to top
View user's profile Send private message
zhushazang
Tux's lil' helper
Tux's lil' helper


Joined: 01 Dec 2005
Posts: 81

PostPosted: Wed Jun 09, 2010 4:21 pm    Post subject: Reply with quote

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
View user's profile Send private message
zhushazang
Tux's lil' helper
Tux's lil' helper


Joined: 01 Dec 2005
Posts: 81

PostPosted: Wed Jun 09, 2010 4:51 pm    Post subject: [SOLVED] NFS4 Problems Reply with quote

Changing some options inside /etc/exports (+no_root_squash,-insecure) and now, really working.

Bye
Back to top
View user's profile Send private message
dol-sen
Retired Dev
Retired Dev


Joined: 30 Jun 2002
Posts: 2805
Location: Richmond, BC, Canada

PostPosted: Wed Jun 30, 2010 7:45 pm    Post subject: Reply with quote

Could you please post your final server and client setup again. I can't get mine to have write access either, despite everything :(
_________________
Brian
Porthole, the Portage GUI frontend irc@freenode: #gentoo-guis, #porthole, Blog
layman, gentoolkit, CoreBuilder, esearch...
Back to top
View user's profile Send private message
dol-sen
Retired Dev
Retired Dev


Joined: 30 Jun 2002
Posts: 2805
Location: Richmond, BC, Canada

PostPosted: Thu Jul 01, 2010 12:31 am    Post subject: Reply with quote

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
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