Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] Nfs problem. I get rpc error.
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
sk8harddiefast
Guru
Guru


Joined: 15 Feb 2009
Posts: 335
Location: athens

PostPosted: Thu Feb 13, 2014 12:16 am    Post subject: [Solved] Nfs problem. I get rpc error. Reply with quote

I make a try to mount my HDD for my server to my computer.
I emerge nfs-utils

This is my /etc/portage/package.use
Code:
net-fs/nfs-utils libmount nfsdcld nfsidmap -nfsv3 nfsv4 nfsv41 -nonfsv4 uuid


I add my server to my /etc/hosts file
Code:
192.168.1.4 FreeNAS


This is my /etc/fstab
Code:
192.168.1.4:/mnt/inbox-raidz/datavault       /mnt/Mirror   nfs   rw   0 0
192.168.1.4:/mnt/raidon-stripe/dataspeed   /mnt/Stripe   nfs   rw   0 0
192.168.1.4:/mnt/inbox-500                /mnt/500        nfs   rw   0 0


And finally I change the line on /etc/conf.d/nfs found it on Gentoo wiki
Code:
OPTS_RPC_MOUNTD="-V 4 -N 3 -N 2"


And now the problem.

Code:
ember@gentoo /etc $ sudo init.d/rpcbind start
 * Starting rpcbind ...                                                   [ ok ]
ember@gentoo /etc $ sudo init.d/nfs start
 * Starting NFS statd ...                                                 [ ok ]
 * Starting idmapd ...                                                    [ ok ]
 * Starting NFS mountd ...                                                [ ok ]
 * Starting NFS daemon ...
rpc.nfsd: Setting version failed: errno 22 (Invalid argument)         [ ok ]
 * Starting NFS smnotify ...                                              [ ok ]


And my HDD's are not mounting.
Am I doing somenting wrong? What I forgot?
_________________
Compile The Universe


Last edited by sk8harddiefast on Thu Feb 13, 2014 12:30 pm; edited 1 time in total
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21431

PostPosted: Thu Feb 13, 2014 2:50 am    Post subject: Reply with quote

Based on your text, host gentoo is the NFS client and host FreeNAS is the NFS server. Based on the provided output, you are trying to start the NFS server on host gentoo. This appears to be incorrect. Start script nfsmount if you want to be an NFS client.
Back to top
View user's profile Send private message
sk8harddiefast
Guru
Guru


Joined: 15 Feb 2009
Posts: 335
Location: athens

PostPosted: Thu Feb 13, 2014 12:29 pm    Post subject: Reply with quote

Yes. Worked perfect! Now my disks are mounted :) Thanks a lot :)
_________________
Compile The Universe
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