Ask Your Question
1

Help setting up NFS server on Fedora 21 Server Edition

asked 2015-02-16 06:19:14 -0500

andrewglass3 gravatar image

updated 2015-02-17 12:43:02 -0500

mether gravatar image

Hey everyone!

Hope you can help me please??

I’m having some issues with NFS on fedora 21. Its probably something I’m missing or getting confused with due to systemd :P

I can remote mount a nfs share but it only shows as read only. I can’t seem to edit a file or save to or create a file from my client?

My /etc/exports is as follows

/mnt/nfs-share 192.168.0.0/24 (rw,no_subtree_check,no_root_squash,async,nohide)

Ive done :-

exportfs –a

systemctl enable nfs-server.service

systemctl start nfs-server.service

I have chown –R root:users /mnt/nfs-share

Then chmod –R 775 /mnt/nfs-share Have I missed anything? Thank you for your help.

Andrew

edit retag flag offensive close merge delete

2 Answers

Sort by » oldest newest most voted
1

answered 2015-02-16 22:01:00 -0500

grundblom gravatar image

Just out of curiosity, what happens if you do a chmod -R 777 on /mnt/nfs-share is it writeable then? I dont think that would be a permanent solution but at least you would know that when you mount the nfs share, you are having the all users rights applied to you.

edit flag offensive delete link more
0

answered 2015-02-17 05:08:14 -0500

cobra gravatar image

updated 2015-02-17 05:08:54 -0500

Here are things to check, resolving these should get things working - NFS doesn't often give many problems...

  1. Check that your firewall on both the server and the client are set to allow NFS access

  2. Check that your client IP address is in the range 192.168.x.x

  3. In /etc/exports remove any whitespace between the client definition and the options bracket (i.e. use 192.168.0.0/24(rw,no_sub..., you appear to have a space in there which is not allowed).

  4. Check that systemctl status nfs-server.service reports the subsystem as running - restart it if necessary

If none of these resolve the issue, then please report back. There is additional help on the man page for /etc/exports which can be found here: http://linux.die.net/man/5/exports

edit flag offensive delete link more

Question Tools

Stats

Asked: 2015-02-16 06:19:14 -0500

Seen: 430 times

Last updated: Feb 17 '15