LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 05-26-2014, 10:38 PM   #1
amit.kanade1983
Member
 
Registered: May 2012
Location: India
Distribution: CentOS,RedHat
Posts: 41

Rep: Reputation: 1
NFS service doesn't start RHEL 6.2


Hi all,
We have an NFS server in our env. I was trying to start the service but the service wouldn't start. Later, the one my colleagues noticed it was due to networking=yes in /etc/sysconfig/network. Why would this be the cause? Isn't it a switch for activating network. How's that possible??
 
Old 05-27-2014, 10:18 AM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
networking=yes does NOT prevent NFS from starting so your co-worker appears to be off.

You need to provide more detail such as:
1) Are you talking about NFS server or NFS client or both?
2) What command exactly did you run to "start NFS"?
3) What errors did you get when you ran the command?

Also are you saying removing the line "networking=yes" fixed the problem or is this just an observation he made that it has that?
 
Old 05-28-2014, 01:58 AM   #3
amit.kanade1983
Member
 
Registered: May 2012
Location: India
Distribution: CentOS,RedHat
Posts: 41

Original Poster
Rep: Reputation: 1
My colleague just mailed saying "NETWORKING=yes entry was missing from the server" and adding the entry fixed it.

Details:
1. Talking about NFS server only.
2. i used "service nfs start" to start the service.
3. I got no errors when I ran the command, it just gave me no error on stdout; but the exit status 1

I need to try the same at home and check for myself. It doesn't make any sense to me as well.
 
1 members found this post helpful.
Old 05-28-2014, 05:52 AM   #4
voleg
Member
 
Registered: Oct 2013
Distribution: RedHat CentOS Fedora SuSE
Posts: 354

Rep: Reputation: 51
This string checked by lot of init scripts.
No reason to start NFS if server not networked.
 
Old 05-28-2014, 07:45 AM   #5
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
[QUOTE=amit.kanade1983;5177929]My colleague just mailed saying "NETWORKING=yes entry was missing from the server" and adding the entry fixed it.

That makes more sense. Clearly if there is no "NETWORKING" then "NETWORK file system" (NFS) shouldn't start.

As the prior poster notes this is checked in the init script for nfs.

On one of my RHEL6 boxes on lines 27 &2 8 of the nfs init script I see:
# Source networking configuration.
[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

Then later it shows clearly it is checking for the value:
# Check that networking is up.
[ "${NETWORKING}" != "yes" ] && exit 6
 
  


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
not able to start cman service on rhel vikky Linux - Newbie 2 06-19-2013 08:04 AM
[SOLVED] start NFS service on RHEV Hypervisor shivakumargone Linux - Virtualization and Cloud 8 03-28-2011 06:38 AM
[rhev-h] nfs service start fail johnson.chiu Linux - Server 5 12-30-2010 11:27 PM
How do I start the web service on RHEL 5? JeffS-at-Areva Linux - Newbie 1 05-20-2008 12:43 PM
service nfs start Soulful93 Linux - Networking 1 06-13-2004 02:25 AM

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

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