Adding NFS storage using command line

zoot

New Member
Aug 10, 2025
3
1
3
Hi, playing around with proxmox 9. Also new to proxmox. I have a fully working NFS server that I'm able to add an ISO share from using the GUI. It works great from the proxmox UI but shows up as inactive when I do the same using the command line.

Code:
$ pvesm add nfs testy --content iso --server 10.0.0.2 --export /mnt/poolparty/images/ --prune-backups keep-all=1
$ ls -al /mnt/pve/testy/ # I see my files...
$ pvesm status
Name                   Type     Status           Total            Used       Available        %
gui-test                nfs     active      1544300672       243226368      1301074304   15.75%
testy                   nfs   inactive               0               0               0    0.00%

How do I make my 'testy' storage active? They look the same in /etc/pve/storage.cfg
 
Your testy NFS storage is inactive because it’s missing a path.

Fix it with:

Code:
pvesm set testy --path /mnt/pve/testy

Then check:

Code:
pvesm status

It should be active.

When adding NFS storage via CLI, always include --path /mnt/pve/<name>
 
  • Like
Reactions: waltar and UdoB