...
Add VM in the cluster:
Code Block language bash vm-mgr create --name NAME --xml /path/to/configuration.xml --image /path/to/disk.qcow2 --disable --force --enable-live-migration --migration-user virtu --migration-to-timeout 180
Check the execution of the resource:
Code Block language bash crm status
Get the status of the resource:
Code Block language bash vm-mgr status --name NAME
Delete VM in the cluster:
Code Block language bash vm-mgr remove --name NAME
...
Replace a dead node
The ansible/playbooks/replace_machine_remove_machine_from_cluster.yaml
playbook can remove a node in the cluster. For this, the machine_to_remove
should be set to the hostname to remove.
The below command should be launch in the ansible project.
Code Block | ||
---|---|---|
| ||
cqfd run ansible-playbook -i /path/to/inventory.yaml -e machine_to_remove=HOSTNAME playbooks/replace_machine_remove_machine_from_cluster.yaml |
...