Skip to content

libvirt hook to automatically promote/demote DRBD resources

License

Notifications You must be signed in to change notification settings

ohitz/libvirt-drbd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

libvirt-drbd

This script is a libvirt hook to automatically promote/demote DRBD resources.

Place the "qemu" script in /etc/libvirt/hooks/ and it will automatically promote and demote DRBD resources configured in libvirt guests when the guests are started or shut down. After installing it, the libvirt management daemon needs to be reloaded:

/etc/init.d/libvirt-bin reload

or, on systemd based systems

systemctl restart libvirtd

In order for the DRBD resources to be recognized as such, they need to be configured with the /dev/drbd/by-res/ path.

The script requires the xmllint command from the libxml package.

The latest version of the script is at https://github.com/ohitz/libvirt-drbd

About

libvirt hook to automatically promote/demote DRBD resources

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages