OpenSuSE 13 NFS Client问题

Posted by Harid六月 - 8 - 2014 Leave comments

近期在VMWARE上装了2个OpenSuSE 13.1的虚拟机,但是在开启NFS服务的时候总是无法成功开启。

首先尝试执行:

1
# /etc/init.d/nfs start

执行结果为:

RACA:~ # /etc/init.d/nfs start
redirecting to systemctl start nfs
Job for nfs.service failed. See ‘systemctl status nfs.service’ and ‘journalctl -xn’ for details.

根据提示,执行:

1
systemctl status nfs.service

得到失败的细节如下:

RACA:~ # systemctl status nfs.service
nfs.service – LSB: NFS client services
Loaded: loaded (/etc/init.d/nfs)
Drop-In: /run/systemd/generator/nfs.service.d
└─50-insserv.conf-$remote_fs.conf
Active: failed (Result: exit-code) since Sun 2014-06-08 15:17:21 CST; 22s ago
Process: 4706 ExecStart=/etc/init.d/nfs start (code=exited, status=3)

Jun 08 15:17:21 RACA systemd[1]: Starting LSB: NFS client services…
Jun 08 15:17:21 RACA nfs[4706]: Starting NFS client services:portmap/rpcbin…ng
Jun 08 15:17:21 RACA nfs[4706]: ..missing
Jun 08 15:17:21 RACA systemd[1]: nfs.service: control process exited, code=…=3
Jun 08 15:17:21 RACA systemd[1]: Failed to start LSB: NFS client services.
Jun 08 15:17:21 RACA systemd[1]: Unit nfs.service entered failed state.
Hint: Some lines were ellipsized, use -l to show in full.

执行:

1
ps aux | grep rpc

得到结果如下:

RACA:~ # ps aux | grep rpc
root 4723 0.0 0.0 9264 928 pts/0 S+ 15:20 0:00 grep –color=auto rpc

尝试启动rpcbind,执行:

1
rpcbind

执行结果:

RACA:~ # rpcbind
RACA:~ # ps aux | grep rpc
root 4755 0.0 0.0 34996 536 ? Ss 15:22 0:00 rpcbind
root 4759 0.0 0.0 9264 928 pts/0 S+ 15:22 0:00 grep –color=auto rpc

然后就可以启动NFS Client服务了,执行结果如下:

RACA:~ # /etc/init.d/nfs start
redirecting to systemctl start nfs
RACA:~ # /etc/init.d/nfs status
Checking for mounted nfs shares (from /etc/fstab): running
nfs.service – LSB: NFS client services
Loaded: loaded (/etc/init.d/nfs)
Drop-In: /run/systemd/generator/nfs.service.d
└─50-insserv.conf-$remote_fs.conf
Active: active (running) since Sun 2014-06-08 15:22:19 CST; 6s ago
Process: 4765 ExecStart=/etc/init.d/nfs start (code=exited, status=0/SUCCESS)
CGroup: /system.slice/nfs.service
├─4788 /usr/sbin/rpc.idmapd
└─4792 /usr/sbin/rpc.gssd -D

Jun 08 15:22:19 RACA sm-notify[4779]: Version 1.2.8 starting
Jun 08 15:22:19 RACA nfs[4765]: Starting NFS client services: sm-notify gssd idmapd..done
Jun 08 15:22:19 RACA systemd[1]: Started LSB: NFS client services.

   声明:本文采用 BY-NC-SA 协议进行授权 | 星期九
   原创文章转载请注明:转自《OpenSuSE 13 NFS Client问题


分享按钮