redhat-6.5 How to configure Server for NFS
Service side:
1. Install NFS Package
Yum Install nfs-utils Portmap nfs4-acl-tools
2. Create a shared directory
Mkdir/369cloud-bgw-data/instances
3. Specify shared directories and permissions in the/etc/exports file
[Email protected] ~]# Cat/etc/exports
/369cloud-bgw-data/instances 192.168.172.0/24 (rw,sync,all_squash,anonuid=500,anongid=500)
4. Modify Shared directory Permissions
Chown nova:nova/369cloud-bgw-data/instances/
chmod 755/369cloud-bgw-data/instances/
5. Start the NFS service
/etc/init.d/rpcbind start
/ETC/INIT.D/RPCIDMAPD start
/etc/init.d/nfs start
Chkconfig Rpcbind on
Chkconfig RPCIDMAPD on
Chkconfig NFS On
Client:
1. Hanging in NFS Directory
Mount-o nolock-t NFS 192.168.172.1:/369cloud-bgw-data/instances/var/lib/nova/instances/
2, put on the command to write to boot from the boot
echo "Mount-o nolock-t NFS 192.168.172.1:/369cloud-bgw-data/instances/var/lib/nova/instances/" >>/etc/ Rc.local
This article is from the "zhanguo1110" blog, make sure to keep this source http://zhanguo1110.blog.51cto.com/5750817/1683850
Linux redhat-6.5 System How to configure Server for NFS