Unable to add NFS Storage on Proxmox but I am able to mount directly via CLI

amil

Active Member
Dec 16, 2015
63
0
26
Spain
Hello,

When I try to add the NFS storage via Proxmox (version 5.4-13) i get the following error:

create storage failed: error with cfs lock 'file-storage_cfg': storage 'node' is not online (500)

But, directly in the node,via CLI if I do a simple:

mount -t nfs remote_nfs_ip:node /mnt

It is mounted correctly and I can work without issues.

Any help will be high appreciated. Thanks in advance!
 
Can you manually edit the file
vi /etc/pve/storage.cfg

and the following lines

nfs: mynfs

export /Software

path /mnt/pve/nfs

server 172.XX.XX.XXX

content images,rootdir,iso,backup,vztmpl

maxfiles 1

options vers=3






Kindly update with correct IP, export path and mount point

export== Name of the shared volume/path
path= The path in proxmox server where it will be mounted
server: IP of NFS server
 
Last edited:
Can you manually edit the file
vi /etc/pve/storage.cfg

and the following lines

nfs: mynfs

export /Software

path /mnt/pve/nfs

server 172.XX.XX.XXX

content images,rootdir,iso,backup,vztmpl

maxfiles 1

options vers=3






Kindly update with correct IP, export path and mount point

export== Name of the shared volume/path
path= The path in proxmox server where it will be mounted
server: IP of NFS server

If I edit /etc/pve/storage.cfg adding the NFS volume, i can see this in Proxmox but really do nothing. The NFS is not mounted anyway.
 
Just mount it manually, next reboot it will mount automatically

Rebooting the node with the NFS config at /etc/pve/storage.cfg the same result: I can see it in PVE under storage but the NFS is not being mounted.

A workaround is mount the NFS (adding to /etc/fstab) and in Proxmox storage selecting "Directory" but i am not comfortable with this workaround...
 
Rebooting the node with the NFS config at /etc/pve/storage.cfg the same result: I can see it in PVE under storage but the NFS is not being mounted.

A workaround is mount the NFS (adding to /etc/fstab) and in Proxmox storage selecting "Directory" but i am not comfortable with this workaround...



can you provide output of the following

pvesm status
pvesm nfsscan <ip of nfs server>
 
can you provide output of the following

pvesm status
pvesm nfsscan <ip of nfs server>

# pvesm status
Name Type Status Total Used Available %
NFS dir active 1902052608 1306619264 498791680 68.70%
local dir active 448971536 128454648 297687424 28.61%

(Please note that I have NFS mounted via /etc/fstab)

# pvesm nfsscan my_remote_nfs_ip
rpc mount export: RPC: Timed out
command '/sbin/showmount --no-headers --exports my_remote_nfs_ip' failed: exit code 1


If I do a rpcinfo it appears correct:

# rpcinfo -p my_remote_nfs_ip
program vers proto port service
100000 4 tcp 111 portmapper
100000 3 tcp 111 portmapper
100000 2 tcp 111 portmapper
100000 4 udp 111 portmapper
100000 3 udp 111 portmapper
100000 2 udp 111 portmapper
100024 1 udp 42818 status
100024 1 tcp 57345 status
100003 2 tcp 2049 nfs
100003 3 tcp 2049 nfs
100003 4 tcp 2049 nfs
100227 2 tcp 2049
100227 3 tcp 2049
100003 2 udp 2049 nfs
100003 3 udp 2049 nfs
100003 4 udp 2049 nfs
100227 2 udp 2049
100227 3 udp 2049
100021 1 udp 32902 nlockmgr
100021 3 udp 32902 nlockmgr
100021 4 udp 32902 nlockmgr
100021 1 tcp 39329 nlockmgr
100021 3 tcp 39329 nlockmgr
100021 4 tcp 39329 nlockmgr
100005 1 udp 54663 mountd
100005 1 tcp 53145 mountd
100005 2 udp 33933 mountd
100005 2 tcp 49639 mountd
100005 3 udp 38183 mountd
100005 3 tcp 45183 mountd

Any suggestion? Thank you very much!
 
Last edited:
First try to turn your firewall on your nfs-server off. I this works, you'll have to update your firewall rules
 
I am still facing the issue with my Synology NAS. I am able to use SMB from Proxmox but not NFS. Just for test I even allowed read writer permission to all IPs
 

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!