Sponsored Content
Operating Systems Linux Red Hat No reponse to 'service NFS start' command Post 302890548 by Chopstyx on Thursday 27th of February 2014 01:50:45 PM
Old 02-27-2014
[Solved] No reponse to 'service NFS start' command

Hello,

I have a newly kickstarted RHEL 6.4 server that I'm trying to set-up as a kickstart server. I have done this before on other machines, but I am encountering some strange behaviour in this one.

Code:
[root@kickstart ~]# service nfs status
rpc.svcgssd is stopped
rpc.mountd is stopped
nfsd is stopped
rpc.rquotad is stopped
[root@kickstart ~]# service nfs start
[root@kickstart ~]# service nfs restart
Shutting down NFS daemon:                                  [FAILED]
Shutting down NFS mountd:                                  [FAILED]
Shutting down NFS quotas:                                  [FAILED]
Shutting down NFS services:                                [  OK  ]
[root@kickstart ~]# service nfs status
rpc.svcgssd is stopped
rpc.mountd is stopped
nfsd is stopped
rpc.rquotad is stopped
[root@kickstart ~]# service nfs start
[root@kickstart ~]#

Each time I enter service * start, I get no response, just a newline. This happens with a number of services, not just nfs. I am wondering what is the best way to actually determine the root cause here?

I can see no logs in /var/log indicating a reason for the service not starting. All appropriate packages have been installed by yum. Where can I look to see log output from a failed 'service start' command like the above?

---------- Post updated at 06:50 PM ---------- Previous update was at 04:25 PM ----------

Hi, managed to solve this one so thought I'd post the answer here.

I eventually had to step through the /etc/init.d/nfs script to see where the script was failing, and it turns out that when I commented out the line:
Code:
        # Check that networking is up.
#        [ "${NETWORKING}" != "yes" ] && exit 6

NFS started succesfully.

My /etc/sysconfig/network file had the following:
Code:
HOSTNAME=kickstart
GATEWAY=10.204.137.1
NETWORKING_IPV6=no
VLAN=yes
NOZEROCONF=yes

But not the vital NETWORKING=yes

Yesterdy I was setting up bonding and VLANs so perhaps I deleted the NETWORKING line from that by mistake, but adding that line solved all issues with services not starting.

I still don't see logging from the 'service ### start' commands, is that actually possible, and would there have been any way to tell the problem without modifying the nfs script?
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Can't start nfs server!

ok i am pretty new i am thinking this maybe a dns situatioan i dunno.... i am trying to start nfs server i get the followin error: mountd svc_tli create could not bind to requested address: address mismatch svc_create: svc_tli_create failed /usr/lib/nfs/nfsd : tli_bind to wrong address... (14 Replies)
Discussion started by: rmuhammad
14 Replies

2. Shell Programming and Scripting

Start a service as user

Hi I need a service to be start as user after a reboot. My script in /etc/init.d contain the following: start() { su - $USER cd ${INSTALL_PATH}/bin ./MyApp -X exit return 0 } This function stops after su - $USER, I get user shell, and only if I manualy... (5 Replies)
Discussion started by: potro
5 Replies

3. Solaris

NFS service : offline after enabling it .

