LinuxQuestions.org
Review your favorite Linux distribution.
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-20-2003, 01:58 PM   #1
rindress
LQ Newbie
 
Registered: Jun 2003
Posts: 1

Rep: Reputation: 0
showmount fails but rpcinfo works?


I am having a problem mounting a filesystem from one server to another. Seems like an easy thing to solve, however it's very strange. I have two RedHat servers, one is RH7.1(ServerA:192.168.1.150) and one is RH7.3(ServerB:192.168.1.170,192.168.1.171). ServerA is acting as an NFS client trying to mount a filesystem from ServerB. Both servers have multiple NIC cards. ServerB has two NIC cards on the same subnet. ServerA has access to the internet and has ipchains. I have added a rule to ipchains on ServerA to allow all traffic over its eth2, which is the 192.168.1.x network. ServerB does not run ipchains or iptables.

Now the strange part is this. From ServerA I can run
[root@ServerA init.d]# rpcinfo -p ServerB
program vers proto port
100000 2 tcp 111 portmapper
100000 2 udp 111 portmapper
100011 1 udp 933 rquotad
100011 2 udp 933 rquotad
100011 1 tcp 936 rquotad
100011 2 tcp 936 rquotad
100005 1 udp 32791 mountd
100005 1 tcp 32786 mountd
100005 2 udp 32791 mountd
100005 2 tcp 32786 mountd
100005 3 udp 32791 mountd
100005 3 tcp 32786 mountd
100003 2 udp 2049 nfs
100003 3 udp 2049 nfs
100021 1 udp 32792 nlockmgr
100021 3 udp 32792 nlockmgr
100021 4 udp 32792 nlockmgr

However I can not run
[root@ServerA init.d]# showmount -e ServerB
mount clntudp_create: RPC: Port mapper failure - RPC: Timed out

Very strange... From ServerB to ServerA everything functions fine.

Another strange this is that when I try to do a mount from ServerA I get the following
[root@ServerA init.d]# mount ServerB:/var/ExportDir /mnt/ServerB
mount: RPC: Timed out

However in /var/log/message on SeverB I get the following:
Jun 20 14:23:13 ServerB rpc.mountd: authenticated mount request from ServerA:645 for /var/ExportDir (/var/ExportDir)
the that's it. Nothing else.

Another thing that I've tried is to run tcpdump on ServerA and ServerB to see what is getting sent when doing a mount command.

Here is the results
ServerA 192.168.1.150
-------
[root@ServerA /root]# tcpdump port sunrpc -i eth2
tcpdump: listening on eth2
14:00:49.533381 192.168.1.150.604 > ServerB.sunrpc: S 2663985867:2663985867(0) win 5840 <mss 1460,sackOK,timestamp 5200133 0,nop,wscale 0> (DF)
14:00:49.533381 ServerB.sunrpc > 192.168.1.150.604: S 381781313:381781313(0) ack 2663985868 win 5792 <mss 1460,sackOK,timestamp 262334430 5200133,nop,wscale 0> (DF)
14:00:49.533381 192.168.1.150.604 > ServerB.sunrpc: . ack 1 win 5840 <nop,nop,timestamp 5200133 262334430> (DF)
14:00:49.533381 192.168.1.150.604 > ServerB.sunrpc: P 1:45(44) ack 1 win 5840 <nop,nop,timestamp 5200133 262334430> (DF)
14:00:49.533381 ServerB.sunrpc > 192.168.1.150.604: . ack 45 win 5792 <nop,nop,timestamp 262334431 5200133> (DF)
14:00:49.533381 ServerB.sunrpc > 192.168.1.150.604: P 1:373(372) ack 45 win 5792 <nop,nop,timestamp 262334431 5200133> (DF)
14:00:49.533381 192.168.1.150.604 > ServerB.sunrpc: . ack 373 win 6432 <nop,nop,timestamp 5200133 262334431> (DF)
14:00:49.533381 192.168.1.150.604 > ServerB.sunrpc: F 45:45(0) ack 373 win 6432 <nop,nop,timestamp 5200133 262334431> (DF)
14:00:49.533381 ServerB.sunrpc > 192.168.1.150.604: F 373:373(0) ack 46 win 5792 <nop,nop,timestamp 262334431 5200133> (DF)
14:00:49.533381 192.168.1.150.604 > ServerB.sunrpc: . ack 374 win 6432 <nop,nop,timestamp 5200133 262334431> (DF)


