Question regarding ressources (rgmanager / cluster.conf)

Yannick

New Member
Aug 14, 2013
15
0
1
Hi all,

Is it possible to associate a script to a VM using ressources in cluster.conf.
I read some docs about rgmanager and ressources, but it seems that pvevm is a "specific" resource embedded in proxmox

So is it possible to modify cluster.conf to add a resource script linked to one or more HA VM (KVM).
reference: https://access.redhat.com/documenta...resource-params-CA.html#tb-script-resource-CA

My goal is to execute a script that run some command when a VM is migrating (on node fail or manual migration).

Thanks for help,
Yannick
 
perhaps by adding a child ressources like

Code:
<rm>
    <pvevm id="100" autostart="1">
        <script name="myscript" />
    </pvevm>
</rm>

This could be work ?
Yannick