Hook Script to disable pbs storage

FiskerK

New Member
May 29, 2024
5
0
1
Good day

I have pbs vm for all my backups, the pbs syncs these to an offsite pbs for long term storage.

my problem is that proxmox hangs on shutdown, due to the pbs storage location being offline.
I have seen I can use hook scripts to perform actions depending on vm status, and I have seen other use sripts to unmount nfs storage location, but I don't know how to trigger the pbs storage type.
 
pbs storage isnt like NFS; if its not present it will not hang your host. I would investigate your logs a bit more carefully to see what the actual culprit is- perhaps you have other items in /etc/fstab and/or /etc/pve/storage.cfg?
 
you can use this command for enable: "pvesm set pbs -disable 0" or "pvesm set pbs -disable 1" to disable
where pbs is your storage name
 
Last edited:
I did two tests one where i didn't disable the pbs storage and one where i did disable it.
the log I post here is without disabling the storage location and I ended having to force shutdown the server.

in the test with the pbs storage disabled, the server shut down without problems.
 

Attachments