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.
 

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!