Linux command
ha-manager 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Show HA status
ha-manager status
Enable HA for VM
ha-manager add [vm:100]
Remove from HA
ha-manager remove [vm:100]
Set HA group
ha-manager set [vm:100] --group [hagroup1]
Migrate service
ha-manager migrate [vm:100] [target-node]
说明
ha-manager manages Proxmox VE High Availability services. It controls which VMs and containers are protected by HA, ensuring they're automatically restarted or migrated if a node fails. HA requires a cluster of at least three nodes for proper quorum. Services are monitored and automatically recovered based on configured policies.
参数
- status
- Show HA manager status.
- add _sid_
- Add service to HA.
- remove _sid_
- Remove service from HA.
- set _sid_ _options_
- Configure service options.
- migrate _sid_ _node_
- Migrate service to node.
- relocate _sid_ _node_
- Request relocation.
- --group _name_
- HA group assignment.
- --state _state_
- Desired state (started, stopped, disabled).
- --max_restart _n_
- Maximum restart attempts.
- --max_relocate _n_
- Maximum relocate attempts.
FAQ
What is the ha-manager command used for?
ha-manager manages Proxmox VE High Availability services. It controls which VMs and containers are protected by HA, ensuring they're automatically restarted or migrated if a node fails. HA requires a cluster of at least three nodes for proper quorum. Services are monitored and automatically recovered based on configured policies.
How do I run a basic ha-manager example?
Run `ha-manager status` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does status do in ha-manager?
Show HA manager status.