首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 软件管理 > 软件架构设计 >

NFS4 文件系总共享配置

2012-09-16 
NFS4 文件系统共享配置Original works pls search NFS4Howto orhttp://wiki.ubuntu.org.cn/index.php?ti

NFS4 文件系统共享配置

Original works pls search "NFS4Howto" or  http://wiki.ubuntu.org.cn/index.php?title=UbuntuHelp:NFSv4Howto&variant=zh-cn

Summary Configuration:

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

2. one time mount:
# 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


热点排行