Discussion:
nfs mount refusing to mount
(too old to reply)
William Unruh
2023-01-11 07:21:37 UTC
Permalink
I have a Mga8 server and an MGA8 client.
On the server the directory is exported. On the client it is in /etc/fstab.
But when I do mount -a I get an error on the client.
buton:10.0[root]>mount /usr/local
mount.nfs: mounting indo:/local/usrlocal failed, reason given by server: No such file or directory

In /etc/fstab on the client I have
indo:/local/usrlocal /usr/local nfs nofail,rw,rsize=8192,wsize=8192,soft,bg 0 0

On the server I have

ls -ld /local/usrlocal
drwxr-xr-x 76 root root 4096 Jul 31 2020 /local/usrlocal/
so the directory certainly exists.

In /etc/exports
/local/usrlocal 154.103.234.0/26(fsid=21,no_subtree_check,rw,no_root_squash)

(and yes the client in in that net block)
In /var/log/syslog I just get
Jan 10 21:34:59 indo rpc.mountd[3987]: authenticated mount request from 154.103.234.24:735 for /local/usrlocal (/local/usrlocal)
and no other error message.

I have given one sample but all the mounts from buton and from other clients are refused in the same way
or with
access denied by the server


What could be the problem?
Bit Twister
2023-01-11 18:02:46 UTC
Permalink
Post by William Unruh
I have a Mga8 server and an MGA8 client.
On the server the directory is exported. On the client it is in /etc/fstab.
But when I do mount -a I get an error on the client.
buton:10.0[root]>mount /usr/local
mount.nfs: mounting indo:/local/usrlocal failed, reason given by server: No such file or directory
In /etc/fstab on the client I have
indo:/local/usrlocal /usr/local nfs nofail,rw,rsize=8192,wsize=8192,soft,bg 0 0
On the server I have
ls -ld /local/usrlocal
drwxr-xr-x 76 root root 4096 Jul 31 2020 /local/usrlocal/
so the directory certainly exists.
In /etc/exports
/local/usrlocal 154.103.234.0/26(fsid=21,no_subtree_check,rw,no_root_squash)
(and yes the client in in that net block)
In /var/log/syslog I just get
Jan 10 21:34:59 indo rpc.mountd[3987]: authenticated mount request from 154.103.234.24:735 for /local/usrlocal (/local/usrlocal)
and no other error message.
I have given one sample but all the mounts from buton and from other clients are refused in the same way
or with
access denied by the server
What could be the problem?
snippet from my hard copy brain boot follows:
$ uh nfs debug
_nfs_mount_debugging_information_server_ exportfs -v
_nfs_mount_debugging_information_ rpcinfo -p
_nfs_mount_debugging_information_server_ showmount -e
_nfs_mount_debugging_information_client_ showmount -e server_node_here
nfs_mount_debugging_information_client_ mount | grep :
_nfs_remount_debugging_information_server_ exportfs -a -r
David W. Hodgins
2023-01-14 01:12:00 UTC
Permalink
Post by William Unruh
I have a Mga8 server and an MGA8 client.
On the server the directory is exported. On the client it is in /etc/fstab.
But when I do mount -a I get an error on the client.
buton:10.0[root]>mount /usr/local
mount.nfs: mounting indo:/local/usrlocal failed, reason given by server: No such file or directory
In /etc/fstab on the client I have
indo:/local/usrlocal /usr/local nfs nofail,rw,rsize=8192,wsize=8192,soft,bg 0 0
On the server I have
ls -ld /local/usrlocal
drwxr-xr-x 76 root root 4096 Jul 31 2020 /local/usrlocal/
so the directory certainly exists.
In /etc/exports
/local/usrlocal 154.103.234.0/26(fsid=21,no_subtree_check,rw,no_root_squash)
(and yes the client in in that net block)
In /var/log/syslog I just get
Jan 10 21:34:59 indo rpc.mountd[3987]: authenticated mount request from 154.103.234.24:735 for /local/usrlocal (/local/usrlocal)
and no other error message.
I have given one sample but all the mounts from buton and from other clients are refused in the same way
or with
access denied by the server
What could be the problem?
According to "whois 154.103.234.0", the address is for an isp in the country Sudan.

On a lan where nfs working, I have on the server ...
# exportfs -v
point 1
point 2
/s3/Downloads 192.168.10.0/24(async,wdelay,hide,no_subtree_check,sec=sys,ro,secure,root_squash,no_all_squash)

# inxi -i|grep v4
IP v4: 192.168.10.2/24 scope: global

# cat /etc/exports
# generated by drakhosts.pl
/s3/Downloads/ 192.168.10.0/24(no_all_squash,async,secure,no_subtree_check,ro)

# ll -d /s3/Downloads
drwxr-xr-x 39 dave dave 12288 Jan 11 15:38 /s3/Downloads/

On the client I have ...
# grep nfs /etc/fstab
x3.hodgins.homeip.net:/s3/Downloads /mnt/Downloads nfs rsize=8192,nosuid,wsize=8192,soft 0 0

# host x3.hodgins.homeip.net
x3.hodgins.homeip.net has address 192.168.10.2

Double check the addresses, and that the filesystem containing the shared directory
is mounted before nfs tries to start.

Also make sure the firewall isn't blocking the connection.

