• Problems with nfs

    From William Unruh@2:250/1 to All on Thu Oct 19 21:52:51 2023
    I am having trouble with nfs mounting I have machines A, which is
    supposed to be an nfs server, and B a client.
    On A I have
    /etc/exports
    /local 142.103.xxx.0/26(no_subtree_check,rw,no_root_squash)
    where B's address and A's address are both in that set of IP addresses.

    On B I have
    /etc/fstab
    A:/local/ /local1/ nfs4 rw,rsize=8192,wsize=8192 0 0

    The directory /local1 exists on B
    B:[root]>ls -la /local1
    total 8
    drwx------ 2 root root 4096 Jan 11 2023 .
    drwxr-xr-x 32 root root 4096 Jan 11 2023 ..

    I now run
    mount /local1
    on B and it times out. I cannot see anything in the /var/log/messages or /var/log/syslog or dmesg on A as to why the mount failed, and similarly
    on B.

    I note that nfs is now version 4.2 Could that have changed something? Is
    this a bug, or more likely a bug sitting in front of the keyboard.

    --- MBSE BBS v1.0.8.4 (Linux-x86_64)
    * Origin: A noiseless patient Spider (2:250/1@fidonet)
  • From Jim@2:250/1 to All on Fri Oct 20 15:48:07 2023
    On Thu, 19 Oct 2023 20:52:51 -0000 (UTC), William Unruh wrote:

    I am having trouble with nfs mounting I have machines A, which is
    supposed to be an nfs server, and B a client.
    On A I have
    /etc/exports
    /local 142.103.xxx.0/26(no_subtree_check,rw,no_root_squash)
    where B's address and A's address are both in that set of IP addresses.

    On B I have
    /etc/fstab
    A:/local/ /local1/ nfs4 rw,rsize=8192,wsize=8192 0 0

    The directory /local1 exists on B
    B:[root]>ls -la /local1
    total 8
    drwx------ 2 root root 4096 Jan 11 2023 .
    drwxr-xr-x 32 root root 4096 Jan 11 2023 ..

    I now run
    mount /local1
    on B and it times out. I cannot see anything in the /var/log/messages or /var/log/syslog or dmesg on A as to why the mount failed, and similarly
    on B.

    I note that nfs is now version 4.2 Could that have changed something? Is
    this a bug, or more likely a bug sitting in front of the keyboard.

    Have you tried using mcc to go to Network Sharing, then to Configure
    NFS Shares, and then to Access NFS shared drives and directories or
    Share drives and directories using NFS, and there clicked on
    Search for new servers (on my machine this takes a long
    time), and then looked at each machine that is listed ?

    Looking at things this way is a PITA, especially if the settings
    have to be revised or created, but it eventually works, for my
    systems at least.

    Cheers!

    jim b.

    --
    UNIX is not user-unfriendly, it merely
    expects users to be computer friendly.

    --- MBSE BBS v1.0.8.4 (Linux-x86_64)
    * Origin: A noiseless patient Spider (2:250/1@fidonet)
  • From William Unruh@2:250/1 to All on Fri Oct 20 19:41:56 2023
    On 2023-10-20, Jim <jim.beard@verizon.net> wrote:
    On Thu, 19 Oct 2023 20:52:51 -0000 (UTC), William Unruh wrote:

    I am having trouble with nfs mounting I have machines A, which is
    supposed to be an nfs server, and B a client.
    On A I have
    /etc/exports
    /local 142.103.xxx.0/26(no_subtree_check,rw,no_root_squash)
    where B's address and A's address are both in that set of IP addresses.

    On B I have
    /etc/fstab
    A:/local/ /local1/ nfs4 rw,rsize=8192,wsize=8192 0 0

    The directory /local1 exists on B
    B:[root]>ls -la /local1
    total 8
    drwx------ 2 root root 4096 Jan 11 2023 .
    drwxr-xr-x 32 root root 4096 Jan 11 2023 ..

    I now run
    mount /local1
    on B and it times out. I cannot see anything in the /var/log/messages or
    /var/log/syslog or dmesg on A as to why the mount failed, and similarly
    on B.

    I note that nfs is now version 4.2 Could that have changed something? Is
    this a bug, or more likely a bug sitting in front of the keyboard.

    Have you tried using mcc to go to Network Sharing, then to Configure
    NFS Shares, and then to Access NFS shared drives and directories or
    Share drives and directories using NFS, and there clicked on
    Search for new servers (on my machine this takes a long
    time), and then looked at each machine that is listed ?

    Looking at things this way is a PITA, especially if the settings
    have to be revised or created, but it eventually works, for my
    systems at least.

    Unfortunately I can only access A and B remotely, and mcc--> NetworkSharing does not have a text version. (ie diskdrake --nfs only has a gtk
    version and claims it cannot run in a console-- even though I have X
    sharing (Display=10.0)

    --- MBSE BBS v1.0.8.4 (Linux-x86_64)
    * Origin: A noiseless patient Spider (2:250/1@fidonet)
  • From Markus Robert Kessler@2:250/1 to All on Wed Nov 1 07:09:48 2023
    On Fri, 20 Oct 2023 18:41:56 -0000 (UTC) William Unruh wrote:

    On 2023-10-20, Jim <jim.beard@verizon.net> wrote:
    On Thu, 19 Oct 2023 20:52:51 -0000 (UTC), William Unruh wrote:

    I am having trouble with nfs mounting I have machines A, which is
    supposed to be an nfs server, and B a client.
    On A I have /etc/exports /local
    142.103.xxx.0/26(no_subtree_check,rw,no_root_squash) where B's address
    and A's address are both in that set of IP addresses.

    On B I have /etc/fstab A:/local/ /local1/ nfs4
    rw,rsize=8192,wsize=8192 0 0

    The directory /local1 exists on B B:[root]>ls -la /local1 total 8
    drwx------ 2 root root 4096 Jan 11 2023 .
    drwxr-xr-x 32 root root 4096 Jan 11 2023 ..

    I now run mount /local1 on B and it times out. I cannot see anything
    in the /var/log/messages or /var/log/syslog or dmesg on A as to why
    the mount failed, and similarly on B.

    I note that nfs is now version 4.2 Could that have changed something?
    Is this a bug, or more likely a bug sitting in front of the keyboard.

    Have you tried using mcc to go to Network Sharing, then to Configure
    NFS Shares, and then to Access NFS shared drives and directories or
    Share drives and directories using NFS, and there clicked on Search for
    new servers (on my machine this takes a long time), and then looked at
    each machine that is listed ?

    Looking at things this way is a PITA, especially if the settings have
    to be revised or created, but it eventually works, for my systems at
    least.

    Unfortunately I can only access A and B remotely, and mcc-->
    NetworkSharing does not have a text version. (ie diskdrake --nfs only
    has a gtk version and claims it cannot run in a console-- even though I
    have X sharing (Display=10.0)

    Looks like a firewall issue -- are you sure that the needed ports are
    open?

    BR,
    Markus

    --- MBSE BBS v1.0.8.4 (Linux-x86_64)
    * Origin: A noiseless patient Spider (2:250/1@fidonet)
  • From William Unruh@2:250/1 to All on Thu Nov 2 14:24:50 2023
    On 2023-11-01, Markus Robert Kessler <no_reply@dipl-ing-kessler.de> wrote:
    On Fri, 20 Oct 2023 18:41:56 -0000 (UTC) William Unruh wrote:

    On 2023-10-20, Jim <jim.beard@verizon.net> wrote:
    On Thu, 19 Oct 2023 20:52:51 -0000 (UTC), William Unruh wrote:

    I am having trouble with nfs mounting I have machines A, which is
    supposed to be an nfs server, and B a client.
    On A I have /etc/exports /local
    142.103.xxx.0/26(no_subtree_check,rw,no_root_squash) where B's address >>>> and A's address are both in that set of IP addresses.

    On B I have /etc/fstab A:/local/ /local1/ nfs4
    rw,rsize=8192,wsize=8192 0 0

    The directory /local1 exists on B B:[root]>ls -la /local1 total 8
    drwx------ 2 root root 4096 Jan 11 2023 .
    drwxr-xr-x 32 root root 4096 Jan 11 2023 ..

    I now run mount /local1 on B and it times out. I cannot see anything
    in the /var/log/messages or /var/log/syslog or dmesg on A as to why
    the mount failed, and similarly on B.

    I note that nfs is now version 4.2 Could that have changed something?
    Is this a bug, or more likely a bug sitting in front of the keyboard.

    Have you tried using mcc to go to Network Sharing, then to Configure
    NFS Shares, and then to Access NFS shared drives and directories or
    Share drives and directories using NFS, and there clicked on Search for
    new servers (on my machine this takes a long time), and then looked at
    each machine that is listed ?

    Looking at things this way is a PITA, especially if the settings have
    to be revised or created, but it eventually works, for my systems at
    least.

    Unfortunately I can only access A and B remotely, and mcc-->
    NetworkSharing does not have a text version. (ie diskdrake --nfs only
    has a gtk version and claims it cannot run in a console-- even though I
    have X sharing (Display=10.0)

    Looks like a firewall issue -- are you sure that the needed ports are
    open?

    Interesting possibility. But doing a tcpdump shows that the server is
    receiving nfs requests from the client and responding

    Here is the tcpdump on client with host server. And after this there is
    no further packets seen from client or server regarding any of those
    ports. I do not know what the server response is, but it seems to
    something like "get lost" because of the absense of any other packets.
    As I said there seems to be noting in /var/log/{messages,syslog} or
    dmesg regarding this attempt.
    07:09:45.339496 IP client.778 > server.nfs: Flags [.], ack 2868036885, win 501, options [nop,nop,TS val 1057430033 ecr 610219865], length 0
    07:09:45.339747 IP server.nfs > client.778: Flags [.], ack 1, win 501, options [nop,nop,TS val 610281305 ecr 95893137], length 0


    --- MBSE BBS v1.0.8.4 (Linux-x86_64)
    * Origin: A noiseless patient Spider (2:250/1@fidonet)
  • From David W. Hodgins@2:250/1 to All on Thu Nov 2 16:50:38 2023
    On Thu, 02 Nov 2023 10:24:50 -0400, William Unruh <unruh@invalid.ca> wrote:

    On 2023-11-01, Markus Robert Kessler <no_reply@dipl-ing-kessler.de> wrote:
    On Fri, 20 Oct 2023 18:41:56 -0000 (UTC) William Unruh wrote:

    On 2023-10-20, Jim <jim.beard@verizon.net> wrote:
    On Thu, 19 Oct 2023 20:52:51 -0000 (UTC), William Unruh wrote:

    I am having trouble with nfs mounting I have machines A, which is
    supposed to be an nfs server, and B a client.
    On A I have /etc/exports /local
    142.103.xxx.0/26(no_subtree_check,rw,no_root_squash) where B's address >>>>> and A's address are both in that set of IP addresses.

    On B I have /etc/fstab A:/local/ /local1/ nfs4
    rw,rsize=8192,wsize=8192 0 0

    The directory /local1 exists on B B:[root]>ls -la /local1 total 8
    drwx------ 2 root root 4096 Jan 11 2023 .
    drwxr-xr-x 32 root root 4096 Jan 11 2023 ..

    I now run mount /local1 on B and it times out. I cannot see anything >>>>> in the /var/log/messages or /var/log/syslog or dmesg on A as to why
    the mount failed, and similarly on B.

    I note that nfs is now version 4.2 Could that have changed something? >>>>> Is this a bug, or more likely a bug sitting in front of the keyboard. >>>>
    Have you tried using mcc to go to Network Sharing, then to Configure
    NFS Shares, and then to Access NFS shared drives and directories or
    Share drives and directories using NFS, and there clicked on Search for >>>> new servers (on my machine this takes a long time), and then looked at >>>> each machine that is listed ?

    Looking at things this way is a PITA, especially if the settings have
    to be revised or created, but it eventually works, for my systems at
    least.

    Unfortunately I can only access A and B remotely, and mcc-->
    NetworkSharing does not have a text version. (ie diskdrake --nfs only
    has a gtk version and claims it cannot run in a console-- even though I
    have X sharing (Display=10.0)

    Looks like a firewall issue -- are you sure that the needed ports are
    open?

    Interesting possibility. But doing a tcpdump shows that the server is receiving nfs requests from the client and responding

    Here is the tcpdump on client with host server. And after this there is
    no further packets seen from client or server regarding any of those
    ports. I do not know what the server response is, but it seems to
    something like "get lost" because of the absense of any other packets.
    As I said there seems to be noting in /var/log/{messages,syslog} or
    dmesg regarding this attempt.
    07:09:45.339496 IP client.778 > server.nfs: Flags [.], ack 2868036885, win 501, options [nop,nop,TS val 1057430033 ecr 610219865], length 0
    07:09:45.339747 IP server.nfs > client.778: Flags [.], ack 1, win 501, options [nop,nop,TS val 610281305 ecr 95893137], length 0

    It's working for me running m9 in vb guests, set up using mcc.

    In m9 x86_64 vb guest ...
    # cat /etc/exports
    # generated by drakhosts.pl
    /usr 192.168.10.0/24(no_all_squash,async,secure,no_subtree_check,ro)
    [root@x9v ~]# cat /var/lib/nfs/etab
    /usr 192.168.10.0/24(ro,async,wdelay,hide,nocrossmnt,secure,root_squash,no_all_squash,no_subtree_check,secure_locks,acl,no_pnfs,anonuid=65534,anongid=65534,sec=sys,ro,secure,root_squash,no_all_squash)

    In i586 vb guest ...
    [dave@i9v ~]$ grep nfs /etc/fstab
    x9v.hodgins.homeip.net:/usr /mnt/usr nfs wsize=8192,nosuid,rsize=8192,soft 0 0 [dave@i9v ~]$ grep nfs /proc/mounts
    x9v.hodgins.homeip.net:/usr /mnt/usr nfs4 rw,nosuid,relatime,vers=4.2,rsize=8192,wsize=8192,namlen=255,soft,proto=tcp,timeo=600,retrans=2,sec=sys,clientaddr=192.168.10.123,local_lock=none,addr=192.168.10.122 0 0
    [dave@i9v ~]$ ll /mnt/usr|head -n 3
    total 372
    drwxr-xr-x 4 root root 118784 Nov 2 11:43 bin/
    drwxr-xr-x 2 root root 4096 Sep 6 2022 etc/

    I'm not sure how to debug this further, as I only ever use it when testing it. I normally only use sshfs.

    Regards, Dave Hodgins

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