• nfs mount refusing to mount

    From William Unruh@2:250/1 to All on Wed Jan 11 07:21:37 2023
    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?

    --- MBSE BBS v1.0.8.2 (Linux-x86_64)
    * Origin: A noiseless patient Spider (2:250/1@fidonet)
  • From Bit Twister@2:250/1 to All on Wed Jan 11 18:02:46 2023
    On Wed, 11 Jan 2023 07:21:37 -0000 (UTC), William Unruh wrote:
    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


    --- MBSE BBS v1.0.8.2 (Linux-x86_64)
    * Origin: A noiseless patient Spider (2:250/1@fidonet)
  • From David W. Hodgins@2:250/1 to All on Sat Jan 14 01:12:00 2023
    On Wed, 11 Jan 2023 02:21:37 -0500, William Unruh <unruh@invalid.ca> wrote:

    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

    --- MBSE BBS v1.0.8.2 (Linux-x86_64)
    * Origin: A noiseless patient Spider (2:250/1@fidonet)
  • From Bit Twister@2:250/1 to All on Sat Jan 14 14:26:03 2023
    On Fri, 13 Jan 2023 20:12:00 -0500, David W. Hodgins wrote:

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

    --- MBSE BBS v1.0.8.2 (Linux-x86_64)
    * Origin: A noiseless patient Spider (2:250/1@fidonet)
  • From David W. Hodgins@2:250/1 to All on Sat Jan 14 20:25:24 2023
    On Sat, 14 Jan 2023 09:26:03 -0500, Bit Twister <BitTwister@mouse-potato.com> wrote:

    On Fri, 13 Jan 2023 20:12:00 -0500, David W. Hodgins wrote:

    # 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

    --- MBSE BBS v1.0.8.2 (Linux-x86_64)
    * Origin: A noiseless patient Spider (2:250/1@fidonet)
  • From William Unruh@2:250/1 to All on Sat Jan 14 21:54:25 2023
    On 2023-01-14, David W. Hodgins <dwhodgins@nomail.afraid.org> wrote:

    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

    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.

    # 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

    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.

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


    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.

    --- MBSE BBS v1.0.8.2 (Linux-x86_64)
    * Origin: A noiseless patient Spider (2:250/1@fidonet)
  • From William Unruh@2:250/1 to All on Sat Jan 14 22:00:08 2023
    On 2023-01-14, Bit Twister <BitTwister@mouse-potato.com> wrote:
    On Fri, 13 Jan 2023 20:12:00 -0500, David W. Hodgins wrote:

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


    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.

    --- MBSE BBS v1.0.8.2 (Linux-x86_64)
    * Origin: A noiseless patient Spider (2:250/1@fidonet)
  • From David W. Hodgins@2:250/1 to All on Sat Jan 14 22:16:06 2023
    On Sat, 14 Jan 2023 17:00:08 -0500, William Unruh <unruh@invalid.ca> wrote:
    On 2023-01-14, Bit Twister <BitTwister@mouse-potato.com> wrote:
    On Fri, 13 Jan 2023 20:12:00 -0500, David W. Hodgins wrote:

    # 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

    --- MBSE BBS v1.0.8.2 (Linux-x86_64)
    * Origin: A noiseless patient Spider (2:250/1@fidonet)
  • From Bit Twister@2:250/1 to All on Sat Jan 14 23:18:03 2023
    On Sat, 14 Jan 2023 15:25:24 -0500, David W. Hodgins wrote:
    On Sat, 14 Jan 2023 09:26:03 -0500, Bit Twister <BitTwister@mouse-potato.com> wrote:

    On Fri, 13 Jan 2023 20:12:00 -0500, David W. Hodgins wrote:

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


    --- MBSE BBS v1.0.8.2 (Linux-x86_64)
    * Origin: A noiseless patient Spider (2:250/1@fidonet)