ServerB
-------
NOTE: Right after these packets were display I received the message "mount: RPC: Timed out" on ServerA.

ETH0 192.168.1.170
-------------------
[root@ServerB root]# tcpdump port sunrpc -i eth0
tcpdump: listening on eth0
14:35:21.616155 ServerA.776 > 192.168.1.170.sunrpc: S 2832002117:2832002117(0) win 5840 <mss 1460,sackOK,timestamp 5216486 0,nop,wscale 0> (DF)
14:35:21.616301 ServerA.776 > 192.168.1.170.sunrpc: . ack 563005760 win 5840 <nop,nop,timestamp 5216486 262418176> (DF)
14:35:21.616410 ServerA.776 > 192.168.1.170.sunrpc: P 0:44(44) ack 1 win 5840 <nop,nop,timestamp 5216486 262418176> (DF)
14:35:21.617470 ServerA.776 > 192.168.1.170.sunrpc: . ack 373 win 6432 <nop,nop,timestamp 5216486 262418177> (DF)
14:35:21.617532 ServerA.776 > 192.168.1.170.sunrpc: F 44:44(0) ack 373 win 6432 <nop,nop,timestamp 5216486 262418177> (DF)
14:35:21.617843 ServerA.776 > 192.168.1.170.sunrpc: . ack 374 win 6432 <nop,nop,timestamp 5216486 262418177> (DF)


ETH1 192.168.1.171
-------------------
[root@ServerB init.d]# tcpdump port sunrpc -i eth1
tcpdump: listening on eth1
14:35:21.616193 192.168.1.170.sunrpc > ServerA.776: S 563005759:563005759(0) ack 2832002118 win 5792 <mss 1460,sackOK,timestamp 262418176 5216486,nop,wscale 0> (DF)
14:35:21.616428 192.168.1.170.sunrpc > ServerA.776: . ack 45 win 5792 <nop,nop,timestamp 262418176 5216486> (DF)
14:35:21.617295 192.168.1.170.sunrpc > ServerA.776: P 1:373(372) ack 45 win 5792 <nop,nop,timestamp 262418177 5216486> (DF)
14:35:21.617710 192.168.1.170.sunrpc > ServerA.776: F 373:373(0) ack 46 win 5792 <nop,nop,timestamp 262418177 5216486> (DF)

NETWORK INFO FOR ServerB
------------------------
[root@ServerB init.d]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:06:5B:F0:D9:C7
inet addr:192.168.1.170 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:23818210 errors:0 dropped:0 overruns:0 frame:0
TX packets:1789 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:3620080916 (3452.3 Mb) TX bytes:114496 (111.8 Kb)
Interrupt:17 Base address:0xcce0 Memory:feb60000-feb80000

eth1 Link encap:Ethernet HWaddr 00:06:5B:F0:D9:C8
inet addr:192.168.1.171 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:23348503 errors:0 dropped:0 overruns:0 frame:0
TX packets:57612511 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:3437198254 (3277.9 Mb) TX bytes:1853457745 (1767.5 Mb)
Interrupt:16 Base address:0xccc0 Memory:feb20000-feb40000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:1234 errors:0 dropped:0 overruns:0 frame:0
TX packets:1234 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:103880 (101.4 Kb) TX bytes:103880 (101.4 Kb)

[root@ServerB init.d]# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 eth0
[root@ServerB init.d]# iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination

Chain FORWARD (policy ACCEPT)
target prot opt source destination

Chain OUTPUT (policy ACCEPT)
target prot opt source destination


I'm sure at this point people are thinking ok just do an ipchains -F on ServerA and all will be fine. Well I can't do that. I really need to figure this out without flushing all the rules on ServerA.

Does anybody have any ideas on this one? Other things to try troubleshoot it? I assume it's a problem with portmapper, however I have know idea how to determine what the problem is.

Thanks in advance,
Rindress MacDonald
 
  


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
Wireless works, then fails... djKale Linux - Wireless Networking 1 02-04-2005 03:20 PM
rpcinfo script Ljohan Programming 1 04-24-2004 06:39 PM
no showmount vvuiverine Linux - Networking 1 03-28-2004 09:09 AM
rpcinfo tmorton Linux - Networking 0 09-17-2003 02:13 PM
Redhat 7.3 works where 8.0 fails.... skoorbj Linux - Distributions 4 12-12-2002 03:23 PM


All times are GMT -5. The time now is 07:24 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