19 May 2011 @ 6:19 AM 

What is NFS and why do you need it?
Network File System (NFS) is a network file system protocol originally developed by Sun Microsystems in 1984, allowing a user on a client computer to access files over a network in a manner similar to how local storage is accessed.
For example if you have 2 servers, you can setup 1 server for work and another one setup as a backup server, or just use its disk space, there are a lot of combinations.

First you need to check if NFS is already installed:
chkconfig --list nfs
If installed, you’ll see:
nfs 0:off 1:off 2:off 3:off 4:off 5:off 6:off
Adding NFS to boot and starting:
modprobe nfs
chkconfig nfs on
chkconfig portmap on
service portmap restart
service nfs start

If NFS wasn’t installed, just:
yum -y install nfs-utils

To allow connection from some server to your server with NFS you need to edit /etc/exports (example):

Here we allow server with IP mount our home directory with rw (read write) rights.
Be careful with spaces in file /etc/exports, for example, if you write:
/home (rw)
then will get access to /home directory with ro (read only) rights.

To activate all changes in /etc/exports:
exportfs -r
To check the list of all exported file systems:
you should see something like:

Now we need to mount file system on server, first let’s make a directory, where file system will be mounted:
mkdir /mnt/nfs
And finally mounting:
mount -t nfs /mnt/nfs
structure (<hostname>:<resource> <mount dir>)
Thats all guys =)

Posted By: lvlind
Last Edit: 06 Oct 2016 @ 04:14 PM

Tags: ,
Categories: Uncategorized


Responses to this post » (None)

Post a Comment

You must be logged in to post a comment.

Comment Meta:
RSS Feed for comments

 Last 50 Posts
Change Theme...
  • Users » 1
  • Posts/Pages » 35
  • Comments » 0
Change Theme...
  • VoidVoid « Default
  • LifeLife
  • EarthEarth
  • WindWind
  • WaterWater
  • FireFire
  • LightLight


    No Child Pages.

Need Help?

    No Child Pages.

Check your IP

    No Child Pages.