nfs
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
nfs [2011/11/10 17:05] – created k2patel | nfs [2020/08/10 02:35] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 3: | Line 3: | ||
This is the notes from my setup. | This is the notes from my setup. | ||
+ | ===== Server ===== | ||
+ | ==== Export ==== | ||
+ | I am setting up server for NFSv4 without Security IP based access list.\\ | ||
+ | **NOTE :** Match your uid with anonuid | ||
+ | |||
+ | <code bash | / | ||
+ | /home | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | </ | ||
+ | |||
+ | ==== NFS Ports ==== | ||
+ | |||
+ | |||
+ | Now change following settings.\\ | ||
+ | If any of the variable not exists please add as new line.\\ | ||
+ | These disables legacy version and NFS v3 Support.\\ | ||
+ | As keeping NFSv3 Support lead you to open many port in firewall and might cause issue on permission.\\ | ||
+ | |||
+ | <code bash | / | ||
+ | MOUNTD_NFS_V1=" | ||
+ | MOUNTD_NFS_V2=" | ||
+ | RPCNFSDARGS=" | ||
+ | </ | ||
+ | |||
+ | ==== Firewall ==== | ||
+ | |||
+ | Add Following lines to your firewall rules. | ||
+ | |||
+ | <code bash | / | ||
+ | -A INPUT -s 192.168.1.4 -m state --state NEW -m tcp -p tcp --dport 2049 -j ACCEPT | ||
+ | </ | ||
+ | |||
+ | ==== Services ==== | ||
+ | |||
+ | Now restart / start all modified services.\\ | ||
+ | In new Fedora it is some thing like as follow\\ | ||
+ | Some server require to be started in specific order. | ||
+ | |||
+ | * systemctl restart rpcbind.service | ||
+ | * systemctl restart iptables.service | ||
+ | * systemctl restart nfs-idmap.service | ||
+ | * systemctl restart nfs-server.service | ||
+ | |||
+ | ===== Client ===== | ||
+ | |||
+ | To setup client to mount exported FS use following. | ||
+ | <code bash | / | ||
+ | 192.168.1.5: | ||
+ | 192.168.1.5: | ||
+ | 192.168.1.5: | ||
+ | 192.168.1.5: | ||
+ | </ | ||
+ | |||
+ | You can refer following manual for further information.\\ | ||
+ | Since all these is some how i gathered from these documentation.\\ | ||
[[http:// | [[http:// |
nfs.1320944700.txt.gz · Last modified: 2020/08/10 02:30 (external edit)