Lazy Diary @ Hatena Blog

PowerShell / Java / miscellaneous things about software development, Tips & Gochas. CC BY-SA 4.0/Apache License 2.0

NFS でハマる (1)

nfs の設定ファイル /etc/exports では、公開対象となるホスト名とオプションの間にスペースを入れてはいけない。

# cat /etc/exports
/home 133.15.XXX.0/255.255.255.128 (rw)
# /usr/sbin/exportfs -v
exportfs: No host name given with /home (rw,sync,wdelay,hide,nocrossmnt,secure,r
oot_squash,no_all_squash,subtree_check,secure_locks,mapping=identity,anonuid=-2,
anongid=-2), suggest *(rw,sync,wdelay,hide,nocrossmnt,secure,root_squash,no_all_
squash,subtree_check,secure_locks,mapping=identity,anonuid=-2,anongid=-2) to avo
id warning
/home           133.15.XXX.0/255.255.255.128(rw,wdelay,root_squash)
/home           <world>(rw,wdelay,root_squash)
# cat /etc/exports
/home 133.15.XXX.0/255.255.255.128(rw)
# /usr/sbin/exportfs -v
/home           133.15.XXX.0/255.255.255.128(rw,wdelay,root_squash)