Simpler Navigation for Servers and Operating Systems
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
cancel
Showing results for 
Search instead for 
Did you mean: 

NFS

friki
Advisor

NFS

Hi,

I need to share by NFS a directory of a host in another one. If it possible or only is allowed to share a filesystem?

In node1(server) I put directory in /etc/exports

How can i mount it en node2(client)?
What others files must modify?


Sorry about my English..

Thanks.-
9 REPLIES
Venkatesh BL
Honored Contributor

Re: NFS

directory is also part of the filesystem...right?!

Yes, you can share sub-directory of a file system as well. Just the update to exports file should do. Check out the manpage of "exports" for various available options.
friki
Advisor

Re: NFS




OK,

Bu, What is the line to mount it in node2(client):

node1:/directory /directory nfs rw,bg,hard,intr 0 0

can i do the following:
(in node2 client)
mount node1:/directory /directory nfs rw,bg,hard,intr 0 0

How can i do?

Thanks.-
friki
Advisor

Re: NFS

sorry

I want to say:

mount -t nfs node1:/dir /dir
I have following error:


Can't access node1:/dir: Permission denied

thanks.-
Venkatesh BL
Honored Contributor

Re: NFS

Check the permissions on /dir directory on the server. It should have atleast read/execute access for all.
Ivan Ferreira
Honored Contributor

Re: NFS

From the client run:

showmount -e node1

Verify that the directory that you want to mount is listed.

You can also post the results of rpcinfo -p node1
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
friki
Advisor

Re: NFS

Hi,

node1:

/dir1 permission 777

node2:

#showmount -e node1

/dir1 access:node2

node2://> # mount -t nfs node1:/dir1 /dir1

Can't access node1:/dir1: Permission denied



I continue with the problem :-(
Venkatesh BL
Honored Contributor

Re: NFS

I think that the exports file entry on the server is wrong.

It should look like:
/directory -access=node2

Then, on the client node2 do,
# mount node1:/directory /directory

This should work.
friki
Advisor

Re: NFS

thanks. It´s OK!!!

I was reviewing all less this....

Regards.-

Venkatesh BL
Honored Contributor

Re: NFS