Yup, we are able to share NFS storage media easily across multiple existing linux system. Implementation of NFS can also vary, depending on the purpose or concept to be applied, for example, want to make a backup using that file upload or separation location, etc..
Its use is pretty easy, just install the kernel nfs server side and client side common nfs. Okay following step by step.
In the Server / Master
Install nfs-kernel-server, for example if in Ubuntu / Debian:
# apt-get install nfs-kernel-server
Then modify the file /etc/exports
# nano /etc/exports
Specify the directory which will be shared, for example, to be shared is the directory: /home/user/share/ the contents of /etc/exports with:
/home/user/share ip-computer-users (rw, sync, no_subtree_check)
Then restart the nfs daemon
# /etc/init.d/nfs-kernel-server restart
In the Client / User
Install nfs-common, for example, if in CentOS:
# yum install nfs-common
Next live aja mount directory server / provider was:
# mount ip-computer:/home/user/share
Done, if it is to be enabled at boot / user's computer is turned on then put the command in /etc/rc.local or modify file /etc/fstab.
To find out what directories are shared on the computer, can be seen with the command:
$ showmount-e ip-address
hopefully useful;-)
No comments:
Post a Comment