Both sides previous revisionPrevious revisionNext revision | Previous revision |
linux:nfs [2018/12/21 14:23] – [Config] tmade | linux:nfs [2021/03/20 07:44] (current) – [Config] tmade |
---|
/etc/nfsmount.conf | /etc/nfsmount.conf |
| |
Example (content): | Example "/etc/exports": |
/home/tmade/nfs *(fsid=0,ro,sync,root_squash) | /home/tmade/nfs *(fsid=0,ro,sync,root_squash) |
/nfs/test *(fsid=0,rw,sync,no_root_squash) | /nfs/test *(fsid=0,rw,sync,no_root_squash) |
/nfs/software 10.144.9.0/24(rw,sync,no_root_squash,no_subtree_check) #Allow share "/nfs/software" to network 10.144.9.0 | /nfs/software 10.144.9.0/24(rw,sync,no_root_squash,no_subtree_check) #Allow share "/nfs/software" to network 10.144.9.0 |
| <export> <host1>(<options>) <hostN>(<options>)... |
| /data/ 10.144.9.230(rw,sync,no_root_squash,no_subtree_check) 10.144.9.231(rw,sync,no_root_squash,no_subtree_check) |
/data/backup testclient.local(rw,sync,no_root_squash,no_subtree_check) #Allow share "/data/backup" to host "testclient.local" | /data/backup testclient.local(rw,sync,no_root_squash,no_subtree_check) #Allow share "/data/backup" to host "testclient.local" |
| |
| Commands: |
mount -t nfs partner_IP:/export/data /mnt/share #Mount(Linux to Linux) | mount -t nfs partner_IP:/export/data /mnt/share #Mount(Linux to Linux) |
mount -v -o vers=3 -t nfs partner_IP:/export/data /mnt/share | mount -v -o vers=3 -t nfs partner_IP:/export/data /mnt/share |
mount IP:\sharename x: #Mount(Windows to Linux). Services for Unix (Windows Services for UNIX Version 3.5) has to be installed. | mount IP:\sharename x: #Mount(Windows to Linux). Services for Unix (Windows Services for UNIX Version 3.5) has to be installed. |
MOUNT TYPE(*NFS) MFS('172.22.49.20:/D/MEDICOR-NFS') MNTOVRDIR('medicnfs') #Mount(Windows to AS400 -Iseries) | MOUNT TYPE(*NFS) MFS('172.22.49.20:/D/MEDICOR-NFS') MNTOVRDIR('medicnfs') #Mount(Windows to AS400 -Iseries) |
| |
| Reload "/etc/exports": |
| |
| exportfs -rav |
| |
==== Show Shares ==== | ==== Show Shares ==== |