• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 322
  • Last Modified:

NFS: How to setup NFS?

Sorry I am new at this so forgive me for any stupid thingy that I do....

I tried mounting from client side and get this error message

mount -F nfs -o rw nfsservername:/export/home/mydir /mylocaldir

Permission Denied

what did I do wrong or what else do I need to do?

Server side
1) I edited /etc/dfs/dfstab and add
share -F nfs -o rw=nfsclientname /export/home/mydir

shareall

nfs.server start
rpc start

Clientside
I add an entry of serverhostname to /etc/hosts

start the client
nfs.client start

0
petrix
Asked:
petrix
1 Solution
 
petrixAuthor Commented:
hummm.... had a bloody power trip and the nfs service now works...

but still don't understand why it doesn't work previously... so can anyone tell me what else you need to do without restarting the server????

cheers
Petrix
0
 
ahoffmannCommented:
could be a lot of reasons:
      - not enough connections (see man nfsd)
      - nfsserver has any kind of firewall, then check /etc/hosts.* etc.
      - nfsd not running as root
0
 
chintuCommented:
What is your OS?

Client and server both.

0
 
djveCommented:
I thnik your close.

1. The mount command must be done as root (or an account with root privs).

2. When stopping and starting services on the remote machine your order is slightly wrong. There should be no need to start rpc services again (or the machine has more problems than just NFS).

You should have
- edited /etc/dfs/dfstab
- started the nfs.server,
- finally issue the shareall command.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now