NFS

/etc/exports

/home/kenken                   192.168.1.*(ro,sync)

サービス

chkconfig avahi-daemon on
chkconfig nfs on

エラーログ

/etc/init.d/nfs start
NFS サービスを起動中:                                      [  OK  ]
NFS デーモンを起動中: rpc.nfsd: writing fd to kernel failed: errno 113 (No route to host)
rpc.nfsd: writing fd to kernel failed: errno 113 (No route to host)
rpc.nfsd: unable to set any sockets for nfsd
May 21 10:17:41 localhost kernel: [ 1038.368182] svc: failed to register nfsaclv2 RPC service (errno 113).
May 21 10:17:41 localhost kernel: [ 1038.368198] nfsd: last server has exited, flushing export cache
[失敗]

/etc/sysconfig/nfs

-#MOUNTD_PORT=892
+MOUNTD_PORT=892

ファイヤーウォール

sunrpc 111, MOUNT_PORT 892, nfs 2049

iptables

-A INPUT -m state --state NEW -m udp -p udp --dport 111 -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 111 -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 892 -j ACCEPT
-A INPUT -m state --state NEW -m udp -p udp --dport 892 -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 2049 -j ACCEPT

ip6tables

-A INPUT -m state --state NEW -m udp -p udp --dport 111 -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 111 -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 892 -j ACCEPT
-A INPUT -m state --state NEW -m udp -p udp --dport 892 -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 2049 -j ACCEPT

iptabesの再起動

/etc/init.d/iptalbes restart
/etc/init.d/ip6tables restart

すぐにサービスを起動

/etc/init.d/avahi-daemon restart
/etc/init.d/nfs restart

ファイルのアクセス権限

chmod a+rx /home/kenken

マウント

mkdir /mnt/nfs
mount.nfs 192.168.1.12:/home /mnt/nfs/