This is an old revision of the document!
NFS Shares
General Information
Creating NFS shares on a server and connecting to them via a client.
Checklist
- Enterprise Linux 6/7
- Two systems (server and client)
NFS Server Setup
- Install required package
yum install nfs-utils
- Start and enable the NFS Server
systemctl start nfs-server systemctl enable nfs-server
- Create your share directory structure
mkdir -p /data/share1
- Create an export line to share the directory
vim /etc/exports /data/share1 192.168.1.0/24(rw)
- /data/share1 ⇒ the directory to share
- 192.168.1.0/24(rw) ⇒ share to entire network with read/write.
- Other ways to share are to specify single hostnames(short, fqdn, single ip), IP networks (as shown), hostnames/domains with wildcards (*.mydomain.edu). See man exports for more details.
- If a firewall is running, allow nfs
firewall-cmd --permanent --add-service=nfs firewall-cmd --reload
NFS Client Setup
TODO