• NFS problem

    From grimble@2:250/1 to All on Wed Mar 17 14:44:06 2021
    This laptop has suddenly stopped communicating with anything on my LAN
    except the gateway. On looking around:
    1, /etc/hosts was empty except for localhost entries. I have rebuilt it. 2, rpcinfo -p lists only portmapper entries, no nfs or mountd entries
    3. rpcbind,service is active/running
    4. nfs is not running - systemctl start nfs
    Failed to start nfs.service: Unit nfs.service not found.

    Don't know what to do next. Please help
    --
    Grimble
    Machine 'mozart' running Plasma 5.15.4 on 5.10.20-desktop-2.mga7 kernel.
    Mageia release 7 (Official) for x86_64

    --- MBSE BBS v1.0.7.21 (GNU/Linux-x86_64)
    * Origin: A noiseless patient Spider (2:250/1@fidonet)
  • From Bit Twister@2:250/1 to All on Wed Mar 17 17:17:46 2021
    On Wed, 17 Mar 2021 14:44:06 +0000, grimble wrote:
    This laptop has suddenly stopped communicating with anything on my LAN
    except the gateway. On looking around:
    1, /etc/hosts was empty except for localhost entries. I have rebuilt it.
    2, rpcinfo -p lists only portmapper entries, no nfs or mountd entries
    3. rpcbind,service is active/running
    4. nfs is not running - systemctl start nfs
    Failed to start nfs.service: Unit nfs.service not found.

    Yup, you might want to run
    systemctl list-unit-files | grep nfs
    to get list of units to enable/start

    Don't know what to do next. Please help

    Helps if you were to provide some information like Mageia release and
    whatnot about the client and server.

    Your server needs configuration files indicating what is to be served
    and your client needs mount points in /etc/fstab.

    Old school admins would tell you to modify /etc/exports/ :(
    I use .export files in /etc/exports.d to tell the server what to export.

    $ cat /etc/exports.d/xx__local.exports
    #****** /etc/exports.d/xx__local.exports *********************
    #
    # Created by /local/bin/export_changes Tue 09 Feb 21:41 2021
    # See man exports for details
    #
    # / tb(no_root_squash,sync,no_subtree_check,rw)
    # /accounts tb(no_root_squash,sync,no_subtree_check,rw)
    # /local tb(no_root_squash,sync,no_subtree_check,rw)
    # /misc tb(no_root_squash,sync,no_subtree_check,rw)
    /spare tb(no_root_squash,sync,no_subtree_check,rw)
    #
    # After changing this file
    # systemctl restart nfs-server.service
    # systemctl status nfs-server.service
    #
    #****** end /etc/exports.d/xx__local.exports ******************

    Debugging commands on sever:
    exportfs -v
    exportfs -a -r
    rpcinfo -p
    showmount -e
    cat /etc/fstab
    cat /etc/hosts
    cat /etc/exports.d/*
    cat /etc/exports

    Debugging commands on client:
    showmount -e server_node_here
    mount | grep :
    cat /etc/fstab
    cat /etc/hosts


    --- MBSE BBS v1.0.7.21 (GNU/Linux-x86_64)
    * Origin: A noiseless patient Spider (2:250/1@fidonet)
  • From David W. Hodgins@2:250/1 to All on Wed Mar 17 23:16:46 2021
    On Wed, 17 Mar 2021 10:44:06 -0400, grimble <grimble@nomail.afraid.org> wrote:

    This laptop has suddenly stopped communicating with anything on my LAN
    except the gateway. On looking around:

    On the lan or with the internet?

    1, /etc/hosts was empty except for localhost entries. I have rebuilt it.

    What changed it?

    2, rpcinfo -p lists only portmapper entries, no nfs or mountd entries
    3. rpcbind,service is active/running
    4. nfs is not running - systemctl start nfs
    Failed to start nfs.service: Unit nfs.service not found.

    Don't know what to do next. Please help

    You need to figure out how some files that only root has write access to were modified.

    If a typo resulting in accidentally deleting a bunch of files or modifying them,
    you'll need to figure out what was done so the files needing to be restored, recreated, or modified can be identified.

    Assuming it was a type while working as root /root/.bash_history may show the command that resulted in the files being deleted or overwritten.

    Other things to check are full filesystems (check "df -h"), or hardware errors (check "journalctl -b --no-hostname").

    Regards, Dave Hodgins

    --
    Change dwhodgins@nomail.afraid.org to davidwhodgins@teksavvy.com for
    email replies.

    --- MBSE BBS v1.0.7.21 (GNU/Linux-x86_64)
    * Origin: A noiseless patient Spider (2:250/1@fidonet)
  • From grimble@2:250/1 to All on Fri Mar 19 20:20:13 2021
    On 17/03/2021 14:44, grimble wrote:
    This laptop has suddenly stopped communicating with anything on my LAN except the gateway. On looking around:
    1,    /etc/hosts was empty except for localhost entries. I have rebuilt it.
    2,    rpcinfo -p lists only portmapper entries, no nfs or mountd entries 3.    rpcbind,service is active/running
    4.    nfs is not running - systemctl start  nfs
    Failed to start nfs.service: Unit nfs.service not found.

    Don't know what to do next. Please help
    BT, Dave: thanks for your replies. Here are the results of your various questions:
    1. $ systemctl list-unit-files | grep nfs
    proc-fs-nfsd.mount static

    var-lib-nfs-rpc_pipefs.mount static

    nfs-blkmap.service
    disabled
    nfs-convert.service
    disabled
    nfs-idmapd.service static

    nfs-mountd.service static

    nfs-server.service enabled

    nfs-utils.service static

    nfs-client.target enabled
    2, Release info in the sig block
    3. /etc/fstab contains the relevant entries
    192.168.1.11:/accounts /mnt/accounts nfs
    rsize=8192,wsize=8192,nosuid,soft 0 0
    192.168.1.11:/local /mnt/local nfs nosuid,wsize=8192,rsize=8192,soft 0 0 192.168.1.6/data /mnt/nasdata cifs vers=1.0,credentials=/etc/samba/auth.192.168.1.6.graeme 0 0 192.168.1.9:/mnt/raid /mnt/raid nfs rsize=8192,nosuid,wsize=8192,soft 0 0
    4, As I understand it, this laptop is a NFS client, because it is trying to access directories on other machines that are shared, Therefore /etc/exports is not relevant
    5. I can find nothing in /root/.bash_history that could lead to changes to /etc/hosts
    6. No partitions are more than 70% full.
    7. In addition to various routers/extenders, my LAN supports two Mageia
    7 PCs, a NAS, 2 printers and 2 Raspberry PIs. I can ping none of them
    except one PI (all of them are ping-able from the other Mageia PCs)
    8. "MCC/Network Sharing/Access NFS shared drives" recognises the other 2 Mageia systems (because of /etc/fstab entries?) but doesn't resolve the
    shared directories.

    I hope you two experts can figure out what tests to try next.
    With thanks,
    --
    Grimble
    Registered Linux User #450547
    Machine 'mozart' running Plasma 5.15.4 on 5.10.20-desktop-2.mga7 kernel.
    Mageia release 7 (Official) for x86_64

    --- MBSE BBS v1.0.7.21 (GNU/Linux-x86_64)
    * Origin: A noiseless patient Spider (2:250/1@fidonet)
  • From Bit Twister@2:250/1 to All on Sat Mar 20 01:20:23 2021
    On Fri, 19 Mar 2021 20:20:13 +0000, grimble wrote:
    On 17/03/2021 14:44, grimble wrote:
    This laptop has suddenly stopped communicating with anything on my LAN
    except the gateway. On looking around:
    1,    /etc/hosts was empty except for localhost entries. I have rebuilt it.
    2,    rpcinfo -p lists only portmapper entries, no nfs or mountd entries >> 3.    rpcbind,service is active/running
    4.    nfs is not running - systemctl start  nfs
    Failed to start nfs.service: Unit nfs.service not found.

    Don't know what to do next. Please help
    BT, Dave: thanks for your replies. Here are the results of your various questions:
    1. $ systemctl list-unit-files | grep nfs
    proc-fs-nfsd.mount static
    var-lib-nfs-rpc_pipefs.mount static
    nfs-blkmap.service disabled
    nfs-convert.service disabled
    nfs-idmapd.service static
    nfs-mountd.service static
    nfs-server.service enabled
    nfs-utils.service static
    nfs-client.target enabled

    You do know you have to do a little thinking when you read replies.

    Your fist problem you had posted was that you were unable to start
    the nfs service and I gave you the method to find the service name
    and all you did was show us the command output.

    2, Release info in the sig block

    Yes, but you provided no information about the Servers.

    3. /etc/fstab contains the relevant entries
    192.168.1.11:/accounts /mnt/accounts nfs rsize=8192,wsize=8192,nosuid,soft 0 0
    192.168.1.11:/local /mnt/local nfs nosuid,wsize=8192,rsize=8192,soft 0 0 192.168.1.6/data /mnt/nasdata cifs vers=1.0,credentials=/etc/samba/auth.192.168.1.6.graeme 0 0
    192.168.1.9:/mnt/raid /mnt/raid nfs rsize=8192,nosuid,wsize=8192,soft 0 0

    In the future you might consider adding an occasional carriage return
    for readability.

    4, As I understand it, this laptop is a NFS client, because it is trying
    to access directories on other machines that are shared, Therefore /etc/exports is not relevant

    Yes very true, but the point is you have to verify the Servers are/have
    mounted the directories for client usage.

    5. I can find nothing in /root/.bash_history that could lead to changes
    to /etc/hosts

    Since /etc/fstab is not using FQDN, that is not part of the nfs problem.

    6. No partitions are more than 70% full.

    7. In addition to various routers/extenders, my LAN supports two Mageia
    7 PCs, a NAS, 2 printers and 2 Raspberry PIs. I can ping none of them
    except one PI (all of them are ping-able from the other Mageia PCs)

    ok, My first guess is the client firewall with name servers as second
    guess with routing as third suspects.

    You need to ping other nodes by ip address and if fails I would check
    the firewall then routing

    systemctl status shorewall
    route -n
    cat /etc/resolv.conf

    8. "MCC/Network Sharing/Access NFS shared drives" recognises the other 2 Mageia systems (because of /etc/fstab entries?) but doesn't resolve the shared directories.

    Having never played with MCC/Network Sharing/Access I do not know
    what that means.

    I find it handy to put my login id in the systemd-journal group.
    By doing so. next login allows you to see the journal contents without
    needing to be root. I also find it handy to have /sbin and /usr/sbin
    in $PATH.

    In either event, you need to have a terminal running journactl when
    trying the nfs mount on the client,

    Terminal 1: journalctl --no-hostname --no-pager
    Terminal 2: mount /accounts


    --- MBSE BBS v1.0.7.21 (GNU/Linux-x86_64)
    * Origin: A noiseless patient Spider (2:250/1@fidonet)
  • From grimble@2:250/1 to All on Sat Mar 20 14:21:42 2021
    On 20/03/2021 01:20, Bit Twister wrote:
    On Fri, 19 Mar 2021 20:20:13 +0000, grimble wrote:
    On 17/03/2021 14:44, grimble wrote:
    This laptop has suddenly stopped communicating with anything on my LAN
    except the gateway. On looking around:
    1,    /etc/hosts was empty except for localhost entries. I have rebuilt it.
    2,    rpcinfo -p lists only portmapper entries, no nfs or mountd entries >>> 3.    rpcbind,service is active/running
    4.    nfs is not running - systemctl start  nfs
    Failed to start nfs.service: Unit nfs.service not found.

    Don't know what to do next. Please help
    BT, Dave: thanks for your replies. Here are the results of your various
    questions:
    1. $ systemctl list-unit-files | grep nfs
    proc-fs-nfsd.mount static
    var-lib-nfs-rpc_pipefs.mount static
    nfs-blkmap.service disabled
    nfs-convert.service disabled
    nfs-idmapd.service static
    nfs-mountd.service static
    nfs-server.service enabled
    nfs-utils.service static
    nfs-client.target enabled

    You do know you have to do a little thinking when you read replies.

    <Snip>
    My mistake - I thought _you_ wanted to see the output. Not knowing what
    the status was supposed to be, I compared with the list from another PC
    and found that nfs-client.target wasn't enabled (it is now). That and a
    start nfs-client.target (systemctl didn't complain) seems to have sorted things out.
    Thanks,
    --
    Grimble
    Registered Linux User #450547
    Machine 'mozart' running Plasma 5.15.4 on 5.10.20-desktop-2.mga7 kernel.
    Mageia release 7 (Official) for x86_64

    --- MBSE BBS v1.0.7.21 (GNU/Linux-x86_64)
    * Origin: A noiseless patient Spider (2:250/1@fidonet)
  • From Grimble@2:250/1 to All on Sat Mar 20 15:07:32 2021
    On 20/03/2021 01:20, Bit Twister wrote:
    On Fri, 19 Mar 2021 20:20:13 +0000, grimble wrote:
    On 17/03/2021 14:44, grimble wrote:
    This laptop has suddenly stopped communicating with anything on my LAN
    except the gateway. On looking around:
    1,    /etc/hosts was empty except for localhost entries. I have rebuilt it.
    2,    rpcinfo -p lists only portmapper entries, no nfs or mountd entries >>> 3.    rpcbind,service is active/running
    4.    nfs is not running - systemctl start  nfs
    Failed to start nfs.service: Unit nfs.service not found.

    Don't know what to do next. Please help
    BT, Dave: thanks for your replies. Here are the results of your various
    questions:
    1. $ systemctl list-unit-files | grep nfs
    proc-fs-nfsd.mount static
    var-lib-nfs-rpc_pipefs.mount static
    nfs-blkmap.service disabled
    nfs-convert.service disabled
    nfs-idmapd.service static
    nfs-mountd.service static
    nfs-server.service enabled
    nfs-utils.service static
    nfs-client.target enabled

    You do know you have to do a little thinking when you read replies.
    < snip >
    My mistake - I thought _you_ wanted to see the results. I assumed nfs-client.target needed to be enabled (and started?). It is now, and eventually all seems back to normal.
    Thanks

    --
    Grimble
    Machine 'Handel' running Plasma 5.15.4 on 5.10.19-desktop-1.mga7 kernel.
    Mageia release 7 (Official) for x86_64

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