LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Cannot mount in Mandriva (https://www.linuxquestions.org/questions/linux-software-2/cannot-mount-in-mandriva-419290/)

eikeland 02-24-2006 08:58 PM

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

acid_kewpie 02-25-2006 01:34 AM

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?

eikeland 02-25-2006 09:15 AM

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

acid_kewpie 02-25-2006 02:38 PM

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.

eikeland 02-25-2006 06:18 PM

[root@borabora eikeland]# showmount
Hosts on borabora:
192.168.1.2
Tahiti
[root@borabora eikeland]#


So, it looks like it should find it.

acid_kewpie 02-26-2006 01:08 AM

no, from the client, run "showmount -e servername" to see what you can see from the client.

eikeland 03-04-2006 03:00 PM

If I:
$showmount -e Tahiti

It just hangs and does not come back with anything. I eventually hit CTRL+C

acid_kewpie 03-04-2006 03:04 PM

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

eikeland 03-18-2006 01:36 PM

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

eikeland 03-09-2008 03:07 PM

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..

eikeland 03-09-2008 03:45 PM

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?

acid_kewpie 03-09-2008 04:41 PM

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/


All times are GMT -5. The time now is 12:10 PM.