LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-24-2006, 08:58 PM   #1
eikeland
Member
 
Registered: Nov 2004
Location: Newport, RI, USA
Distribution: Mandriva 2006
Posts: 125

Rep: Reputation: 15
Cannot mount in Mandriva


I am having problems mounting a in Mandriva 2006 official..
I have two Mandriva PCs, one 32bit (tahiti) and one 64bit (borabora). They are both on the same network, and I can ftp/telnet/ping both ways. I have created NFS mount points on both sides (they look similar), but I can only mount on tahiti. If I try to mount the NFS share (on Tahiti) on borabora, it doesn't find anything when I 'search servers' in the MDK control center. I have also tried doing it manually, but without luck. Don't understand why this works one way, but not the other. I have even tried shutting down the firewall, to no help. I checked the /var/log/auth.log on the host, but I don't even see an entry for when I try to connect. I see entries when I telnet, so I know I can connnect. This almost seems like a bug in Mandriva 2006 x64......


Any suggestions....

Thanks
 
Old 02-25-2006, 01:34 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
use the exports command on the would-be client to directly see what shares it can or can't see on the failing server. also is the NFS server even running on that box?
 
Old 02-25-2006, 09:15 AM   #3
eikeland
Member
 
Registered: Nov 2004
Location: Newport, RI, USA
Distribution: Mandriva 2006
Posts: 125

Original Poster
Rep: Reputation: 15
Thanks for getting back to me. Exports looks good as far as I can see. This is on the client:
# generated by drakhosts.pl
/home/eikeland/Documents Tahiti(no_all_squash,sync,insecure,ro)

This directory is mounted OK on the other machine.

On the other machine I have:
# generated by drakhosts.pl
/home/eikeland/mp3 borabora(no_all_squash,sync,insecure,ro)
/media/Video borabora(no_all_squash,sync,insecure,ro)


This also looks good to me since 'borabora' should be allowed to mount the drives on Tahiti. However, the mount points don't show up on borabora.

The NFS service is also running according to the Control Center.

I see there is also an NFS lock on the server. I turned this off, but that didn't help either.

I also find it interesting that I can remote control one machine from the other, but not the other way awound. It's the same machine that I am having problems with.

It's also interesting that if I do 'showmount' on the client, the server name and IP address is found. I am not sure if that means it can find it, or if just means that I have given that machine access to mount it's partitions.

Thanks
 
Old 02-25-2006, 02:38 PM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
ahh crap, i meant showmount, not exports. that commadn looks at a remote server and tells you what it can see in terms of NFS shares.
 
Old 02-25-2006, 06:18 PM   #5
eikeland
Member
 
Registered: Nov 2004
Location: Newport, RI, USA
Distribution: Mandriva 2006
Posts: 125

Original Poster
Rep: Reputation: 15
[root@borabora eikeland]# showmount
Hosts on borabora:
192.168.1.2
Tahiti
[root@borabora eikeland]#


So, it looks like it should find it.
 
Old 02-26-2006, 01:08 AM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
no, from the client, run "showmount -e servername" to see what you can see from the client.
 
Old 03-04-2006, 03:00 PM   #7
eikeland
Member
 
Registered: Nov 2004
Location: Newport, RI, USA
Distribution: Mandriva 2006
Posts: 125

Original Poster
Rep: Reputation: 15
If I:
$showmount -e Tahiti

It just hangs and does not come back with anything. I eventually hit CTRL+C
 
Old 03-04-2006, 03:04 PM   #8
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
do you have portmap running on both machines? do you have any netfilter rules on either box? run "iptables -L" to list anything that could be blocking the connections. also check the end of /var/log/messages on both machiens after the attempt to connect
 
Old 03-18-2006, 01:36 PM   #9
eikeland
Member
 
Registered: Nov 2004
Location: Newport, RI, USA
Distribution: Mandriva 2006
Posts: 125

Original Poster
Rep: Reputation: 15
Yes, I have portmap running on both the server and the client.
Server:
[root@Tahiti eikeland]# ps -ef | grep portmap
rpc 3095 1 0 12:54 ? 00:00:00 portmap

Client:
[root@borabora eikeland]# ps -ef | grep portmap
rpc 2971 1 0 12:59 ? 00:00:00 portmap

On the client:
[root@borabora eikeland]# 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

On the server, I get too much to list... Is there anything in particular I should be looking form such as?
Chain reject (11 references)
target prot opt source destination
DROP all -- anywhere anywhere PKTTYPE = broadcast
DROP all -- anywhere anywhere PKTTYPE = multicast
DROP all -- 192.168.1.255 anywhere
DROP all -- 255.255.255.255 anywhere
DROP all -- BASE-ADDRESS.MCAST.NET/4 anywhere
REJECT tcp -- anywhere anywhere reject-with tcp-reset
REJECT udp -- anywhere anywhere reject-with icmp-port-unreachable
REJECT icmp -- anywhere anywhere reject-with icmp-host-unreachable
REJECT all -- anywhere anywhere reject-with icmp-host-prohibited

