[SOLVED] Cant add NFS Storage

lmonasterio

New Member
Nov 3, 2021
21
1
3
39
Hi everyone. I cant add a NFS storage (172.16.1.62) to my pve (172.16.1.115). I made the NFS Server using linux, and the strange thing is i've mounted (via CLI in the pve node) a shared folder to that server, and its working perfectly. I can create and delete files. With that in mind i can say its not about permissions or firewall rules.
I can share some screens

On my pve-node:
1656518354212.png

1656518410827.png

But in the GUI says "scanning" and nothing...

1656519107855.png

1656519052235.png
 
You mentioned that you are running NFS service on Linux server, meaning its self-installed. There are potentially a few issues, for example:
1) you did not install all components (ie rpcbind)
2) you dont have all the ports open on the firewall for discovery.
Discovery is different from direct mount

You have few troubleshooting avenues:
a) try to add the storage using "pvesm" from the shell. It may provide you a better error output than GUI
b) check /var/log/messages and journalctl for errors and timeouts
c) manually edit /etc/pve/storage.cfg to add the NFS storage. You will need to restart some services after that
"systemctl restart pvestatd pveproxy pvedaemon"

This will likely not workaround the underlying issue and you will still see hangs and healthcheck issues.


Blockbridge : Ultra low latency all-NVME shared storage for Proxmox - https://www.blockbridge.com/proxmox
 
Last edited:
Thanks @bbgeek17 for your reply and attention. I really appreciate.
Yes, its a self-installed NFS server over Debian. The weird thing is i can access it an use it if i mount the "exports" drives via CLI on my pve node. That is working
"1) you did not install all components (ie rpcbind)": rpcbind and relates services are up and running, both server and client (pve)
"2) you dont have all the ports open on the firewall for discovery. Discovery is different from direct mount": im adding the path manually in the export option (/mnt/webundav) since discovery brings me no output

"a) try to add the storage using "pvesm" from the shell. It may provide you a better error output than GUI": it says not online
1656585474247.png
when i can use it mounted in pve (i.e. df -h and create/delete files):
1656586736788.png

"b) check /var/log/messages and journalctl for errors and timeouts": brings me the same output
1656587971307.png
 

Attachments

  • 1656586923193.png
    1656586923193.png
    9.6 KB · Views: 15
Last edited:
you have not specified v4 in your pvesm add. Clearly v3 health check is not working for you. This is what the code does:
Code:
sub check_connection {
   ....
        $cmd = ['/usr/sbin/rpcinfo', '-T', $transport, $ip, 'nfs', '4'];
    } else {
        $cmd = ['/sbin/showmount', '--no-headers', '--exports', $server];
    }

Can you run these commands manually successfully?


Blockbridge : Ultra low latency all-NVME shared storage for Proxmox - https://www.blockbridge.com/proxmox
 
you have not specified v4 in your pvesm add. Clearly v3 health check is not working for you. This is what the code does:
Code:
sub check_connection {
   ....
        $cmd = ['/usr/sbin/rpcinfo', '-T', $transport, $ip, 'nfs', '4'];
    } else {
        $cmd = ['/sbin/showmount', '--no-headers', '--exports', $server];
    }

Can you run these commands manually successfully?


Blockbridge : Ultra low latency all-NVME shared storage for Proxmox - https://www.blockbridge.com/proxmox
Ive got timeout:
1656594408580.png

And i add the version number manually on storage.conf:

1656594515957.png

When i mount it manually via CLI in the node, it works, but not as storage...
1656594725442.png
 
Last edited:
Ive got timeout:
Well, that is the problem. As was mentioned several times in the thread - manually directly mounting is not the same as operating within the design of the PVE storage subsystem. PVE probes the storage every minute or so using above rpc commands. Your storage is not responding to the built-in probes. You have to solve that if you want to use NFS as storage object within PVE.
The same probe is done by UI both for listing the exports and for allowing you to press "ok" - PVE has to determine that storage is online. Yours is not as far PVE is concerned.


Blockbridge : Ultra low latency all-NVME shared storage for Proxmox - https://www.blockbridge.com/proxmox
 
  • Like
Reactions: gurubert
Well, that is the problem. As was mentioned several times in the thread - manually directly mounting is not the same as operating within the design of the PVE storage subsystem. PVE probes the storage every minute or so using above rpc commands. Your storage is not responding to the built-in probes. You have to solve that if you want to use NFS as storage object within PVE.
The same probe is done by UI both for listing the exports and for allowing you to press "ok" - PVE has to determine that storage is online. Yours is not as far PVE is concerned.


Blockbridge : Ultra low latency all-NVME shared storage for Proxmox - https://www.blockbridge.com/proxmox
Ok. I didnt know or realized that "manually directly mounting is not the same as operating within the design of the PVE storage subsystem". Sorry.

"You have to solve that if you want to use NFS as storage object within PVE". Any idea how can i do that?
 
This "can you run these commands directly on your NFS server against itself? Against 127.0.0.1?" was meant as two tests:
against local 172.xxx. and 127.
Either RPC is not listening on appropriate interfaces or you have other issues in your network.
We have reduced the complexity of troubleshooting from Linux NFS/PVE to Linux NFS/Linux Client. There are many NFS troubleshooting guides on the net.
Good luck.


Blockbridge : Ultra low latency all-NVME shared storage for Proxmox - https://www.blockbridge.com/proxmox
 
This "can you run these commands directly on your NFS server against itself? Against 127.0.0.1?" was meant as two tests:
against local 172.xxx. and 127.
Either RPC is not listening on appropriate interfaces or you have other issues in your network.
We have reduced the complexity of troubleshooting from Linux NFS/PVE to Linux NFS/Linux Client. There are many NFS troubleshooting guides on the net.
Good luck.


Blockbridge : Ultra low latency all-NVME shared storage for Proxmox - https://www.blockbridge.com/proxmox
Yes, thanks @bbgeek17. I agree that perhaps it is not a proxmox-related-issue. Thanks for your time
 

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!