Go Back   PCMech Forums > Linux Support > Linux OS and Software Assistance

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 06-06-2012, 05:08 PM   #1
Member (8 bit)
 
Join Date: Jul 2006
Location: South Wales
Posts: 241
Send a message via MSN to Alexjfinch Send a message via Skype™ to Alexjfinch
NFS Help!

Alas, I am at the end of my rope with this.

I'm trying to create a random share on my linux box using NFS that I can access from my Mac - all seems to be going ok apart from the fact that I cannot access my share from my Mac.

Now I think the issue is NFS-Server.service.

when I type "sudo systemctl status nfs-server.service" the return I get is;
Code:
nfs-server.service - NFS Server
	  Loaded: loaded (/usr/lib/systemd/system/nfs-server.service; enabled)
	  Active: active (exited) since Wed, 06 Jun 2012 22:56:41 +0100; 10min ago
	 Process: 2051 ExecStopPost=/usr/sbin/exportfs -f (code=exited, status=0/SUCCESS)
	 Process: 2048 ExecStop=/usr/sbin/rpc.nfsd 0 (code=exited, status=0/SUCCESS)
	 Process: 2073 ExecStartPost=/usr/lib/nfs-utils/scripts/nfs-server.postconfig (code=exited, status=0/SUCCESS)
	 Process: 2060 ExecStart=/usr/sbin/rpc.nfsd $RPCNFSDARGS ${RPCNFSDCOUNT} (code=exited, status=0/SUCCESS)
	 Process: 2057 ExecStartPre=/usr/sbin/exportfs -r (code=exited, status=0/SUCCESS)
	 Process: 2054 ExecStartPre=/usr/lib/nfs-utils/scripts/nfs-server.preconfig (code=exited, status=0/SUCCESS)
	  CGroup: name=systemd:/system/nfs-server.service
Now then, from what I can see is the service is active but exited? - and for some reason no matter what I try and do I can't seem to get it to run.

I think this is the root of my problems.

Does anyone know what I can do to make that run?

I've tried "sudo systemctl enable nfs-server.service" and likewise restart to no avail.

Please someone help!!

Cheers
Alex
Alexjfinch is offline   Reply With Quote
Old 06-06-2012, 05:25 PM   #2
Staff
Premium Member
 
rjfvillarosa's Avatar
 
Join Date: Sep 2004
Location: Cardiff, Wales. UK
Posts: 6,559
Which Linux distro are you using?
__________________
Niwa no niwa ni wa, niwa no niwatori wa niwaka ni wani o tabeta.
rjfvillarosa is offline   Reply With Quote
Old 06-06-2012, 07:36 PM   #3
Moderator
Staff
Premium Member
 
jdeb's Avatar
 
Join Date: Nov 2008
Location: Detroit, MI
Posts: 5,223
How to create an NFS share on Linux | Random | Blog | TechPad
jdeb is offline   Reply With Quote
Old 06-07-2012, 12:26 AM   #4
Member (8 bit)
 
Join Date: Jul 2006
Location: South Wales
Posts: 241
Send a message via MSN to Alexjfinch Send a message via Skype™ to Alexjfinch
Quote:
Originally Posted by rjfvillarosa View Post
Which Linux distro are you using?
Fedora 17

I've followed countless instructions for that, even that is outdated as portmap has now been superseded by rpcbind.

I just don't know why the application is just not running?
Alexjfinch is offline   Reply With Quote
Old 06-07-2012, 04:51 AM   #5
Member (8 bit)
 
Join Date: Jul 2006
Location: South Wales
Posts: 241
Send a message via MSN to Alexjfinch Send a message via Skype™ to Alexjfinch
Just a few additional piece of information to help diagnose.

The /etc/exports file is as follows;

Code:
/home/alex/shared 192.168.0.0/255.255.255.0(rw,insecure,no_root_squash)
SELinux is set to permissive
Alexjfinch is offline   Reply With Quote
Old 06-07-2012, 09:42 AM   #6
Tin
Stereo junkie
 
Tin's Avatar
 
Join Date: Jan 2004
Location: Just North of Fort Pontchartrain du Détroit
Posts: 3,440
Send a message via AIM to Tin
Which method are you using to mount the share on the Mac? Your exports file looks fine, I'm thinking its something at the Mac end. Disk Utility 12.x: Add an NFS mount
__________________
Join the 1%, use Linux
Tin is offline   Reply With Quote
Old 06-07-2012, 11:14 AM   #7
Member (8 bit)
 
Join Date: Jul 2006
Location: South Wales
Posts: 241
Send a message via MSN to Alexjfinch Send a message via Skype™ to Alexjfinch
In finder - go to - connect to server...

nfs://192.168.0.X/shared

Being within the private network I don't want to bog anything down with user permissions etc.

Ideally this linux box (laptop) is going to be connected permentantly to my router sharing this drive so that I can store everything on it easily.

From every guide I've read the service status output for nfs-server.service is returning Active (Running) where as mine is reporting (exited).

I'm going to try something else when I get home in an hour.
Alexjfinch is offline   Reply With Quote
Old 06-07-2012, 06:41 PM   #8
Member (11 bit)
 
Join Date: Apr 2003
Posts: 1,562
Quote:
Which Linux distro are you using?
Fedora 17
That's not the best choice for this project. Try something like Scientific Linux:

https://www.scientificlinux.org/

