nfs-shares confused

Ask questions about Arch Linux ARM. Please search before making a new topic.

nfs-shares confused

Postby holzboa » Tue Aug 03, 2021 2:08 pm

I run Arch on a Zyxel NSA325v2 installing from https://archlinuxarm.org/platforms/armv5/zyxel-nsa325.
Thanks for the image although the Zyxel firmware worked good for me as well.
This USB-Boot worked only 1 time, all following attempts failed (?). Looks like the NSA doesn't like USB-Boot any more :(

The system seems to work fine after I discovered lvm and got the 2 3TB HDD's working the way I wanted (first HDD gets partitioned with MBR partition table so you can't expand it to 2,73TB). Now i got a 5,4TB lvm volume available!
My second 3TB was gpt/lvm partitioned - surprising to me the mix of mbr and gpt wasn't a problem.

But:
nfs-server is ok with my shares
mountstats is not and i can't access the shares from anywhere


I followed the instructions on https://wiki.archlinux.org/title/NFS/using nfs-utils 2.5.4-1 with 4.4.271-1-ARCH armv5tel.
I only edited the /etc/nfs.conf not to use RDMA as it's not available in the arm repositories and to stop nfs-server complaining about.

rpcbind.service is running on server and client.

When I look for my exports i see:

$ nano /etc/exports

$this->bbcode_second_pass_quote('', ' ')/srv/nfs 192.168.0.0/24(rw,sync,crossmnt,fsid=0)
/srv/nfs/music 192.168.0.0/24(rw,sync)
/srv/nfs/other 192.168.0.0/24(rw,sync)
/srv/nfs/video 192.168.0.0/24(rw,sync)


$ sudo exportfs -v

