Removing NFS storage via API will not unmount the NFS from the system

layer7.net

Member
Oct 5, 2021
41
3
13
23
Hi,

when a new nfs type storage is added via API, the proxmox UI will see a new entry for the storage and the debian system will mount the nfs share.

So far, so nice.

But when removing the storage via API, only from the proxmox UI the entry will be removed, but the debian system will still have the mount active.

Bug or feature ? :D

pve-manager/7.1-12/b3c09de3 (running kernel: 5.13.19-6-pve)


Greetings & thank you!
Oliver
 
Last edited:
Hi,

no. After reboot the nfs will not be mounted anymore. ( as expected ).

So it seems the API simply does not unmount the NFS storage after removing the storage from proxmox.
Its reproduceable. Seems to be designed like this.

Greetings
Oliver
 
Hi,

Yes, this because the NFS mount is still running you have to at least stop or umount it. After you delete the NFS storage using API/WebUI check the below command:
Code:
systemctl status mnt-pve-{StorageID}.mount
 
Hi,

its clear that i could manually remove the mount.

My point is:

Should it not be an expected behavior of the API to do this?

When the API receives the command to add storage, it will do the whole process. It will not require the admin to manually mount the NFS share.

But when the API receives the command to remove the storage, it does not do the whole process. It will remove the storage from proxmox, but not the mount from the system. So it does not revert the add storage function.

The point of an API is to get a job (automated) done. Here when adding storage, its doing fine. But when removing the storage its just doing half and leave back unfinished business for manual work.

For me this is an unexpected behavior and that's why i reported it.

As it seems to me, you designed this out of good reason. I would be interested to know why you choose to implement it like this.

Is there a good reason to leave this mount abandoned behind?

Thank you for your time!
Greetings
Oliver
 

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!