Hi all, i Followed these steps & still not able to get nfs service online ???:( bash-3.2# svcs -a | grep nfs disabled 17:48:02 svc:/network/nfs/cbd:default disabled 17:48:02 svc:/network/nfs/client:default disabled 20:56:06 svc:/network/nfs/status:default offline ... (4 Replies)
Discussion started by: saurabh84g
4 Replies

4. AIX

Q: how to start a service when system start

As topic, assume we have a service called "blahservice" and we can start it by: startsrc -s blahservice what is the best practice to run such command when system start? - directly use mkitab to add it into /etc/inittab or - drop startup scripts in /etc/rc.d/rcX.d I know they... (4 Replies)
Discussion started by: acerlinux
4 Replies

5. Red Hat

bind nfs service to nic

Hello everyone, I am running a RHEL4 server. We have 4 nics, which are paired to create bond0 and bond1. BOND0 is on a vlan which can see our storage system. BOND1 cannot see the storage system. I would like to lock down the system, so that NFS share can only mounted via BOND0. Has anyone done... (2 Replies)
Discussion started by: vada010
2 Replies

6. Solaris

All dependicies of nfs service is online but nfs is offline

Hi all in my server all nfs dependices are online but nfs client is offline root@BIWAPP1 # svcs -a|grep nfs disabled Sep_05 svc:/network/nfs/server:default online Sep_05 svc:/network/nfs/rquota:default online Sep_05 svc:/network/nfs/mapid:default online ... (9 Replies)
Discussion started by: spandhan
9 Replies

7. Solaris

NFS client service restart

Can any one please tell me the command for NFS client service restart.This is to resolve, NFS mount slowness issue.Mount is very slow for both read and write operations.The below commands are not helping out in this situation. ---------- Post updated at 08:59 AM ---------- Previous update was... (1 Reply)
Discussion started by: ksvaisakh
1 Replies

8. UNIX for Dummies Questions & Answers

NFS as unix service?

Hi All I want to understand the difference between 'NFS as a unix service' vs 'NFS attached to NAS' for the purpose of identifying shared storage solution for my test RAC setup. Oracle support says that 'NFS as unix service (what I understand is a local PC/server disk mounted as NFS) is not... (2 Replies)
Discussion started by: jpsingh
2 Replies

9. Red Hat

NFS does not start during boot process

Hello, I am facing some issues during boot process of rhel 6.2 It takes too long time (~10 min) for the node to come up... The boot process stuck while it trying to start NFS and does not continue until timeout. In the boot.log file i see Starting NFS quotas: Cannot register service:... (2 Replies)
Discussion started by: @dagio
2 Replies

10. Homework & Coursework Questions

NFS service not started in Redhat Cluster

Hi All, Need your help to resolve below error in cluter. Sep 9 05:37:30 node2 rgmanager: Starting disabled service service:Prod_Service Sep 9 05:37:30 node2 rgmanager: HA LVM: Improper setup detected Sep 9 05:37:30 node2 rgmanager: * initrd image needs to be newer than lvm.conf... (3 Replies)
Discussion started by: nitinredekar
3 Replies
rpc.mountd(8)						      System Manager's Manual						     rpc.mountd(8)

NAME
rpc.mountd - NFS mount daemon SYNOPSIS
/usr/sbin/rpc.mountd [options] DESCRIPTION
The rpc.mountd program implements the NFS mount protocol. When receiving a MOUNT request from an NFS client, it checks the request against the list of currently exported file systems. If the client is permitted to mount the file system, rpc.mountd obtains a file handle for requested directory and returns it to the client. Exporting NFS File Systems Making file systems available to NFS clients is called exporting. Usually, a file system and the hosts it should be made available to are listed in the /etc/exports file, and invoking exportfs -a whenever the system is booted. The exportfs(8) command makes export information available to both the kernel NFS server module and the rpc.mountd daemon. Alternatively, you can export individual directories temporarily using exportfs's host:/directory syntax. The rmtab File For every mount request received from an NFS client, rpc.mountd adds an entry to the /var/lib/nfs/rmtab file. When receiving an unmount request, that entry is removed. user level part of the NFS service. However, this file is mostly ornamental. One, the client can continue to use the file handle even after calling rpc.mountd 's UMOUNT proce- dure. And two, if a client reboots without notifying rpc.mountd , a stale entry will remain in rmtab. OPTIONS
-d kind or --debug kind Turn on debugging for kind. -F or --foreground Run in foreground (do not daemonize) -f or --exports-file This option specifies the exports file, listing the clients that this server is prepared to serve and parameters to apply to each such mount (see exports(5)). By default, export information is read from /etc/exports. -h or --help Display usage message. -o num or --descriptors num Set the limit of the number of open file descriptors to num. The default is 256. -N or --no-nfs-version This option can be used to request that rpc.mountd do not offer certain versions of NFS. The current version of rpc.mountd can sup- port both NFS version 2 and the newer version 3. If the NFS kernel module was compiled without support for NFSv3, rpc.mountd must be invoked with the option --no-nfs-version 3 . -n or --no-tcp Don't advertise TCP for mount. -P Ignored (compatibility with unfsd??). -p or --port num Force rpc.mountd to bind to the specified port num, instead of using the random port number assigned by the portmapper. -V or --nfs-version This option can be used to request that rpc.mountd offer certain versions of NFS. The current version of rpc.mountd can support both NFS version 2 and the newer version 3. -v or --version Print the version of rpc.mountd and exit. TCP_WRAPPERS SUPPORT This rpc.mountd version is protected by the tcp_wrapper library. You have to give the clients access to rpc.mountd if they should be allowed to use it. To allow connects from clients of the .bar.com domain you could use the following line in /etc/hosts.allow: mountd: .bar.com You have to use the daemon name mountd for the daemon name (even if the binary has a different name). For further information please have a look at the tcpd(8) and hosts_access(5) manual pages. SEE ALSO
rpc.nfsd(8), exportfs(8), exports(5), rpc.rquotad(8). FILES
/etc/exports, /var/lib/nfs/xtab. AUTHOR
Olaf Kirch, H. J. Lu, G. Allan Morris III, and a host of others. 25 Aug 2000 rpc.mountd(8)
All times are GMT -4. The time now is 08:29 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy