Trigger hook script on cluster event

devilrunner

Renowned Member
Aug 3, 2015
20
6
68
Dear Proxmox,
Community,

Is it possible to run a simple hook script when a cluster event is triggered?
Ex. A node goes down or is up again.

I would like to change nodes pve-zsync schedule or config based on the nodes availability.

Basically simulating the VM HA behavior but for a storage pool. Trying to accomplish a cluster wide synced zfs dataset (active/passive, hot/backup or vice versa when the active or hot dataset goes down and backup becomes the live/hot datasource).

I know ceph would be easier to get a 'shared storage like situation' but like ZFS to much
 
Last edited:
no, such hooks are currently not implemented, but i can see that triggering some things on some events in the cluster could make sense. you could open a feature request on https://bugzilla.proxmox.com (also maybe a colleague there has another idea to do what you want)