LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 07-08-2015, 05:28 AM   #1
ravikavala
LQ Newbie
 
Registered: Sep 2014
Posts: 9

Rep: Reputation: Disabled
nfs lock service not enabling


Hi friends
iam facing the following problem with nfs configuration
installed
#yum -y nfs-utils
and did the following and getting the error
[root@localhost ~]# systemctl status rpcbind.service
● rpcbind.service - RPC bind service
Loaded: loaded (/usr/lib/systemd/system/rpcbind.service; indirect; vendor preset: disabled)
Active: active (running) since Tue 2015-07-07 17:47:43 IST; 21h ago
Main PID: 671 (rpcbind)
CGroup: /system.slice/rpcbind.service
└─671 /sbin/rpcbind -w

Jul 07 17:47:43 localhost.localdomain systemd[1]: Starting RPC b...
Jul 07 17:47:43 localhost.localdomain systemd[1]: Started RPC bi...
Jul 08 14:18:17 server systemd[1]: Started RPC bind service.
Hint: Some lines were ellipsized, use -l to show in full.
[root@localhost ~]# systemctl status nfs-server.service
● nfs-server.service - NFS server and services
Loaded: loaded (/usr/lib/systemd/system/nfs-server.service; enabled; vendor preset: disabled)
Active: active (exited) since Wed 2015-07-08 15:07:10 IST; 31min ago
Process: 3266 ExecStopPost=/usr/sbin/exportfs -f (code=exited, status=0/SUCCESS)
Process: 3262 ExecStopPost=/usr/sbin/exportfs -au (code=exited, status=0/SUCCESS)
Process: 3247 ExecStop=/usr/sbin/rpc.nfsd 0 (code=exited, status=0/SUCCESS)
Process: 3294 ExecStart=/usr/sbin/rpc.nfsd $RPCNFSDARGS (code=exited, status=0/SUCCESS)
Process: 3291 ExecStartPre=/usr/sbin/exportfs -r (code=exited, status=0/SUCCESS)
Main PID: 3294 (code=exited, status=0/SUCCESS)
CGroup: /system.slice/nfs-server.service

Jul 08 15:07:10 server systemd[1]: Starting NFS server and serv....
Jul 08 15:07:10 server systemd[1]: Started NFS server and services.
Hint: Some lines were ellipsized, use -l to show in full.
[root@localhost ~]# systemctl systemctl start rpcbind.service
Unknown operation 'systemctl'.
[root@localhost ~]# systemctl start rpcbind.service
[root@localhost ~]# systemctl start nfs-server.service
[root@localhost ~]# systemctl start nfs-lock.service
[root@localhost ~]# systemctl start nfs-idmap.service
[root@localhost ~]# systemctl enable nfs-idmap.service
Failed to execute operation: No such file or directory
[root@localhost ~]# systemctl enable nfs-lock.service
Failed to execute operation: No such file or directory
[root@localhost ~]# systemctl enable nfs-server.service
[root@localhost ~]# systemctl enable rpcbind.service
[root@localhost ~]# systemctl start rpc.statd.service
Failed to start rpc.statd.service: Unit rpc.statd.service failed to load: No such file or directory.

can any one tell me what the exat problem is.your suggestions are very helpful for me...
 
Old 07-08-2015, 11:54 PM   #2
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
For better readability, use "[code]" tags around your computer text.

Quote:
Originally Posted by ravikavala View Post
[root@localhost ~]# systemctl enable nfs-idmap.service
Failed to execute operation: No such file or directory
[root@localhost ~]# systemctl enable nfs-lock.service
Failed to execute operation: No such file or directory
[root@localhost ~]# systemctl enable nfs-server.service
[root@localhost ~]# systemctl enable rpcbind.service
[root@localhost ~]# systemctl start rpc.statd.service
Failed to start rpc.statd.service: Unit rpc.statd.service failed to load: No such file or directory.

can any one tell me what the exat problem is.your suggestions are very helpful for me...
My first reaction, without looking deeper, is that these services simply don't exist. Perhaps that's it, there are no such services at all, or perhaps you need to install more packages.

Quickly checked on my system (Centos 7.1):

