Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
NFS not working
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
methodtwo
Apprentice
Apprentice


Joined: 01 Feb 2008
Posts: 231

PostPosted: Thu May 08, 2008 10:18 pm    Post subject: nfs queries Reply with quote

Hi,
In order to have my boxes talking to each other for NFS i have to put the hostnames in /etc/hosts right?.Forgive me for being a network newbie.Can anyone tell me if i'm correct and show me how to make the entries in /etc/hosts?.Thankx in advance
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 9882
Location: almost Mile High in the USA

PostPosted: Fri May 09, 2008 12:13 am    Post subject: Reply with quote

You should be able to access other machines via NFS with dotted quad IP addresses. If you want to use the automounter, then that may require hostnames to be set.

You'll need to run the portmapper, nfsd, mountd, (and potentially, lockd, statd) and you should be able to mount by IP address if your /etc/exports allow it. Portmapper needs to be run on both machines even if it doesn't share nfs directories.
_________________
Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
methodtwo
Apprentice
Apprentice


Joined: 01 Feb 2008
Posts: 231

PostPosted: Fri May 09, 2008 8:23 pm    Post subject: nfsd as module or in kernel Reply with quote

Hi there,
I'm planning on running an nfs server.Is it allright if nfsd is compiled into the kernel, as opposed to being a module that gets loaded at boot time?
Back to top
View user's profile Send private message
pappy_mcfae
Watchman
Watchman


Joined: 27 Dec 2007
Posts: 5999
Location: Pomona, California.

PostPosted: Fri May 09, 2008 8:39 pm    Post subject: Reply with quote

I have the nfs stuff compiled directly into my kernels, and my nfsd works just fine. And, if you plan on moving to samba any time in the future, enable cifs support while you're there.

Blessed be!
Pappy
_________________
This space left intentionally blank, except for these ASCII symbols.
Back to top
View user's profile Send private message
methodtwo
Apprentice
Apprentice


Joined: 01 Feb 2008
Posts: 231

PostPosted: Fri May 09, 2008 9:29 pm    Post subject: Reply with quote

Thankx dude....and thankx for your other eloquent replies to my previous post(on nfs i believe)
Back to top
View user's profile Send private message
pappy_mcfae
Watchman
Watchman


Joined: 27 Dec 2007
Posts: 5999
Location: Pomona, California.

PostPosted: Fri May 09, 2008 9:38 pm    Post subject: Reply with quote

You're welcome.

Blessed be!
Pappy
_________________
This space left intentionally blank, except for these ASCII symbols.
Back to top
View user's profile Send private message
methodtwo
Apprentice
Apprentice


Joined: 01 Feb 2008
Posts: 231

PostPosted: Sat May 10, 2008 12:11 am    Post subject: NFS not working Reply with quote

I've just installed nfs-utils on my nfs client machine and on the nfs server machine, compiled i believe the necessary stuff in the ker nel for the server and client machines, but nfs is still not working. i get this error:
Code:

#mount xxx.xxx.xxx.xxx::/home/me /home/me/nfs
mount: mount to NFS server 'xxx.xxx.xxx.xxx' failed: RPC Error: program not registered.

I have all the necessary info in /etc/hosts and i also have the I.P address of the client along with the client daemons in /etc/hosts.allow.
Oh and i have port fowarding in my router for tcp port 2049
Please could anyone post me a method for how to check if i have all the necessary packages installed on both the client and server machines?.Any help would be great
Here are the excerts from the .config file for both the client and the server. The server's is
Code:

matt@novaexpress /usr/src/linux $ grep NFS .config
CONFIG_NFS_FS=m
CONFIG_NFS_V3=y
CONFIG_NFS_V3_ACL=y
# CONFIG_NFS_V4 is not set
CONFIG_NFS_DIRECTIO=y
CONFIG_NFSD=y
CONFIG_NFSD_V2_ACL=y
CONFIG_NFSD_V3=y
CONFIG_NFSD_V3_ACL=y
# CONFIG_NFSD_V4 is not set
CONFIG_NFSD_TCP=y
CONFIG_NFS_ACL_SUPPORT=y
CONFIG_NFS_COMMON=y

and the clients is:
Code:

softmachine linux # grep NFS .config
CONFIG_NFS_FS=m
CONFIG_NFS_V3=y
CONFIG_NFS_COMMON=y

Thankx for any help and replies
Back to top
View user's profile Send private message
El_Presidente_Pufferfish
Veteran
Veteran


Joined: 11 Jul 2002
Posts: 1179
Location: Seattle

PostPosted: Sat May 10, 2008 12:14 am    Post subject: Reply with quote

Try starting portmap on both sides
Back to top
View user's profile Send private message
tgR10
Apprentice
Apprentice


Joined: 23 Oct 2007
Posts: 262
Location: caly ten ambaras

PostPosted: Sat May 10, 2008 12:34 am    Post subject: Reply with quote

edit your /etc/hosts.allow
to similar like this
Code:
portmap: ip.ip.ip.ip/netmask
lockd: ip.ip.ip.ip/netmask
rquotad: ip.ip.ip.ip/netmask
mountd: ip.ip.ip.ip/netmask
statd: ip.ip.ip.ip/netmask

