LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-31-2008, 06:29 PM   #1
alirezan1
Member
 
Registered: Nov 2004
Location: Vancouver
Distribution: Ubunty, CentOS ,Mandriva, Gentoo, RedHat, Fedora, Knoppix
Posts: 150

Rep: Reputation: 15
NFS mounting problem


Hi guys,

I have two servers that are connected to my main network (call them Serv 1 and Serv 2). I have a client that's also connected to the same network (call it Client).

I bind a static IP to an existing interface on my primary server (Serv 1) and use that IP address to mount NFS shares by the client. I can read/write/modify and all with no problem.

But say the primary server (Serv1) fails to work and I have to switch to Serv 2. I take the Serv 1 offline and bind the same static IP address to serv 2 and start NFS on that. Although I can ping the serv2 from the client, I can't use the NFS shares (which are identical in every way to the shares on the serv 1). It just gets stuck when I try to access NFS shares on Serv2. Does anybody know what's wrong? Here's the ipcinfor -p output from serv2 that I thought might be useful:

root /home/alireza Localhost# rpcinfo -p

program vers proto port

100000 2 tcp 111 portmapper

100000 2 udp 111 portmapper

100003 2 udp 2049 nfs

100003 3 udp 2049 nfs

100021 1 udp 32790 nlockmgr

100021 3 udp 32790 nlockmgr

100021 4 udp 32790 nlockmgr

100003 2 tcp 2049 nfs

100003 3 tcp 2049 nfs

100021 1 tcp 48599 nlockmgr

100021 3 tcp 48599 nlockmgr

100021 4 tcp 48599 nlockmgr

100005 1 udp 855 mountd

100005 1 tcp 858 mountd

100005 2 udp 855 mountd

100005 2 tcp 858 mountd

100005 3 udp 855 mountd

100005 3 tcp 858 mountd

root /home/alireza Localhost# service nfs status

rpc.mountd (pid 17639) is running...

nfsd (pid 17635 17634 17633 17632 17631 17630 17629 17628) is running...



Thanks !
 
Old 07-31-2008, 10:36 PM   #2
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Hi,

My crystal ball is cracked so everything is fuzzy! So to SWAG;

You should check your '/etc/hosts', '/etc/hosts.allow', and '/etc/hosts.deny'. Don't forget your '/etc/exports' file. Whenever you want to change be sure to update the exportfs.

Code:
excerpt from 'man exportfs';
NAME
       exportfs - maintain list of NFS exported file systems

SYNOPSIS
       /usr/sbin/exportfs [-avi] [-o options,..] [client:/path ..]
       /usr/sbin/exportfs -r [-v]
       /usr/sbin/exportfs [-av] -u [client:/path ..]
       /usr/sbin/exportfs [-v]
       /usr/sbin/exportfs -f

DESCRIPTION
       The  exportfs command is used to maintain the current table of exported
       file systems for NFS. This list  is  kept  in  a  separate  file  named
       /var/lib/nfs/xtab  which  is read by mountd when a remote host requests
       access to mount a file tree, and parts of the list which are active are
       kept in the kernel's export table.

       Normally  this  xtab file is initialized with the list of all file sys-
       tems named in /etc/exports by invoking exportfs -a.
 
Old 07-31-2008, 11:46 PM   #3
sunils1973
Member
 
Registered: Jan 2007
Location: INDIA
Distribution: Ubuntu, Debian
Posts: 340

Rep: Reputation: 30
run exportfs -rv
 
Old 07-31-2008, 11:59 PM   #4
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 133Reputation: 133
Try showmount on the server, to see what is going on.
 
  


Reply



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
nfs mounting problem jkeertir Linux - Newbie 3 04-01-2008 12:24 AM
nfs mounting problem jkeertir Linux - Server 1 03-29-2008 04:02 AM
nfs client on knoppix 3.9 - problem mounting nfs drive Rod Butcher Linux - Networking 1 09-21-2005 04:18 AM
nfs mounting problem Frustin AIX 5 02-04-2005 11:29 AM
Mounting NFS Problem Help!! Sabeer Linux - Networking 4 05-20-2003 11:45 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:33 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration