Hi,
I've been using systemd for a while but this is the first time I've encountered mask errors. It is causing me grief with starting the NFS server. See below.
The iptables service is stopped and SELinux is disabled.
My /etc/exports is empty.
The systemd service files:
There is nothing whatsoever in /var/log/messages or dmesg.
Any ideas?
I've been using systemd for a while but this is the first time I've encountered mask errors. It is causing me grief with starting the NFS server. See below.
Code:
[root@localhost ~]# systemctl start nfs-server.service
Failed to issue method call: Unit rpcbind.service is masked.
[root@localhost ~]# systemctl unmask rpcbind.service
[root@localhost ~]# systemctl start nfs-server.service
Failed to issue method call: Unit rpcbind.service is masked.
[root@localhost ~]#
Code:
[root@localhost ~]# rpm -qv nfs-utils
nfs-utils-1.2.6-3.fc17.i686
My /etc/exports is empty.
Code:
[root@localhost ~]# cat /etc/sysconfig/nfs|grep -v '^#'
RPCRQUOTADOPTS=""
RPCNFSDARGS=""
RPCNFSDCOUNT=8
RPCMOUNTDOPTS=""
STATDARG=""
RPCIDMAPDARGS=""
RPCGSSDARGS=""
RPCSVCGSSDARGS=""
BLKMAPDARGS=""
Code:
[root@localhost ~]# find /etc/systemd/ /usr/lib/systemd/ -name nfs-server.service -exec ls -l {} \;
lrwxrwxrwx 1 root root 42 Oct 20 11:52 /etc/systemd/system/multi-user.target.wants/nfs-server.service -> /usr/lib/systemd/system/nfs-server.service
-rw-r--r-- 1 root root 635 Jun 22 18:36 /usr/lib/systemd/system/nfs-server.service
[root@localhost ~]#
[root@localhost ~]# cat /usr/lib/systemd/system/nfs-server.service
[Unit]
Description=NFS Server
Requires=proc-fs-nfsd.mount var-lib-nfs-rpc_pipefs.mount rpcbind.service
Requires=nfs-idmap.service nfs-mountd.service nfs-rquotad.service
After=network.target named.service
[Service]
Type=oneshot
RemainAfterExit=yes
StandardError=syslog+console
EnvironmentFile=-/etc/sysconfig/nfs
ExecStartPre=/usr/lib/nfs-utils/scripts/nfs-server.preconfig
ExecStartPre=/usr/sbin/exportfs -r
ExecStart=/usr/sbin/rpc.nfsd $RPCNFSDARGS ${RPCNFSDCOUNT}
ExecStartPost=-/usr/lib/nfs-utils/scripts/nfs-server.postconfig
ExecStop=/usr/sbin/rpc.nfsd 0
ExecStopPost=/usr/sbin/exportfs -f
[Install]
WantedBy=multi-user.target
Any ideas?