Fedora is very bleeding edge software with short support cycles. By way of example, Fedora 17 completely reworked their firewall with the new application name of "firewalld" and didn't get around to providing a gui AFAIK; I can't tell you how to disable the firewall although I'm sure there's a method available to do that. Disabling the firewall and disabling selinux would have been my first suggestion in beginning troubleshooting just to eliminate that as a problem source. Unless you really follow fedora it's hard to keep up with what they're doing over there.

Scientific Linux(SL) is a Red Hat Enterprise Linux(RHEL) clone and would be a very stable choice for this project. At least you can find tons of documentation on setting up an NFS server for RHEL/SL and don't have to worry about the radical changes that sometimes occur between one fedora release and another.

Last edited by kilgoretrout; 06-07-2012 at 08:05 PM.
kilgoretrout is offline   Reply With Quote
Old 06-08-2012, 07:13 AM   #9
Member (8 bit)
 
Join Date: Jul 2006
Location: South Wales
Posts: 241
Send a message via MSN to Alexjfinch Send a message via Skype™ to Alexjfinch
Quote:
Originally Posted by kilgoretrout View Post
That's not the best choice for this project. Try something like Scientific Linux:

https://www.scientificlinux.org/

Fedora is very bleeding edge software with short support cycles. By way of example, Fedora 17 completely reworked their firewall with the new application name of "firewalld" and didn't get around to providing a gui AFAIK; I can't tell you how to disable the firewall although I'm sure there's a method available to do that. Disabling the firewall and disabling selinux would have been my first suggestion in beginning troubleshooting just to eliminate that as a problem source. Unless you really follow fedora it's hard to keep up with what they're doing over there.

Scientific Linux(SL) is a Red Hat Enterprise Linux(RHEL) clone and would be a very stable choice for this project. At least you can find tons of documentation on setting up an NFS server for RHEL/SL and don't have to worry about the radical changes that sometimes occur between one fedora release and another.
I agree with what you're saying - Fedora 17 still has the Firewall gui from the activities screen which you can enable and disable the firewall.

I completely reinstalled Fedora 17 from scratch using the full DVD rather than the live desktop edition and made sure I selected all the packages I wanted on installation.

Once I had gotten it back I created a /share right at the top of the filesystem alongside /var /tmp /etc /home etc and then edited the permissions to full read/write access to everyone.

I then setup my exports file in the exactly the same way.

I noted that the nfs-server.service is still showing as active (exited) however when I type into my Mac machine using finder -> go to server

nfs://192.168.0.3/shared

It mounted the drive perfectly only when I had the firewall disabled - this is fine as I know I just need to allow the correct ports for me to re-enable the firewall if required.

The idea I'm having so far is to have this small laptop hardwired into my router together with my PS3/Xbox etc and then to store my music and other media on this shared folder.

I'm going to use Mediatomb to scan for changes on a particular folder within the /shared and which then I'll be able to stream that over DLNA to my PS3.

I'm also going to have a folder full of my iTunes music that I'll then map to my iTunes relevant folder on my Mac so that iTunes streams the music from the /shared on my linux box.

The reason I'm using Fedora 17 is that my mate works for Red Hat as a Solutions Architect here in the UK (covering EMEA) so the majority of questions he can answer pretty quickly.

Thanks for all your suggestions though.
Alexjfinch is offline   Reply With Quote
Old 06-08-2012, 09:36 AM   #10
Member (11 bit)
 
Join Date: Apr 2003
Posts: 1,562
I kind of thought it might be the firewall settings. There are a lot of ports that have to be open for NFS to work properly. With fedora's new firewall application, I thought the default configuration would have some of those ports closed. I'm glad to see they finally got around to creating a gui for firewall configuration. Up until a month before the release that was being debated from what I can see with a little googling.

By the way, your friend should be thoroughly familiar with RHEL clones like Scientific Linux or Centos. They are just RHEL with the Red Hat trademarks removed. A lot of smaller companies that can't afford an Red Hat service contract use SL or Centos.
kilgoretrout is offline   Reply With Quote
Old 06-08-2012, 09:44 AM   #11
Moderator
Staff
Premium Member
 
jdeb's Avatar
 
Join Date: Nov 2008
Location: Detroit, MI
Posts: 5,223
Quote:
Originally Posted by kilgoretrout View Post
I kind of thought it might be the firewall settings. There are a lot of ports that have to be open for NFS to work properly. With fedora's new firewall application, I thought the default configuration would have some of those ports closed. I'm glad to see they finally got around to creating a gui for firewall configuration. Up until a month before the release that was being debated from what I can see with a little googling.

By the way, your friend should be thoroughly familiar with RHEL clones like Scientific Linux or Centos. They are just RHEL with the Red Hat trademarks removed. A lot of smaller companies that can't afford an Red Hat service contract use SL or Centos.
You can add Oracle to that list

http://distrowatch.com/table.php?distribution=oracle
jdeb is offline   Reply With Quote
Old 06-10-2012, 08:34 AM   #12
Tin
Stereo junkie
 
Tin's Avatar
 
Join Date: Jan 2004
Location: Just North of Fort Pontchartrain du Détroit
Posts: 3,440
Send a message via AIM to Tin
Quote:
Originally Posted by Alexjfinch View Post
I'm also going to have a folder full of my iTunes music that I'll then map to my iTunes relevant folder on my Mac so that iTunes streams the music from the /shared on my linux box.
Theres a very good piece of software called Firefly Media Server, thats nothing more than a DAAP (iTunes) server. In the repositories, it should be under "mt-daapd", works great with iTunes and other iStuff. Its very versatile, and supports multiple libraries.
Tin is offline   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is On
Trackbacks are Off
Pingbacks are Off
Refbacks are On



All times are GMT -5. The time now is 06:09 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.1