# vi /etc/exports
/home 192.168.1.0/255.255.255.0(rw)
を追記
# service nfs start
Job for nfs.service failed. See 'systemctl status nfs.service' and 'journalctl -xn' for details.
# 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 Wed 2014-08-13 15:51:50 JST; 56s ago
Process: 15114 ExecStart=/etc/init.d/nfs start (code=exited, status=3)
Aug 13 15:51:50 linux-3g1h systemd[1]: Starting LSB: NFS client services...
Aug 13 15:51:50 linux-3g1h nfs[15114]: Starting NFS client services:portmap/rpcbind is not running
Aug 13 15:51:50 linux-3g1h nfs[15114]: ..missing
Aug 13 15:51:50 linux-3g1h systemd[1]: nfs.service: control process exited, code=exited status=3
Aug 13 15:51:50 linux-3g1h systemd[1]: Failed to start LSB: NFS client services.
Aug 13 15:51:50 linux-3g1h systemd[1]: Unit nfs.service entered failed state.
クライアントのサービスが動いていない。
linux-xxxx:/etc/systemd # service rpcbind start
linux-xxxx:/etc/systemd #
linux-xxxx:/etc/systemd # service rpcbind status
rpcbind.service - RPC Bind
Loaded: loaded (/usr/lib/systemd/system/rpcbind.service; disabled)
Active: active (running) since Wed 2014-08-13 16:29:06 JST; 6s ago
Main PID: 15527 (rpcbind)
CGroup: /system.slice/rpcbind.service
└─15527 /sbin/rpcbind -w -f
Aug 13 16:29:06 linux-3g1h systemd[1]: Starting RPC Bind...
Aug 13 16:29:06 linux-3g1h rpcbind[15527]: Cannot open '/var/lib/rpcbind/rpcbind.xdr' file for re...ory)
Aug 13 16:29:06 linux-3g1h rpcbind[15527]: Cannot open '/var/lib/rpcbind/portmap.xdr' file for re...ory)
Aug 13 16:29:06 linux-3g1h systemd[1]: Started RPC Bind.
Hint: Some lines were ellipsized, use -l to show in full.
う~ん、/var/lib/rpcbind/ でエラーが出ているけど……
linux-xxxx:/etc/systemd # service nfsserver restart
linux-xxxx:/etc/systemd # service nfsserver status
nfsserver.service - LSB: Start the kernel based NFS daemon
Loaded: loaded (/etc/init.d/nfsserver)
Active: active (running) since Wed 2014-08-13 16:30:06 JST; 7s ago
Process: 15577 ExecStart=/etc/init.d/nfsserver start (code=exited, status=0/SUCCESS)
CGroup: /system.slice/nfsserver.service
├─15201 /usr/sbin/rpc.idmapd -p /var/lib/nfs/rpc_pipefs
├─15598 /usr/sbin/rpc.mountd
└─15601 /usr/sbin/rpc.statd --no-notify
Aug 13 16:30:06 linux-3g1h systemd[1]: Starting LSB: Start the kernel based NFS daemon...
Aug 13 16:30:06 linux-3g1h nfsserver[15577]: Starting kernel based NFS server: idmapdexportfs: /et...d".
Aug 13 16:30:06 linux-3g1h nfsserver[15577]: Assuming default behaviour ('no_subtree_check').
Aug 13 16:30:06 linux-3g1h nfsserver[15577]: NOTE: this default has changed since nfs-utils versio...0.x
Aug 13 16:30:06 linux-3g1h rpc.mountd[15598]: Version 1.2.8 starting
Aug 13 16:30:06 linux-3g1h rpc.statd[15601]: Version 1.2.8 starting
Aug 13 16:30:06 linux-3g1h rpc.statd[15601]: Flags: TI-RPC
Aug 13 16:30:06 linux-3g1h rpc.statd[15601]: Initializing NSM state
Aug 13 16:30:06 linux-3g1h sm-notify[15612]: Version 1.2.8 starting
Aug 13 16:30:06 linux-3g1h systemd[1]: Started LSB: Start the kernel based NFS daemon.
Hint: Some lines were ellipsized, use -l to show in full.
動いたっぽい。
# chkconfig rpcbindん、応答なし、
rpcbind on
# mount -t nfs 192.168.1.0:/home /mnt
で、サーバ側で
# SuSEfirewall2 stop
して、再度、
# mount -t nfs 192.168.1.0:/home /mnt
今度は成功。
なので、そのままサーバ側で
# SuSEfirewall2 start
したけど、マウントはそのまま有効に使える。
そういうものらしい。