(yet another) NFS: storage is not online (500)

Carsten Bleek

Active Member
Sep 29, 2016
11
0
41
53
cross-solution.de
Hi,

Im running a 2 node Proxmox 4.4 Cluster at OVH. NFS Server is running on node3. The share can be mountet on both nodes. But the storage is only available on the node3 (where the nfs server is running locally)

I noticed, that a "pvesm nfsscan" on node2 takes much more time, than on node3.

root@node2:~# time pvesm nfsscan node3
/var/lib/vz/nfs node3,node2

real 2m7.508s
user 0m0.316s
sys 0m0.024s

root@node3:~# time pvesm nfsscan node3
/var/lib/vz/nfs node3,node2

real 0m2.088s
user 0m1.136s
sys 0m0.140s

root@node2:~# pvesm status
storage 'Backup' is not online
Backup nfs 0 0 0 0 100.00%
local dir 1 1926841100 624145172 1302695928 32.89%

But the storage is mounted on node2 and I can write to it on the command line.

Any Ideas?

Regards,

Carsten
 
pvesm status will use the command
showmount ---exports my_nfs_server
to show the status of the nfs server
check that it is working when pvesm status hangs ( not before, not after)
 
the showmount command takes 2 Minutes.

root@node2:~# time showmount -e node3
Export list for node3:
/var/lib/vz/nfs node3,node2

real 2m7.323s
user 0m0.000s
sys 0m0.004s

If I strace the command it seems to hang connecting the nfs server using the Port, which can be configured in

/etc/default/nfs-kernel-server

RPCMOUNTDOPTS="--manage-gids -p 32767 --no-nfs-version 4"

root@node2:~# strace showmount -e node3
....
connect(4, {sa_family=AF_INET, sin_port=htons(32767), sin_addr=inet_addr("10.1.1.1")}, 16

I currently have no idea how to narrow the problem to find the cause.
 
Can't give you here a definitive answer, but sometimes network connection which takes very long to be initiated but works afterwords can relate to a wrong reverse DNS lookup.
Also when /etc/passwd and /etc/groups are retrieved via NIS / LDAP and this not working.
 
I really double-checked everything befor opening the issue. But in the end it was a typo in a firewall rule.

NFS share ist now woking as expected

Regards

Carsten
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!