LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-07-2012, 02:10 AM   #1
alexjfinch
LQ Newbie
 
Registered: Jun 2012
Posts: 4

Rep: Reputation: Disabled
nfs-server.service active but exited?


Hi all,

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

P.S. I'm running Fedora 17.
 
Old 06-07-2012, 04:53 AM   #2
alexjfinch
LQ Newbie
 
Registered: Jun 2012
Posts: 4

Original Poster
Rep: Reputation: Disabled
Few bits of additional information;

my /etc/exports file looks like this;

Code:
/home/alex/shared 192.168.0.0/255.255.255.0(rw,insecure,no_root_squash)
and SELinux is set to permissive.
 
Old 06-07-2012, 09:05 AM   #3
bfields
LQ Newbie
 
Registered: Feb 2012
Posts: 2

Rep: Reputation: Disabled
I'm a bit confused--have you tried just "sudo service start nfsd.service" ?

(In case you don't know--"enable" is the rough equivalent of "chkconfig on"--it ensures the thing will be started on next boot but doesn't do anything right now.)
 
Old 06-07-2012, 12:19 PM   #4
alexjfinch
LQ Newbie
 
Registered: Jun 2012
Posts: 4

Original Poster
Rep: Reputation: Disabled
I've just tried that and the reponse I've had is;

Code:
sudo service start nfsd.service
Redirecting to /bin/systemctl  nfsd.service start.service
Unknown operation nfsd.service
Cheers
Al
 
Old 06-07-2012, 12:46 PM   #5
bfields
LQ Newbie
 
Registered: Feb 2012
Posts: 2

Rep: Reputation: Disabled
Sorry, should be "systemctl start nfs-server.service".
 
Old 06-07-2012, 09:49 PM   #6
fogpipe
Member
 
Registered: Mar 2011
Distribution: Slackware 64 -current,
Posts: 550

Rep: Reputation: 196Reputation: 196
Quote:
Originally Posted by alexjfinch View Post
Few bits of additional information;

my /etc/exports file looks like this;

Code:
/home/alex/shared 192.168.0.0/255.255.255.0(rw,insecure,no_root_squash)
and SELinux is set to permissive.
i think you have to have a specific ip address in there dont you? Instead of just .0.0
After you edit /etc/exports do an
Code:
exportfs -ra
so that nfs will look at it again.
 
Old 06-08-2012, 07:18 AM   #7
alexjfinch
LQ Newbie
 
Registered: Jun 2012
Posts: 4

Original Poster
Rep: Reputation: Disabled
Thanks for all your suggestions.

In the end I reinstalled Fedora 17 compeltely from scratch using the DVD resource rather than the live desktop edition and selected all the packages I wanted.

I started from scratch with the NFS share.

The nfs-server.service is still showing as active(exited) but for some reason when mounting the share on my Mac its working perfectly.

I just to work out what ports are required for the firewall so that I can re-enable it.

Thanks
Al
 
  


Reply



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
[thread 0xb7fe7b70 (lwp 3738) exited] program exited with code 01 aicaicai Linux - Newbie 1 12-04-2011 11:08 AM
[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
active directory like service in linux annacoder Linux - Newbie 5 09-12-2005 01:56 PM
nfs server reported service unavailable: Address already in use Gargomel7 Linux - Networking 0 09-16-2003 11:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:35 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