Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • Add VM in the cluster:

    Code Block
    languagebash
    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
    languagebash
    crm status


  • Get the status of the resource:

    Code Block
    languagebash
    vm-mgr status --name NAME


  • Delete VM in the cluster:

    Code Block
    languagebash
    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
languagebash
cqfd run ansible-playbook -i /path/to/inventory.yaml -e machine_to_remove=HOSTNAME playbooks/replace_machine_remove_machine_from_cluster.yaml

...