entering maintenance mode by script vs in web GUI

kla

New Member
Jun 10, 2024
7
0
1
I found a script to enter maintenance mode from internet:

> proxmox-backup-manager datastore update <datastore> --maintenance-mode offline

However, even with this commend, I cannot ummount the pool used by datastore with 'pool or dataset is busy' error.
When I checked with `lsof | grep <pool>`, I see lots of processes which open .lock file.

On the other hand, if I enter maintenance mode in web GUI, no problem occurs. I can unmount the pool immediately.

What is the difference?

And how can I disable the usage of datastore by script to unmount the used pool?
 
Last edited:
Maintenance mode does not abort existing tasks. It just disables the creation of new tasks using that datastore.