$this->bbcode_second_pass_quote('', ' ') /srv/nfs 192.168.0.0/24(sync,wdelay,hide,crossmnt,no_subtree_check,fsid=0,sec=sys,rw,secure,root_squash,no_all_squash)
/srv/nfs/music 192.168.0.0/24(sync,wdelay,hide,no_subtree_check,sec=sys,rw,secure,root_squash,no_all_squash)
/srv/nfs/other
192.168.0.0/24(sync,wdelay,hide,no_subtree_check,sec=sys,rw,secure,root_squash,no_all_squash)
/srv/nfs/video 192.168.0.0/24(sync,wdelay,hide,no_subtree_check,sec=sys,rw,secure,root_squash,no_all_squash


$ systemctl status nfs-server

$this->bbcode_second_pass_quote('', ' ')● nfs-server.service - NFS server and services
Loaded: loaded (/usr/lib/systemd/system/nfs-server.service; enabled; vendor preset: disabled)
Drop-In: /run/systemd/generator/nfs-server.service.d
└─order-with-mounts.conf
Active: active (exited) since Tue 2021-08-03 13:57:36 CEST; 1s ago
Process: 835 ExecStartPre=/usr/sbin/exportfs -r (code=exited, status=0/SUCCESS)
Process: 839 ExecStart=/usr/sbin/rpc.nfsd (code=exited, status=0/SUCCESS)
Main PID: 839 (code=exited, status=0/SUCCESS)

Aug 03 13:57:36 alarm exportfs[835]: exportfs: /etc/exports [2]: Neither 'subtree_check' or 'no_subtree_check' specified for export "192.168.0.0/24:/srv/nfs/music".
Aug 03 13:57:36 alarm exportfs[835]: Assuming default behaviour ('no_subtree_check').
Aug 03 13:57:36 alarm exportfs[835]: NOTE: this default has changed since nfs-utils version 1.0.x
Aug 03 13:57:36 alarm exportfs[835]: exportfs: /etc/exports [3]: Neither 'subtree_check' or 'no_subtree_check' specified for export "192.168.0.0/24:/srv/nfs/other".
Aug 03 13:57:36 alarm exportfs[835]: Assuming default behaviour ('no_subtree_check').
Aug 03 13:57:36 alarm exportfs[835]: NOTE: this default has changed since nfs-utils version 1.0.x
Aug 03 13:57:36 alarm exportfs[835]: exportfs: /etc/exports [4]: Neither 'subtree_check' or 'no_subtree_check' specified for export "192.168.0.0/24:/srv/nfs/video".
Aug 03 13:57:36 alarm exportfs[835]: Assuming default behaviour ('no_subtree_check').
Aug 03 13:57:36 alarm exportfs[835]: NOTE: this default has changed since nfs-utils version 1.0.x
Aug 03 13:57:36 alarm systemd[1]: Finished NFS server and services.


What i found per accident (no idea if it's related):

$ systemctl status nfs-mountd

$this->bbcode_second_pass_quote('', ' ')× nfs-mountd.service - NFS Mount Daemon
Loaded: loaded (/usr/lib/systemd/system/nfs-mountd.service; static)
Active: failed (Result: exit-code) since Tue 2021-08-03 14:01:43 CEST; 7s ago
Process: 912 ExecStart=/usr/sbin/rpc.mountd (code=exited, status=0/SUCCESS)
Main PID: 919 (code=exited, status=1/FAILURE)

Aug 03 14:01:42 alarm systemd[1]: Starting NFS Mount Daemon...
Aug 03 14:01:43 alarm systemd[1]: Started NFS Mount Daemon.
Aug 03 14:01:43 alarm rpc.mountd[919]: Unable to watch /proc/fs/nfsd/clients: No such file or directory
Aug 03 14:01:43 alarm systemd[1]: nfs-mountd.service: Main process exited, code=exited, status=1/FAILURE
Aug 03 14:01:43 alarm systemd[1]: nfs-mountd.service: Failed with result 'exit-code'.



But are shares really available?

$ mountstats

$this->bbcode_second_pass_quote('', ' ') No NFS mount points were found


When i type on the client side:

$ showmount -e 192.168.0.13

$this->bbcode_second_pass_quote('', ' ') rpc mount export: RPC: Unable to receive; errno = Connection refused


$ sudo mount 192.168.0.13:/srv/nfs /mnt

$this->bbcode_second_pass_quote('', ' ') mount.nfs: access denied by server while mounting 192.168.0.200:/srv/nfs



What's did I miss?
holzboa
 
Posts: 9
Joined: Tue Aug 03, 2021 1:04 pm
Top

Re: nfs-shares confused

Postby holzboa » Thu Aug 05, 2021 4:11 pm

Using a Raspberry Pi with 5.10.50-2-MANJARO-ARM 21.07 using nfs-utils 2.5.4.1 gives me nearly the same trouble.
The good: rpc-mountd.service doesn't complain about a missing file.

Just to check my abilities I created shares on a 64 bit ACER on EndeavourOS with nfs-utils 2.5.4.1 and it works just the way it is supposed to. I did the same on Linux Mint and it works as well.

/var/lib/nfs/etab looks good, firewalls turned off, iptables are empty. It should work.
So there's probably something wrong in the arm-version of nfs-utils.
I already looked for a older version of nfs-utils but only found 2.5.3.1 for arm v7.

Where to find nfs-utils 2.5.3.1-armv5 and nfsidmap 2.5.3.1-armv5?
holzboa
 
Posts: 9
Joined: Tue Aug 03, 2021 1:04 pm

Re: nfs-shares confused

Postby indecentiguana » Sat Aug 07, 2021 10:54 am

I have the same issue.

I rebooted my Odroid HC-2 today and NFS stopped working.
I was pulling my hair out until i saw this.
indecentiguana
 
Posts: 1
Joined: Sat Aug 07, 2021 10:50 am

Re: nfs-shares confused

Postby holzboa » Sat Aug 07, 2021 1:22 pm

$this->bbcode_second_pass_quote('', '
')I rebooted my Odroid HC-2 today and NFS stopped working

If you run your system long enough that you already received a update for nfs you should be able to downgrade.
Cached files (nfs*-.pkg.tar.zst and .sig) are in /var/cache/paman/pkg
holzboa
 
Posts: 9
Joined: Tue Aug 03, 2021 1:04 pm
Top

Re: nfs-shares confused

Postby holzboa » Mon Aug 09, 2021 8:17 am

I guess rpc.nfsd is the problem.
rpcdebug is missing files (/proc/sys/sunrpc/) and
nfs-mound is missing a file (/proc/fs/nfsd/clients)

Using sshfs works good enough to feed my Runaudio Raspberries.
Transferrate 10MB/s
holzboa
 
Posts: 9
Joined: Tue Aug 03, 2021 1:04 pm

[SOLVED]Re: nfs-shares confused

Postby holzboa » Tue Aug 10, 2021 5:10 am

Finally i got connected to http://tardis.tiny-vps.com/aarm/.
I can confirm nfs works after downgrading to nfs-utils-0.5.3.1.

Just make shure you add a entry in /etc/pacman.conf not to upgrade again:
$this->bbcode_second_pass_code('', 'IgnorePkg = nfs-utils nfsidmap')
holzboa
 
Posts: 9
Joined: Tue Aug 03, 2021 1:04 pm


Return to User Questions

Who is online

Users browsing this forum: No registered users and 9 guests