Failure to mount remote NFS system

July 20th, 2012 - 12:02 pm ET by grimble | Report spam
Need help please with the following problem:
Machine B (Mandriva 2011, 32 bit) runs a Raid 5 array.
Machine M uses rsync to copy files to Machine B regularly, and I've
checked that it does so.
This machine, H (see below), is also Mandriva 2011
When I try to use MCC/Access NFS shared files etc, to connect to machine
B, I am offered the file system I want to connect to, but when I click
on "mount", I get a "mounting partition **** failed" message, and if I
try from the command line, I get
mount.nfs: access denied by server while mounting
bach.gemmills.invalid:/mnt/raid

I have copied the appropriate line from M's /etc/fstab to H's.
/etc/hosts has the appropriate entries, and /etc/exports,
/etc/hosts.allow, /etc/hosts.deny are all OK.
Service nfs-common is running on H.
Suggestions welcome.
Thanx
Grimble
Registered Linux User #450547
Running KDE 4.6.5 on 2.6.39.4-5.1-desktop kernel.
Mandriva Linux release 2011.0 (Official) for i586
email Follow the discussionReplies 6 repliesReplies Make a reply

Similar topics

Replies

#1 sid
July 20th, 2012 - 01:37 pm ET | Report spam
grimble wrote:

Need help please with the following problem:
Machine B (Mandriva 2011, 32 bit) runs a Raid 5 array.
Machine M uses rsync to copy files to Machine B regularly, and I've
checked that it does so.
This machine, H (see below), is also Mandriva 2011
When I try to use MCC/Access NFS shared files etc, to connect to machine
B, I am offered the file system I want to connect to, but when I click
on "mount", I get a "mounting partition **** failed" message, and if I
try from the command line, I get
mount.nfs: access denied by server while mounting
bach.gemmills.invalid:/mnt/raid

I have copied the appropriate line from M's /etc/fstab to H's.
/etc/hosts has the appropriate entries, and /etc/exports,
/etc/hosts.allow, /etc/hosts.deny are all OK.
Service nfs-common is running on H.
Suggestions welcome.
Thanx



When this happened to me I found the only way around it was to include the
nfsvers=3 option in fstab as below

server:/home/trina/server /home/server/trina nfs
nfsvers=3,rsize92,wsize92,nosuid,soft 0 0

all one line of course

sid
RLU 300284
2010.2
Replies Reply to this message
#2 Jim Beard
July 20th, 2012 - 02:53 pm ET | Report spam
On 07/20/2012 12:02 PM, grimble wrote:
Need help please with the following problem:
Machine B (Mandriva 2011, 32 bit) runs a Raid 5 array.
Machine M uses rsync to copy files to Machine B regularly, and
I've checked that it does so.
This machine, H (see below), is also Mandriva 2011
When I try to use MCC/Access NFS shared files etc, to connect to
machine B, I am offered the file system I want to connect to, but
when I click on "mount", I get a "mounting partition **** failed"
message, and if I try from the command line, I get
mount.nfs: access denied by server while mounting
bach.gemmills.invalid:/mnt/raid

I have copied the appropriate line from M's /etc/fstab to H's.
/etc/hosts has the appropriate entries, and /etc/exports,
/etc/hosts.allow, /etc/hosts.deny are all OK.
Service nfs-common is running on H.
Suggestions welcome.



WAG: What are the permissions on the router? What ports are
open? Did you use mcc to set up the nfs filesystem? (Setting up
is different from connecting)

Cheers!

jim b.


UNIX is not user unfriendly; it merely
expects users to be computer-friendly.
Replies Reply to this message
#3 grimble
July 20th, 2012 - 05:12 pm ET | Report spam
On 20/07/12 18:37, sid wrote:
grimble wrote:

Need help please with the following problem:
Machine B (Mandriva 2011, 32 bit) runs a Raid 5 array.
Machine M uses rsync to copy files to Machine B regularly, and I've
checked that it does so.
This machine, H (see below), is also Mandriva 2011
When I try to use MCC/Access NFS shared files etc, to connect to machine
B, I am offered the file system I want to connect to, but when I click
on "mount", I get a "mounting partition **** failed" message, and if I
try from the command line, I get
mount.nfs: access denied by server while mounting
bach.gemmills.invalid:/mnt/raid

I have copied the appropriate line from M's /etc/fstab to H's.
/etc/hosts has the appropriate entries, and /etc/exports,
/etc/hosts.allow, /etc/hosts.deny are all OK.
Service nfs-common is running on H.
Suggestions welcome.
Thanx



When this happened to me I found the only way around it was to include the
nfsvers=3 option in fstab as below

server:/home/trina/server /home/server/trina nfs
nfsvers=3,rsize92,wsize92,nosuid,soft 0 0

all one line of course



Sid,
When I saw your reply, I thought that was the answer, because machine M
already had nfs limited to version 3 as a result of a previous problem
to do with uig/gid, whereas machine H didn't have that mod in
/etc/sysconfig/nfs-server. That would have explained why M could contact
B, but H couldn't. However, limiting both B and H to nfs version 3 and
including the fstab mod you suggested has not worked. Too late to think
about it now, so that's for tomorrow (after the crosswords).
Thanks for your reply,
Grimble

Grimble
Registered Linux User #450547
Running KDE 4.6.5 on 2.6.39.4-5.1-desktop kernel.
Mandriva Linux release 2011.0 (Official) for i586
Replies Reply to this message
#4 Bit Twister
July 20th, 2012 - 05:55 pm ET | Report spam
On Fri, 20 Jul 2012 17:02:38 +0100, grimble wrote:

I have copied the appropriate line from M's /etc/fstab to H's.
/etc/hosts has the appropriate entries, and /etc/exports,



I assume you restarted nfs services after altering /etc/exports on B.

/etc/hosts.allow, /etc/hosts.deny are all OK.



I would double check for misspells and ip addresses.

Service nfs-common is running on H.



Some service running on M which is not running on H.
Firewall on B dropping H packets.

Log into B
su - root
tail -f /var/log/messages

try an rsync from H to see if B gives any better info messages.

You need to compare enabled/running services on H against M. Here is a
script to dump them.

_fn=serv.$(hostname --alias)
systemctl --all -t service | sort -V > $_fn
chkconfig --list >> $_fn 2>&1
echo "Output in $_fn"

Save above 4 lines to dump_serv.
chmod +x dump_serv

run dump_serv on M and H and compare output with the command
diff -bBw serv.whatever_H_is serv.whatever_M_is
Replies Reply to this message
#5 Grimble
July 22nd, 2012 - 11:01 am ET | Report spam
On 20/07/12 22:55, Bit Twister wrote:
On Fri, 20 Jul 2012 17:02:38 +0100, grimble wrote:

Log into B
su - root
tail -f /var/log/messages



That gave the answer:
Jul 22 15:44:57 Bach rpc.mountd[6461]: refused mount request from
haydn.local for /mnt/raid (/): no export entry

The export entry was
/mnt/raid *.gemmills.invalid(no_all_squash,async,secure,no_subtree_check,rw)
when I changed it to
*(no_all_squash,async,secure,no_subtree_check,rw)
and exported it
exporting *:/mnt/raid

the mount worked. Now to find out what's wrong with what I thought was a
proper qualified address - it works elsewhere on the network.
Thanks
Grimble

Grimble
Registered Linux User #450547
Running KDE 4.6.5 on 2.6.39.4-5.1-desktop kernel.
Mandriva Linux release 2011.0 (Official) for i586
Replies Reply to this message
Help Create a new topicNext page Replies Make a reply
Search Make your own search