Subsections of Cluster HA resources
List cluster ha resource
Options
| option | description | Allowed values |
|---|
Examples
- List cluster resources
proxcli cluster ha resources listAdd cluster ha resource
Options
| option | description | Allowed values |
|---|---|---|
| group | the cluster ha group this resource belong to | string |
| vmid | the virtual machine id you want to assign to the resource | string |
| name | the cluster ha resource name | string |
| comment | additional information for this resource | N/A |
| state | Requested resource state. The CRM reads this state and acts accordingly. Please note that enabled is just an alias for started. (disabled | enabled |
| max-relocate | Maximal number of service relocate tries when a service failes to start | integrer |
| max-restart | Maximal 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 105Delete cluster ha resource
Options
| option | description | Allowed values |
|---|---|---|
| vmid | the virtual machine id you want to remove from resources | string |
| filter-name | A regex applied on virtual machine name used to select matching virtual machines to remove from resources | string |
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
| option | description | Allowed values |
|---|---|---|
| vmid | The virtual machine id to migrate | integer |
| filter-name | a regex on virtual machines name used to select multiples virtual machines to be migrated | string |
| proxmox-node | the target node to migrate the virtual machines to | string |
| block | wait 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 --blockRelocate cluster ha resource
Options
| option | description | Allowed values |
|---|---|---|
| vmid | The virtual machine id to be relocated | integer |
| filter-name | a regex on virtual machines name used to select multiples virtual machines to be relocated | string |
| proxmox-node | the target node to relocate the virtual machines to | string |
| block | wait 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



