LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 03-19-2013, 11:12 AM   #1
sasaditya
LQ Newbie
 
Registered: Dec 2012
Posts: 27

Rep: Reputation: Disabled
how to configure nfs


sir,i am so new to this linux operating system..and i am trying to configure nfs in centos 6.3.i dont know how to..if any body can help me to configure NFS by step by step in centos that will be great help to me...
 
Old 03-19-2013, 11:34 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,373

Rep: Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962
There are plenty of guides if you look - https://www.google.co.uk/search?q=co...step+in+centos
 
Old 03-19-2013, 11:37 AM   #3
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 14,132

Rep: Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456
Quote:
Originally Posted by sasaditya View Post
sir,i am so new to this linux operating system..and i am trying to configure nfs in centos 6.3.i dont know how to..if any body can help me to configure NFS by step by step in centos that will be great help to me...
Some good first steps are:
  1. Go to http://www.google.com
  2. Key "how to configure nfs in centos 6"
  3. Press ENTER
  4. Read results
You'll see lots of how-to guides, like this one:
http://blog.zwiegnet.com/linux-serve...r-on-centos-6/

This is not the place to come for "step-by-step' directions, but we will be more than happy to help with specific problems/questions. How-To guides are very easily found with a brief search.
 
Old 03-19-2013, 10:10 PM   #4
sasaditya
LQ Newbie
 
Registered: Dec 2012
Posts: 27

Original Poster
Rep: Reputation: Disabled
Unhappy

but i had gone through and tried to apply that them...but most(95%) of them are saying to install portmap package(yum install portmap nfs* -y).but when it comes to portmap centos 6.3 (which i had download) results there is no package in the name of portmap...then after i had downloaded the portmap for centos 6.3 but when i tried to install it results

[root@station1 data]# yum install portmap* -y
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
Setting up Install Process
Nothing to do

so im asking for the step by step process nfs
 
Old 03-20-2013, 01:44 AM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,373

Rep: Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962
yes, but they ARE "atep by step", and if you can't acutlaly say "I tried doing this, but it didn't work becuase of X Y Z" we can't help you. and there are clearly MANY processes for different systems, not a "the" process.

nfs should be ready to roll on a standard el6 install. have you configured /etc/exports and started nfs?
 
1 members found this post helpful.
Old 03-20-2013, 08:37 AM   #6
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 14,132

Rep: Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456
Quote:
Originally Posted by sasaditya View Post
but i had gone through and tried to apply that them...but most(95%) of them are saying to install portmap package(yum install portmap nfs* -y).but when it comes to portmap centos 6.3 (which i had download) results there is no package in the name of portmap...then after i had downloaded the portmap for centos 6.3 but when i tried to install it results

[root@station1 data]# yum install portmap* -y
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
Setting up Install Process
Nothing to do

so im asking for the step by step process nfs
And we're again telling you that this is NOT THE PLACE to come for step-by-step directions. If you have a SPECIFIC problem, post it. And did you even bother to look at the link I gave you? It doesn't mention portmap anywhere on there, and if you don't say WHAT you've done/tried, or what error(s) you're having, we can't help you with ANYTHING.

Again, we aren't going to look things up for you. Pick one (or more) easily found how-to's, and follow them. See if it works. If not, try something else, or come back and say "I've followed this tutorial at http://xxx.yyy.zz, and I'm stuck at step 4 on CentOS6.".
 
Old 03-20-2013, 11:06 AM   #7
sasaditya
LQ Newbie
 
Registered: Dec 2012
Posts: 27

Original Poster
Rep: Reputation: Disabled
Server side configuration
Check and install packages
[root@nfs ~]#rpm -qa | grep nfs
[root@nfs ~]#yum remove nfs* -y

Install the packages by method1 or method2
Method1::Through rpm by sharing
[root@nfs ~]#mkdir /mnt/pkgs
[root@nfs ~]#mount 192.168.0.250:/var/ftp/server /mnt/pkgs
To permanently mount
[root@nfs ~]#vi etc/fstab
192.168.0.250:/var/ftp/pub/server /mnt/pkgs nfs soft,nfserver=2 0 0

