[[http://tmade.de|Home tmade.de]] [[http://wiki.tmade.de|Home Wiki]] ===== NFS ===== ==== Config ===== Configuration-file for NFS-Server (if NFS-Server is installed): /etc/exports /etc/nfsmount.conf Example "/etc/exports": /home/tmade/nfs *(fsid=0,ro,sync,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 () ()... /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" Commands: 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 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) Reload "/etc/exports": exportfs -rav ==== Show Shares ==== Showmount queries the mount daemon on a remote host for information about the state of the NFS server on that machine. showmount -e IP #On Linux showmount -e localhost