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... |
For better readability, use "[code]" tags around your computer text.
Quote:
Quickly checked on my system (Centos 7.1): Code:
$ cd /usr/lib/systemd/system Code:
yum whatprovides /usr/lib/systemd/system/nfs-idmap.service |
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 |
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. |
All times are GMT -5. The time now is 01:00 PM. |