[root@nfs ~]#cd /mnt/pkgs
[root@nfs pkgs]#ls
[root@nfs pkgs]#rpm ivh nfs* --force
[root@nfs pkgs]#yum install nfslock* -y
[root@nfs pkgs]#yum install portmap* -y

Step 2 >> Create resource (file/folders) to be shared
Create any folders to be shared for example
[root@nfs ~]#mkdir /var/galaxy
[root@nfs ~]#mkdir /var/salesdept

Give basic full permissions. So user can do read/write
[root@nfs ~]#chmod 777 /var/galaxy
[root@nfs ~]#chmod 777 /var/salesdept

Create files and folders inside shared folders
[root@nfs ~]#cd /var/galaxy
[root@nfs galaxy]#touch a.txt b.txt c.txt
[root@nfs galaxy]#cd /var /salesdept
[root@nfs salesdept]#mkdir a b c
[root@nfs salesdept]#ls l

Step3 >>edit these entries in the file /etc/idmapd.conf file and Add the entries of folders t be shared in /etc/exports files
[root@nfs~]#vi /etc/idmapd.conf
Domain = server.world (#line 5:uncomment and change to your domain name or you can assine your server ip::remember this should be done at both server and client)

[root@nfs ~]#vi /etc/exports

/var/galaxy 192.168.0.0/255.255.255.0 (ro,async)#this will show the entire network share
/var/salesdept 192.168.0.10(rw,sync) 192.168.0.20(rw,async)#these entries for particular client ips)

:wq!

Step4 >> start the services
[root@nfs ~]#service portmap restart
[root@nfs ~]#service nfs restart
[root@nfs ~]#service rpcbind restart


Step5 >> check the list of shares from NFS server
syntax:-
[root@nfs ~]#showmount e <nfs_server_name or IP>
Example:-
[root@nfs ~]#showmount e 192.168.0.X
Where X is NFS server IP

Client side configuration
Now take any client PC by ssh or move to client machine
[root@client ~]#ssh 192.168.0.Y
Where Y is any client PC IP

To see the list of shares from NFS server
Syntax:-
[root@nfs ~]#showmount e <nfs_server_name or IP>
Where X is NFS server

To share a folder in unix/linux create a folder and mount
[root@client ~]#mkdir /mnt/nfs1 /mnt/nfs2
[root@client ~]#mount 192.168.0.X:/var/galaxy /mnt/nfs1
[root@client ~]#mount 192.168.0.X:/var/salesdept /mnt/nfs2
[root@client ~]#mount

To see the list of shared files/folders
[root@client ~]#cd /mnt/nfs2
[root@client nfs2]#touch fabc.txt f123.txt
[root@client ~]#ls
 
Old 03-20-2013, 11:08 AM   #8
sasaditya
LQ Newbie
 
Registered: Dec 2012
Posts: 27

Original Poster
Rep: Reputation: Disabled
this is the configuration which i followed..when i tried to install portmap i did not find any of them...please help me..it will be great helpful to me..
 
Old 03-20-2013, 01:17 PM   #9
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 14,132

Rep: Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456
Quote:
Originally Posted by sasaditya View Post
this is the configuration which i followed..when i tried to install portmap i did not find any of them...please help me..it will be great helpful to me..
And you reading the replies would be helpful too. Back to my previous post, go back and read the link I gave you initially. It STILL doesn't mention portmap anywhere. It gives you 'step by step' directions. If you're not going to read/follow the advice you're given, there's not much point in posting a question.

And you don't say what the RESULTS of you performing those steps were, so how can we guess as to what's wrong? Where did you get that tutorial? What was the link? Did you actually CHECK to see if you had it mounted? Did you look at your selinux/iptables rules?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
configure nfs service mahnaz Linux - Newbie 7 12-07-2010 01:15 AM
[SOLVED] How to configure NFS Hi_This_is_Dev Linux - Server 5 09-30-2010 09:26 PM
How to configure NFS in redhat ES 4 dilipsharma2006 Linux - Newbie 3 05-01-2008 02:16 PM
how to configure iptables for nfs ?? dansawyer Linux - Security 4 08-06-2006 11:32 PM
how to configure the NFS smthakur Linux - Networking 0 09-03-2001 06:35 AM


All times are GMT -5. The time now is 06:44 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration