Monday, February 6, 2012

How To Configure NFS Server In RHEL6

NFS [Network file system] Server Side Configuretion

The Network File System (NFS) was developed to allow machines to mount a disk partition on a remote machine as if it were a local disk. It allows for fast, seamless sharing of files across a network.

follow this step ......

Now to install these packages you need to use rpm command or yum if you have yum server in your network or on local system.

packages name is -> nfs-utils-lib , nfs-utils
1.[root@localhost ~]# rpm -ivh package name
2.[root@localhost ~]# yum install nfs*

#### create some directory #####
3.[root@localhost ~]# mkdir -p /nfs1/dir/nfsfile

#####open the nfs configuration file and add the following######

4.[root@localhost ~]# vim /etc/exports
/nfs1<TAB>192.168.0.1/24(ro)

Save the configuration file

#### Now restart the service ####
5.[root@localhost ~]# service nfs restart
#### Permanent the service ####
6.[root@localhost ~]# chkconfig nfs on

Client side->
[root@localhost ~]# showmount -e 192.168.0.1

*****Enjoy_the_magic*****

Favorites