How to linux NFS
时间:2006-09-06 来源:pianoch
1. export filesystem
Edit /etc/exports, like below
/usr/local 172.24.16.100(ro) 172.24.16.101(rw)
option: ro, rw, sync,async
You can give a network like below
/usr/local 172.24.16.0/255.255.255.0(ro)
Sync vs. Async
Sync: guarantee write data into local disk
Async: wirte into cache first, then choice some time to wirte into disk
#exportfs -a //share all of file on /etc/exports
#exportfs -v //list all of share
2 mount
Edit /etc/fstab
device mountpoint fstype options dump fsckorder
Soft vs. Hard Mounting:
soft: process the error by the clinet process
hard: hang the process on client with error
we recommend with hard,intr option
#mount -a -t nfs //mount all of files on /etc/fstab
相关阅读 更多 +