NFS4 文件系统共享配置
Original works pls search "NFS4Howto" or http://wiki.ubuntu.org.cn/index.php?title=UbuntuHelp:NFSv4Howto&variant=zh-cn
NFS4 Server:
1. # apt-get install nfs-kernel-server
2. Add below statements to /etc/exports.
/export 192.168.1.0/24(rw,fsid=0,insecure,no_subtree_check,async) // folder export share to 192.168.10 host/export/users 192.168.1.0/24(rw,nohide,insecure,no_subtree_check,async)3. restart nfs server.
# /etc/init.d/nfs-kernel-server restart
NFS4 Client:
1. # apt-get install nfs-common
# mount -t nfs4 -o proto=tcp,port=2049 nfs-server:/export /mnt
or, mount once reboot, add below to /etc/fstab:
nfs-server:/ /mnt nfs4 _netdev,auto 0 0 // mount server:/ share folder to /mnt . this case is mount export folder to mntnote: NOT nfs-server:/export, BUT nfs-server:/ don't need to specify export. It also a different between nfs4 and nfs. nfs-server is server ip address or donaim.
mount.nfs4: No such device
# modprobe nfs