Also, I noticed that portmap is a little different on the two machines. This might have something to do with that.
Server:
[root@Tahiti eikeland]# rpcinfo -p
program vers proto port
100000 2 tcp 111 portmapper
100000 2 udp 111 portmapper
100024 1 udp 978 status
100024 1 tcp 981 status
100003 2 udp 2049 nfs
100003 3 udp 2049 nfs
100003 4 udp 2049 nfs
100003 2 tcp 2049 nfs
100003 3 tcp 2049 nfs
100003 4 tcp 2049 nfs
100021 1 udp 32770 nlockmgr
100021 3 udp 32770 nlockmgr
100021 4 udp 32770 nlockmgr
100021 1 tcp 32769 nlockmgr
100021 3 tcp 32769 nlockmgr
100021 4 tcp 32769 nlockmgr
100005 1 udp 677 mountd
100005 1 tcp 680 mountd
100005 2 udp 677 mountd
100005 2 tcp 680 mountd
100005 3 udp 677 mountd
100005 3 tcp 680 mountd

Client:
[root@borabora eikeland]# rpcinfo -p
program vers proto port
100000 2 tcp 111 portmapper
100000 2 udp 111 portmapper
100024 1 udp 741 status
100024 1 tcp 744 status
100003 2 udp 2049 nfs
100003 3 udp 2049 nfs
100003 4 udp 2049 nfs
100003 2 tcp 2049 nfs
100003 3 tcp 2049 nfs
100003 4 tcp 2049 nfs
100021 1 udp 32768 nlockmgr
100021 3 udp 32768 nlockmgr
100021 4 udp 32768 nlockmgr
100021 1 tcp 32769 nlockmgr
100021 3 tcp 32769 nlockmgr
100021 4 tcp 32769 nlockmgr
100005 1 udp 882 mountd
100005 1 tcp 885 mountd
100005 2 udp 882 mountd
100005 2 tcp 885 mountd
100005 3 udp 882 mountd
100005 3 tcp 885 mountd

I also noticed that I have both eth0 and eth1 for some reason. In 'Monitor Network', it says that I am not connected. I do have internet connection though, so I am not sure what the deal is there. The monitor is also showing activity.

The only thing I see in /var/log/messages on the server when I try to connect is:
Mar 18 14:30:00 Tahiti CROND[7577]: (mail) CMD (/usr/bin/python -S /usr/lib/mailman/cron/gate_news)

This doesn't look like have anything to do with connecting from the client (borabora).

On the client I see:
Mar 18 14:30:07 borabora diskdrake[6376]: launched command: /etc/init.d/portmap status

I still don't know what is going on here, but some help on the iptables might be helpful. I will also try to look around on linuxquestions.org and google.

Thanks
 
Old 03-09-2008, 03:07 PM   #10
eikeland
Member
 
Registered: Nov 2004
Location: Newport, RI, USA
Distribution: Mandriva 2006
Posts: 125

Original Poster
Rep: Reputation: 15
Smile OK, I finally figured out problem with mounting in Mandriva!

I ran this command as root on the host:
/usr/sbin/exportfs -r

That seems to fix it since as soon as I did that the host was seen on the client as well as all the mount shares on the host. I am glad I finally got that to work...
Not sure why this command doesn't run by default in Mandriva..
 
Old 03-09-2008, 03:45 PM   #11
eikeland
Member
 
Registered: Nov 2004
Location: Newport, RI, USA
Distribution: Mandriva 2006
Posts: 125

Original Poster
Rep: Reputation: 15
Firewall is preventing mapping

OK had turned off the firewall to make sure that wasn't an issue, but when I turned it back on I wasn't able to mount. It seems like it's on the host, and I am not sure what port I need to open up. I have opened port 2049 (udp/tcp), but it still doesn't work. Any suggestions?
 
Old 03-09-2008, 04:41 PM   #12
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
nfs is a portmapped serivce, as such the port the data will flow on is dynamic.

http://pario.no/2008/01/15/allow-nfs...redhat-system/
 
  


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
Cannot NFS mount in Mandriva eikeland Linux - Networking 2 02-19-2006 09:47 AM
Mandriva won't mount drive... kvnband Linux - Software 7 12-27-2005 06:39 PM
Can Mandriva mount the utf8 encode reiserfs partition??? homesp Mandriva 0 08-18-2005 08:07 AM
Mount msdos floppy disc in Mandriva rescue mode adrenaline_NZ Mandriva 2 08-03-2005 04:50 PM
cd mount mandriva 2005 "driving" me insane Skankpuss Linux - Hardware 2 05-28-2005 06:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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