LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 07-08-2010, 02:12 AM   #1
Elnegro8
Member
 
Registered: Jul 2006
Posts: 70

Rep: Reputation: 15
how to create nfs server


hi
im tring to create a server for file shering for like 20 linux machines
i want all the clients will be able to access a folder on the server
by mount command
the server ip is :172.19.0.1
and i edit the file on the server :
LinuxGateway19:~# cat /etc/exports
# /etc/exports: the access control list for filesystems which may be exported
# to NFS clients. See exports(5).
#
# Example for NFSv2 and NFSv3:
# /srv/homes hostname1(rw,sync) hostname2(ro,sync)
#
# Example for NFSv4:
# /srv/nfs4 gss/krb5i(rw,sync,fsid=0,crossmnt)
# /srv/nfs4/homes gss/krb5i(rw,sync)
/Files gss/krb5i(rw,sync)


i edit the last line the folder --> /Files is the folder i want to share with the others clinets machine

whan i try to run a mount command from a client to the server this is what i get
============================================================
[root@Poly_1C ~]# mount 172.19.0.1:/Files /mnt/Share/
mount: 172.19.0.1:/Files failed, reason given by server: Permission denied
============================================================
what i missing ???

please advise i need this ASAP

p.s

i need only to share files nothing more

10xxx
 
Old 07-08-2010, 03:17 AM   #2
maxie
Member
 
Registered: Jan 2006
Location: South East Coast Australia
Distribution: Kubuntu/Ubuntu
Posts: 41
Blog Entries: 5

Rep: Reputation: 15
This how I export my data-drive out to other machines which are behind a firewall.
You have nfs installed of course. I have nfs-kernel-server and nfs-common (among others).

Check it's running:
Code:
rpcinfo -p

In /etc/exports file:
Include full path to export, asterix means share to anywhere, then some options. (Make work first then add custom options later)
example:
Code:
/home/maxie/T-REX/Major/	 *(rw,async)

Make changes to exports stick:
Code:
sudo exportfs

Now over at the client machine:
Check which mounts are active.
(Change to your servers IP address.)
Code:
showmount -e 172.19.0.1
Mount as usual..
You're previous command:
Code:
[root@Poly_1C ~]# mount 172.19.0.1:/Files /mnt/Share/
You should not be logged in as root! anyway, you were testing... right?
Code:
sudo mount 172.19.0.1:/share/is/full/path /mnt/Share/
Put your mount into fstab and your good to go.

Now someone can point out my errors and fill in the blanks.

Last edited by maxie; 07-08-2010 at 03:22 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] NFS mount fails (times out): NFS server is in DMZ, NFS client is in intranet Hiroshi Linux - Networking 2 05-24-2010 10:22 AM
Linux NFS client <--> Leopard NFS server ACL support tplessers Linux - Networking 0 02-17-2010 04:28 AM
nfs server on ubuntu doesn't play nice with nfs client on solaris mathiraj Linux - Networking 11 09-15-2009 02:08 PM
LXer: Run your NFS server in the user address space with NFS-GANESHA LXer Syndicated Linux News 0 11-27-2008 04:40 AM
NFS client = Linux, NFS server = Mac OS X Tiger --> Hell of a problem make Linux - Networking 9 03-10-2006 05:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 07:53 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration