LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 06-23-2003, 11:31 PM   #1
KePSuX
Member
 
Registered: Nov 2002
Location: Fredericksburg Va
Distribution: Gentoo
Posts: 59

Rep: Reputation: 15
NFS mounting problem


Hi, I know this has been covered before, but I havent found anything yet that fixed my problem. This is the most info I can think of to offer, im up for trying anything at this point. im trying to get two redhat 9.0 machines working together with an NFS share.
Problem is when trying to mount from the client machine i get the following error:

mount: RPC: Program not registered

-I can ping from each machine tot he other.
-Both machines have firewalls shut off.
-The server has an entry in its /etc/exports file listed as:

/mnt/ 192.168.1.103(rw)

-I use the following command on the client machine to mount:

mount 192.168.1.2:mnt \mnt\media

i have also tried:

mount -t nfs 192.168.1.2:mnt \mnt\media

-when i run service nfs start this is the output i get (on both machines):

[root@asianstation etc]# service nfs start
Starting NFS services: [ OK ]
Starting NFS quotas: [ OK ]
Starting NFS daemon: [ OK ]
Starting NFS mountd: [ OK ]

^-which shows to me that the nfs service and mountd services are running.

-portmap seems to be running, as with a ps -aux command i get (among a list of other items)(again on both machines)

rpc 1108 0.0 0.2 1636 696 ? S Jun23 0:00 [portmap]

Please, someone help. This is drivng me bonkers.
 
Old 06-24-2003, 12:36 AM   #2
zmedico
Member
 
Registered: Feb 2002
Location: Mission Viejo, California, USA
Distribution: Gentoo
Posts: 707

Rep: Reputation: 30
What do you get from "/usr/sbin/rpcinfo -p"
 
Old 06-24-2003, 09:14 AM   #3
KePSuX
Member
 
Registered: Nov 2002
Location: Fredericksburg Va
Distribution: Gentoo
Posts: 59

Original Poster
Rep: Reputation: 15
on the client:

[root@asianstation root]# /usr/sbin/rpcinfo -p
program vers proto port
100000 2 tcp 111 portmapper
100000 2 udp 111 portmapper
100024 1 udp 32768 status
100024 1 tcp 32768 status
391002 2 tcp 32769 sgi_fam

and on the server:

[root@server root]# /usr/sbin/rpcinfo -p
program vers proto port
100000 2 tcp 111 portmapper
100000 2 udp 111 portmapper
100024 1 udp 32768 status
100024 1 tcp 32768 status
391002 2 tcp 32769 sgi_fam
100011 1 udp 1023 rquotad
100011 2 udp 1023 rquotad
100011 1 tcp 602 rquotad
100011 2 tcp 602 rquotad
100003 2 udp 2049 nfs
100003 3 udp 2049 nfs
100021 1 udp 32772 nlockmgr
100021 3 udp 32772 nlockmgr
100021 4 udp 32772 nlockmgr
100005 1 udp 32773 mountd
100005 1 tcp 32771 mountd
100005 2 udp 32773 mountd
100005 2 tcp 32771 mountd
100005 3 udp 32773 mountd
100005 3 tcp 32771 mountd
 
Old 06-24-2003, 09:20 AM   #4
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 47
Re: NFS mounting problem

Quote:
Originally posted by KePSuX
mount 192.168.1.2:mnt \mnt\media
Shouldn't this be
Code:
mount -t nfs 192.168.1.2:/mnt /mnt/media
Also, is there anything in any of your logs on either the server or the client to give any hints? /var/log/??

cheers

Jamie...
 
Old 06-24-2003, 09:23 AM   #5
jchristman
Member
 
Registered: Mar 2003
Distribution: Fedora Core 3
Posts: 125

Rep: Reputation: 15
Re: NFS mounting problem

Quote:
-The server has an entry in its /etc/exports file listed as:

/mnt/ 192.168.1.103(rw)

-I use the following command on the client machine to mount:

mount 192.168.1.2:mnt \mnt\media

i have also tried:

mount -t nfs 192.168.1.2:mnt \mnt\media
/etc/exports

/mnt 192.168.6.103(rw,sync)

now the mount command

mount -t nfs 192.168.1.2:/mnt /mnt/media

will work for you.

Oh yeah make sure on 192.168.1.2 that the service portmap is running

service portmap start
 
Old 06-24-2003, 10:24 AM   #6
KePSuX
Member
 
Registered: Nov 2002
Location: Fredericksburg Va
Distribution: Gentoo
Posts: 59

Original Poster
Rep: Reputation: 15
I got service portmap started on both machines, added "sync" to the exports file on the server and im still getting a

[root@asianstation root]# mount -t nfs 192.168.1.2:/mnt /mnt/media/
mount: RPC: Program not registered


. thanks for the help so far guy!
 
Old 06-24-2003, 10:44 AM   #7
zmedico
Member
 
