1. Create the folder which we want to share
How to access these shared folders from the remote 192.168.1.60 system
1. Create a corresponding directory anywhere say nfs1
Additional configurations
1. Allow client/remote 'root' user the ability to write to /nfs1 export
3. showmount -a 192.168.1.50 - shows mounts on this system (connected NFS clients)
mkdir /nfs12. Share the folder by entering its details in /etc/exports file. In the /etc/exports file, enter the following:
chmod 666 /nfs1
/nfs1 192.168.1.60(rw) [This means this folder can be accessed by 192.168.1.60 in read-write mode]3. Start service
/nfs2 172.30.10.0/24
service nfs start4. Export the file (publishing):
ckconfig nfs on
exportfs –v5. Done!!!
note: if we add more folder then we can update the exports using exportfs –a
How to access these shared folders from the remote 192.168.1.60 system
1. Create a corresponding directory anywhere say nfs1
mkdir /nfs12. Mount the remote shared directory (192.168.1.50) to that this directory
mount –t nfs 192.168.1.50:/nfs1 /nfs13. Use the “df –h” or “mount” command to confirm it and we are done!!!
Additional configurations
1. Allow client/remote 'root' user the ability to write to /nfs1 export
/etc/exports: (rw,no_root_squash)2. Setup mount points so that they're available upon reboot
Edit /etc/fstab
192.168.1.50:/nfs1 /nfs1 nfs defaults 0 0
note : Unmount and confirm that NFS mount points will be available when the client system changes runlevels (reboots, starts, etc.) - 'mount –a'
3. showmount -a 192.168.1.50 - shows mounts on this system (connected NFS clients)
No comments:
Post a Comment