Regards, Dave Hodgins
Bit Twister
2023-01-14 14:26:03 UTC
Permalink
Post by David W. Hodgins
# cat /etc/exports
# generated by drakhosts.pl
/s3/Downloads/ 192.168.10.0/24(no_all_squash,async,secure,no_subtree_check,ro)
Sounds like an update/feature request is in order for drakhosts.pl

FYI: You can create a /etc/exports.d directory and an exports drop in
file with just your changes/valuers, for example xx__local.exports

That way you not be impacted with a new release of /etc/exports.
David W. Hodgins
2023-01-14 20:25:24 UTC
Permalink
Post by Bit Twister
Post by David W. Hodgins
# cat /etc/exports
# generated by drakhosts.pl
/s3/Downloads/ 192.168.10.0/24(no_all_squash,async,secure,no_subtree_check,ro)
Sounds like an update/feature request is in order for drakhosts.pl
FYI: You can create a /etc/exports.d directory and an exports drop in
file with just your changes/valuers, for example xx__local.exports
That way you not be impacted with a new release of /etc/exports.
rpm will not overwrite a modified /etc/exports. The purpose of /etc/exports.d
is to make it simpler to use the /etc/exports.rpmnew file if desired.

Regards, Dave Hodgins
Bit Twister
2023-01-14 23:18:03 UTC
Permalink
Post by David W. Hodgins
Post by Bit Twister
Post by David W. Hodgins
# cat /etc/exports
# generated by drakhosts.pl
/s3/Downloads/ 192.168.10.0/24(no_all_squash,async,secure,no_subtree_check,ro)
Sounds like an update/feature request is in order for drakhosts.pl
FYI: You can create a /etc/exports.d directory and an exports drop in
file with just your changes/valuers, for example xx__local.exports
That way you not be impacted with a new release of /etc/exports.
rpm will not overwrite a modified /etc/exports. The purpose of /etc/exports.d
is to make it simpler to use the /etc/exports.rpmnew file if desired.
With the /etc/exports.d methodology there would be no /etc/exports.rpmnew
or extra step to fold in your change.

Also less work and easier for clean installs. Just create the drop in export
file and restart nfs service.

William Unruh
2023-01-14 22:00:08 UTC
Permalink
Post by Bit Twister
Post by David W. Hodgins
# cat /etc/exports
# generated by drakhosts.pl
/s3/Downloads/ 192.168.10.0/24(no_all_squash,async,secure,no_subtree_check,ro)
Sounds like an update/feature request is in order for drakhosts.pl
No such file exists on my system. although /usr/libexec/drakhosts does
and is a perl file.
Post by Bit Twister
FYI: You can create a /etc/exports.d directory and an exports drop in
file with just your changes/valuers, for example xx__local.exports
That way you not be impacted with a new release of /etc/exports.
I think urpmi does not install a new /etc/exports if an old one
exists.
David W. Hodgins
2023-01-14 22:16:06 UTC
Permalink
Post by William Unruh
Post by Bit Twister
Post by David W. Hodgins
# cat /etc/exports
# generated by drakhosts.pl
/s3/Downloads/ 192.168.10.0/24(no_all_squash,async,secure,no_subtree_check,ro)
Sounds like an update/feature request is in order for drakhosts.pl
No such file exists on my system. although /usr/libexec/drakhosts does
and is a perl file.
The /etc/exports file or /etc/exports.d/* files is/are used by nfs on the
server.

Regards, Dave Hodgins
William Unruh
2023-01-14 21:54:25 UTC
Permalink
Post by David W. Hodgins
According to "whois 154.103.234.0", the address is for an isp in the country Sudan.
Explained by my not wanting to avertise my own IP
Post by David W. Hodgins
On a lan where nfs working, I have on the server ...
# exportfs -v
point 1
point 2
/s3/Downloads 192.168.10.0/24(async,wdelay,hide,no_subtree_check,sec=sys,ro,secure,root_squash,no_all_squash)
OK, don't know about half of those options. Not sure any could explain
the problems.
Post by David W. Hodgins
# inxi -i|grep v4
IP v4: 192.168.10.2/24 scope: global
# cat /etc/exports
# generated by drakhosts.plo
/s3/Downloads/ 192.168.10.0/24(no_all_squash,async,secure,no_subtree_check,ro)
s
# ll -d /s3/Downloads
drwxr-xr-x 39 dave dave 12288 Jan 11 15:38 /s3/Downloads/
Permission have ben checked many times
Post by David W. Hodgins
On the client I have ...
# grep nfs /etc/fstab
x3.hodgins.homeip.net:/s3/Downloads /mnt/Downloads nfs rsize=8192,nosuid,wsize=8192,soft 0 0
Yup fstab seems sensible.
Post by David W. Hodgins
# host x3.hodgins.homeip.net
x3.hodgins.homeip.net has address 192.168.10.2
Double check the addresses, and that the filesystem containing the shared directory
is mounted before nfs tries to start.
Have done that many times.
Post by David W. Hodgins
Also make sure the firewall isn't blocking the connection.
Have checked. Also things worked until I rebooted last Monday.
I finally got tired of tryiny to chace this down so rebooted again. This
time almost everything worked except on one client. There a couple of
the mounts gave me "permission denied) but I managed to get arond that.

Very bizzare.
Loading...