Registered: Feb 2002
Location: Mission Viejo, California, USA
Distribution: Gentoo
Posts: 707

Rep: Reputation: 30
Maybe you need to have the nfslock service running on the client. There's a good troubleshooting sections in the nfs-howto. Also, maybe tcpwrappers affects these services with /etc/hosts.deny and /etc/hosts.allow

Last edited by zmedico; 06-24-2003 at 10:47 AM.
 
Old 06-24-2003, 11:28 AM   #8
jchristman
Member
 
Registered: Mar 2003
Distribution: Fedora Core 3
Posts: 125

Rep: Reputation: 15
I hate to say this but to save alot of work reboot both machines if you can to kill all previous attempts of the mount.
If not then stop nfs,portmap, and the network then restart in reverse.
network,portmap and nfs
 
Old 06-24-2003, 11:01 PM   #9
spurious
Member
 
Registered: Apr 2003
Location: Vancouver, BC
Distribution: Slackware, Ubuntu
Posts: 558

Rep: Reputation: 31
Heh, I just spent the weekend banging my head over the identical problem, except that my NFS server runs RedHat 7.3. Here's how I solved it:

On your NFS server, do the following:

* comment out everything in /etc/hosts.deny and /hosts.allow, until you can get the NFS server working

* your /etc/exports file looks fine

* while as root, do:

bash# exportfs -r
bash# service nfs restart

This should get your NFS server working. Regarding the advice from the above posters: in RedHat, the 'service nfs restart' command stops and starts the nfsd, nfslock, and mountd daemons; portmap should be running as default.

Try mounting your NFS shares from your client. If it works, then you can edit your /etc/hosts.allow and /etc/hosts.deny files.

This site was extremely helpful:
http://www.saragossa.net/LinuxG3/ls-nfs.shtml
 
Old 06-25-2003, 05:42 PM   #10
KePSuX
Member
 
Registered: Nov 2002
Location: Fredericksburg Va
Distribution: Gentoo
Posts: 59

Original Poster
Rep: Reputation: 15
spurious: dude, I love you. Perfect. got it to mount finally. My current problem (and something I *think* I can solve on my own) is it will share out the /mnt/ directory i was aiming for, but will not show files in any directory below it. Some sort of permissions error that im looking up as we speak. If anyone knows off hand what it is, hook it up. Thanks alot to everyone!
 
Old 06-25-2003, 06:08 PM   #11
KePSuX
Member
 
Registered: Nov 2002
Location: Fredericksburg Va
Distribution: Gentoo
Posts: 59

Original Poster
Rep: Reputation: 15
Ok, i figured out my problem. THe drive I'm mounting to is Fat32, and apparently that wont fly with NFS due to lack of any permissions structure. Doh. Looks like im off to best buy to buy/borrow and 250 gig hdd to rebackup/format. weak. thanks again!
 
Old 06-25-2003, 09:17 PM   #12
zmedico
Member
 
Registered: Feb 2002
Location: Mission Viejo, California, USA
Distribution: Gentoo
Posts: 707

Rep: Reputation: 30
You can mount that Fat32 using smbfs. See "man smbmount" (from the samba-client package).

With nfs, maybe you have to export each specific mount point (/mnt/cdrom for example), that worked for me.

Last edited by zmedico; 06-25-2003 at 09:19 PM.
 
Old 06-25-2003, 10:01 PM   #13
KePSuX
Member
 
Registered: Nov 2002
Location: Fredericksburg Va
Distribution: Gentoo
Posts: 59

Original Poster
Rep: Reputation: 15
Yea, if you mount each individual folder, it works. But I have litterally thousands of folders inside of some of these mounts...that would suck.
 
Old 06-25-2003, 10:29 PM   #14
zmedico
Member
 
Registered: Feb 2002
Location: Mission Viejo, California, USA
Distribution: Gentoo
Posts: 707

Rep: Reputation: 30
I only need one export for each partition that is mounted. That one export gives access to all the directories on the partition. I'm sure you don't have thousands of partitions.
 
Old 06-25-2003, 10:47 PM   #15
spurious
Member
 
Registered: Apr 2003
Location: Vancouver, BC
Distribution: Slackware, Ubuntu
Posts: 558

Rep: Reputation: 31
That's strange; my setup is similar ie mounting a fat32 hard-disk as a NFS partition for media files (/mnt/media on the NFS client, a Knoppix/Debian workstation). However, I have no problems accessing the subdirectories.

So, you're trying to mount the /mnt directory on your NFS server... you created a separate fat32 partition for /mnt? What's the filesystem type for your / partition?
 
  


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 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
problem mounting NFS goldkanal Linux - Networking 3 01-30-2005 12:56 PM
Mounting NFS Problem Help!! Sabeer Linux - Networking 4 05-20-2003 11:45 PM
NFS mounting problem joeljensen Linux - Networking 2 02-07-2003 05:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:47 AM.

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