Network File System (NFS)

This is my first look with NFS,

although i’ve tried NFS about 2 years ago, but i never write about that.
These are my requirement for test: 3 VM with connectable network. Such a 1 nfs server (192.168.56.2)  and 2 nfs client (192.168.56.3-4 CentOS 6.2 minimal server), package nfs, rpcbind (portmap service alternative, since kernel version was growth. Two nfs client should be run this service), iptables, telnet (optional package).

Server Configuration
We already set /data1 and /data2 as two partition will be share.
Edit /etc/exports file
nfs2Configure allow and deny hosts
nfs4Configure /etc/sysconfig/nfs for rpcbind, mountd, nfsd, etc static port
nfs5Configure iptables
nfs3

Client Side
Just use these params to mount them
~# mount -o rw <ip_nfs_server>:/<path_folder> /<path_destination>
Then your file/ folder will be set as user and group nfsnobody by nfs server.

Result
nfs1
Then if you want to execute the service or mounting activity automatically, set them with this params:
~# chkconfig <service_name> on
~# vi /etc/fstab // edit fstab foreach client

 <ip_nfs_server>:/<path>   /<destination_path>  nfs  ro  0  0
 <ip_nfs_server>:/<path>   /<destination_path>  nfs  rw  0  0

 

References
[1] Aji. Kresno, “Sharing File di Jaringan dengan NFS” . 2003 (Mei): 1-2. Retrieved 16 january 2015.
[2] http://eduardo-lago.blogspot.com/2012/02/installing-nfs-on-centos-62.html

Advertisements

Tinggalkan pesan atau komentar

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s