Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
linux_wiki:nfs_shares [2016/01/31 23:22] billdozor [NFS Server Setup] |
linux_wiki:nfs_shares [2018/03/23 16:21] billdozor [NFS Server Setup] |
||
---|---|---|---|
Line 6: | Line 6: | ||
**Checklist** | **Checklist** | ||
- | * Enterprise Linux 6/7 | + | * Distro(s): |
- | * Two systems (server and client) | + | * Other: |
---- | ---- | ||
Line 23: | Line 23: | ||
* 192.168.1.0/ | * 192.168.1.0/ | ||
* Other ways to share are to specify single hostnames(short, | * Other ways to share are to specify single hostnames(short, | ||
- | * If a firewall is running, allow nfs<code bash> | + | * If a firewall is running, allow nfs, rpc-bind, and mountd<code bash> |
+ | firewall-cmd --permanent --add-service=rpc-bind | ||
+ | firewall-cmd --permanent --add-service=mountd | ||
firewall-cmd --reload</ | firewall-cmd --reload</ | ||
+ | * nfs (tcp/udp 2049) => needed for NFSv4 | ||
+ | * rpc-bind (tcp/udp 111) => needed for NFSv3 compatibility and for showmount to work from client | ||
+ | * mountd (tcp/udp 20048) => needed for the " | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== NFS Server: Increasing NFS Threads ===== | ||
+ | |||
+ | To increase NFS server performance, | ||
+ | |||
+ | * CentOS 7 | ||
+ | * Edit the following config file< | ||
+ | |||
+ | # Number of nfs server processes to be started. | ||
+ | # The default is 8. | ||
+ | RPCNFSDCOUNT=16 | ||
+ | </ | ||
+ | * Restart the nfs-config service< | ||
+ | * Restart the nfs service< | ||
+ | * Verify | ||
+ | * NFS running sysconfig (takes effect after nfs-config restart)< | ||
+ | RPCNFSDARGS=" | ||
+ | * " | ||
+ | th 16 0 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000</ | ||
+ | * Running processes< | ||
+ | 16</ | ||
---- | ---- | ||
Line 30: | Line 58: | ||
====== NFS Client Setup ====== | ====== NFS Client Setup ====== | ||
- | TODO | + | * Install required package< |
+ | * View available mounts on NFS Server< | ||
+ | |||
+ | Export list for fileserver01: | ||
+ | / | ||
+ | * Mount temporarily< | ||
+ | * Mount persistently< | ||
+ | |||
+ | ## NFS Shares ## | ||
+ | fileserver01:/ | ||
+ | * _netdev => Mount option to skip mounting this location until the network is available. | ||
---- | ---- | ||