Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
03-19-2013, 11:12 AM
|
#1
|
Member
Registered: Dec 2012
Posts: 34
Rep: 
|
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...
|
|
|
03-19-2013, 11:34 AM
|
#2
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
|
|
|
03-19-2013, 11:37 AM
|
#3
|
LQ Guru
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 27,663
|
Quote:
Originally Posted by sasaditya
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: - Go to http://www.google.com
- Key "how to configure nfs in centos 6"
- Press ENTER
- 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.
|
|
|
03-19-2013, 10:10 PM
|
#4
|
Member
Registered: Dec 2012
Posts: 34
Original Poster
Rep: 
|
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
|
|
|
03-20-2013, 01:44 AM
|
#5
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
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.
|
03-20-2013, 08:37 AM
|
#6
|
LQ Guru
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 27,663
|
Quote:
Originally Posted by sasaditya
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.".
|
|
|
03-20-2013, 11:06 AM
|
#7
|
Member
Registered: Dec 2012
Posts: 34
Original Poster
Rep: 
|
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
|
|
|
03-20-2013, 11:08 AM
|
#8
|
Member
Registered: Dec 2012
Posts: 34
Original Poster
Rep: 
|
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..
|
|
|
03-20-2013, 01:17 PM
|
#9
|
LQ Guru
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 27,663
|
Quote:
Originally Posted by sasaditya
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?
|
|
|
All times are GMT -5. The time now is 06:53 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|