_________________
"bo kto ma racje ? ten kto z bliska zobaczy"
"moge nie wiedziec,wchlaniam niewiedze z malych torebek"
http://i12.tinypic.com/4pow0mu.png
http://userbar.tgr.debil.eu/userbar.jpg
Back to top
View user's profile Send private message
methodtwo
Apprentice
Apprentice


Joined: 01 Feb 2008
Posts: 231

PostPosted: Sat May 10, 2008 12:43 am    Post subject: Reply with quote

Portmap was started on both sides.....trying a re-edit of /etc/hosts.allow as suggested.Thankx for your replies guys.
Back to top
View user's profile Send private message
methodtwo
Apprentice
Apprentice


Joined: 01 Feb 2008
Posts: 231

PostPosted: Sat May 10, 2008 12:52 am    Post subject: Reply with quote

Nope i've tried both your suggestions but have had no luck with either.
Back to top
View user's profile Send private message
bunder
Bodhisattva
Bodhisattva


Joined: 10 Apr 2004
Posts: 5947

PostPosted: Sat May 10, 2008 5:24 am    Post subject: Reply with quote

merged a bunch of nfs threads by the same user here. what isn't here was moved to duplicate threads.
_________________
Neddyseagoon wrote:
The problem with leaving is that you can only do it once and it reduces your influence.

banned from #gentoo since sept 2017
Back to top
View user's profile Send private message
methodtwo
Apprentice
Apprentice


Joined: 01 Feb 2008
Posts: 231

PostPosted: Sat May 10, 2008 12:26 pm    Post subject: nfs daemons Reply with quote

Hi...I'm using gentoo.Can anyone tell me how to start all the necessary nfs daemons, excluding portmap coz i have that started.I installed the nfs-utils package on the client and the server(which is supposed to have all the nfs daemons included).But when i do(on the server):
Code:

/etc/init.d/mountd

i get:
Code:

bash: /etc/init.d/mountd: No such file or directory


It's the same with nfslogd, lockd and rquotad etc. I have nfsd compiled directly into my kernel.
I don't understand.All the nfs daemons were supposed to be in nfs-utils.Any help would be great and if your telling me that i need to install the nfs daemons then please tell me how(prefferably for gentoo).Thankx in advance
Back to top
View user's profile Send private message
questionaire
Tux's lil' helper
Tux's lil' helper


Joined: 01 May 2006
Posts: 131

PostPosted: Sat May 10, 2008 12:45 pm    Post subject: Re: nfs daemons Reply with quote

methodtwo wrote:
Hi...I'm using gentoo.

never thought about that when you are posting in a gentoo forum ;)

Needed on Server-Side: nfs portmap
Code:
/etc/init.d/nfs start
/etc/init.d/portmap start


Needed on Client Side: portmap

when i read your questions i really think that you should go and read some gentoo wiki docs or gentoo handbooks. maybe gentoo is not the right linux distribution if you really have no idea
Back to top
View user's profile Send private message
methodtwo
Apprentice
Apprentice


Joined: 01 Feb 2008
Posts: 231

PostPosted: Sat May 10, 2008 1:05 pm    Post subject: Reply with quote

sorry for being a n00b dude.I guess it's kinda annoying.
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 23062

PostPosted: Sat May 10, 2008 3:49 pm    Post subject: Reply with quote

methodtwo:
I have not yet seen any of your posts where you provide the output of emerge --info. This shows us quite a bit about your configuration, at least some of which is often relevant to the problem at hand. You should always include the output of emerge --info in a new thread or link back to a post in which you provided it previously. Similarly, if you report the name of a package that you think is relevant to a problem, please include the output of emerge --pretend --verbose category/package, so that we can see what version you are using and what flags were used to build it.

Please try to use correct spelling and grammar to the extent practical. Allowances are often made for people whose native language is not English, but your style suggests to me that you are a native speaker. Not all readers here are native English speakers, and if your post uses idioms, alternate spellings, or other shortcuts, it may be more difficult for some readers to follow. That reduces the audience of potentially helpful people.

Finally, some directly relevant commentary: I think you have been reading documentation for some other Linux distribution. Some types of documentation apply to all Linux distributions. Other types do not. NFS initialization happens to fall into the latter category. Gentoo does not have /etc/init.d/mountd. Instead, NFS services are managed through /etc/init.d/nfs, as questionaire said.
Back to top
View user's profile Send private message
methodtwo
Apprentice
Apprentice


Joined: 01 Feb 2008
Posts: 231

PostPosted: Sun May 11, 2008 8:04 am    Post subject: NFS not working[solved] Reply with quote

Hi there..i don't know if you've read my posts about my NFS problems.Basically it started working when i re-compiled my kernel so that nfsd was a module and not compiled directly into the kernel.
Back to top
View user's profile Send private message
bunder
Bodhisattva
Bodhisattva


Joined: 10 Apr 2004
Posts: 5947

PostPosted: Sun May 11, 2008 8:07 am    Post subject: Reply with quote

merged in two more threads.
_________________
Neddyseagoon wrote:
The problem with leaving is that you can only do it once and it reduces your influence.

banned from #gentoo since sept 2017
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