how to reliably shutdown domains ?

Ferenc Wágner wferi at niif.hu
Wed Mar 9 15:17:50 UTC 2022


"Lentes, Bernd" <bernd.lentes at helmholtz-muenchen.de> writes:

> i have a two-node cluster with around 20 domains. Cluster-Software is
> pacemaker and corosync, OS is SLES 12 SP5.  The scripts for starting/
> stopping the domains use virsh. Is there a way to reliably shutdown
> the domains via virsh ?

I issue virsh shutdown commands periodically until the Pacemaker stop
operation timeout - 10 s, then switch over to virsh destroy.  This way
the domain is eventually stopped whether it cooperates or not.  Except
when libvirt itself is blocked, which happened with some old versions,
but fencing is a reasonable solution in such cases.
-- 
Feri



More information about the libvirt-users mailing list