Cluster HA resources

Subsections of Cluster HA resources

List cluster ha resource

Options

optiondescriptionAllowed values

Examples

  • List cluster resources
proxcli cluster ha resources list

Add cluster ha resource

Options

optiondescriptionAllowed values
groupthe cluster ha group this resource belong tostring
vmidthe virtual machine id you want to assign to the resourcestring
namethe cluster ha resource namestring
commentadditional information for this resourceN/A
stateRequested resource state. The CRM reads this state and acts accordingly. Please note that enabled is just an alias for started. (disabledenabled
max-relocateMaximal number of service relocate tries when a service failes to startintegrer
max-restartMaximal number of tries to restart the service on a node after its start failed.integer

Examples

  • create a cluster ha resource with minimal informations
proxcli cluster ha resources add --group gitlab --vmid 105

Delete cluster ha resource

Options

optiondescriptionAllowed values
vmidthe virtual machine id you want to remove from resourcesstring
filter-nameA regex applied on virtual machine name used to select matching virtual machines to remove from resourcesstring

Examples

  • Delete a single cluster ha resource by virtual machine id
proxcli cluster ha resources delete --vmid 105
  • Delete all cluster ha resources (not recomended)
proxcli cluster ha resources delete --filter-name "^.*$"

Migrate cluster ha resource

Options

optiondescriptionAllowed values
vmidThe virtual machine id to migrateinteger
filter-namea regex on virtual machines name used to select multiples virtual machines to be migratedstring
proxmox-nodethe target node to migrate the virtual machines tostring
blockwait for each resources to finish migration before starting another one (sequential mode)string
Note

vmid and filter-name are mutualy exclusive

Examples

  • migrate a cluster ha resource to another node
proxcli cluster ha resources migrate --vmid 125 --proxmox-node pve1
  • migrate multiple cluster ha resources to another node
proxcli cluster ha resources migrate --filter-name "^b4p-powerdns" --proxmox-node pve1
  • migrate multiple cluster ha resources to another node waiting for each resource to finish migration
proxcli cluster ha resources migrate --filter-name "^b4p-powerdns" --proxmox-node pve1 --block

Relocate cluster ha resource

Options

optiondescriptionAllowed values
vmidThe virtual machine id to be relocatedinteger
filter-namea regex on virtual machines name used to select multiples virtual machines to be relocatedstring
proxmox-nodethe target node to relocate the virtual machines tostring
blockwait for each resources to finish relocation before starting another one (sequential mode)string
Note

vmid and filter-name are mutualy exclusive

Examples

  • relocate a cluster ha resource to another node
proxcli cluster ha resources relocate --vmid 125 --proxmox-node pve1
  • relocate multiple cluster ha resources to another node
proxcli cluster ha resources relocate --filter-name "^b4p-powerdns" --proxmox-node pve1
  • relocate multiple cluster ha resources to another node waiting for each resource to finish relocation
proxcli cluster ha resources relocate --filter-name "^b4p-powerdns" --proxmox-node pve1 --block