Code:
$ cd /usr/lib/systemd/system
$ ls -d nfs* rpc*
nfs-blkmap.service  nfs-mountd.service         rpcbind.service
nfs-blkmap.target   nfs-secure-server.service  rpcbind.socket
nfs-client.target   nfs-secure.service         rpcbind.target
nfs-config.service  nfs-server.service         rpc-gssd.service
nfs-idmapd.service  nfs.service                rpc-statd-notify.service
nfs-idmap.service   nfs.target.wants           rpc-statd.service
nfs-lock.service    nfs-utils.service          rpc-svcgssd.service
So in principle the services do exist. Check that directory on your server. If they are missing, use
Code:
yum whatprovides /usr/lib/systemd/system/nfs-idmap.service
etc to find how to install them. If they are there, you have a different problem. Perhaps systemctl can be convinced to be a bit more verbose?

Last edited by berndbausch; 07-08-2015 at 11:56 PM.
 
Old 07-09-2015, 12:47 AM   #3
ravikavala
LQ Newbie
 
Registered: Sep 2014
Posts: 9

Original Poster
Rep: Reputation: Disabled
Thanks for the reply and i have already checked.those files are present.but when iam trying to enable its giving no such file or directory.apart from that rpcbind, nfs-server are enabling without any error
[root@localhost system]# ls -d nfs* rpc*
nfs-blkmap.service nfs-secure.service rpcbind.target
nfs-client.target nfs-server.service rpc-gssd.service
nfs-config.service nfs.service rpc-rquotad.service
nfs-idmapd.service nfs.target.wants rpc-statd-notify.service
nfs-idmap.service nfs-utils.service rpc-statd.service
nfs-lock.service rpcbind.service rpc-svcgssd.service
nfs-mountd.service rpcbind.socket
[root@localhost system]# systemctl start nfs-lock.service
[root@localhost system]# systemctl enable nfs-lock.service
Failed to execute operation: No such file or directory
[root@localhost system]# yum whatprovides /usr/lib/systemd/system/nfs-idmap.service
Yum command has been deprecated, redirecting to '/usr/bin/dnf whatprovides /usr/lib/systemd/system/nfs-idmap.service'.
See 'man dnf' and 'man yum2dnf' for more information.
To transfer transaction metadata from yum to DNF, run:
'dnf install python-dnf-plugins-extras-migrate && dnf-2 migrate'

Last metadata expiration check performed 2:55:21 ago on Thu Jul 9 08:12:47 2015.
nfs-utils-1:1.3.2-4.fc22.i686 : NFS utilities and supporting
...: clients and daemons for the kernel NFS server
Repo : @System

nfs-utils-1:1.3.2-4.fc22.i686 : NFS utilities and supporting
...: clients and daemons for the kernel NFS server
Repo : fedora

nfs-utils-1:1.3.2-9.fc22.i686 : NFS utilities and supporting
...: clients and daemons for the kernel NFS server
Repo : updates

[root@localhost system]# systemctl enable nfs-idmapd.serviceThe unit files have no [Install] section. They are not meant to be enabled
using systemctl.
Possible reasons for having this kind of units are:
1) A unit may be statically enabled by being symlinked from another unit's
.wants/ or .requires/ directory.
2) A unit's purpose may be to act as a helper for some other unit which has
a requirement dependency on it.
3) A unit may be started when needed via activation (socket, path, timer,
D-Bus, udev, scripted systemctl call, ...).
[root@localhost system]# systemctl enable nfs-lock.serviceFailed to execute operation: No such file or directory
[root@localhost system]# systemctl enable nfs-idmap.service
Failed to execute operation: No such file or directory

help me to solve this problem any one...Thankyou
 
Old 07-09-2015, 07:11 PM   #4
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
The fact that yum is deprecated indicates that you are using a recent Fedora version. I am not familiar with this distro, thus I can only give you general troubleshooting advice.

Check what's in those unit files, perhaps they refer to an executable that's missing. Also check for options to make systemctl more verbose. Finally you may be more successful in a distro-specific forum.

And please - use "[code]" tags to make your text more readable.
 
  


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
rpcidmapd nfs service is supported on nfs v3 smilemukul Linux - Newbie 1 03-11-2014 11:18 PM
[SOLVED] Can't read lock file tmp .x0-lock xinit: stale nfs file handle everal Slackware 2 10-31-2011 07:11 AM
enabling caps lock mohit_parihar Linux - General 1 12-23-2009 03:04 PM
Allowing NFS in IPTABLES: Fix port for NFS Lock Manager Swakoo Linux - General 10 08-25-2006 05:24 AM
Enabling Num. Lock on boot................? Theoutdoorsman Linux - Software 15 10-14-2003 02:01 PM

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

All times are GMT -5. The time now is 02:02 PM.

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