| title | tiup dm disable |
|---|---|
| summary | The `tiup dm disable` command is used to disable the auto-enabling of cluster service after restarting the machine. It can be used with options like `-N, --node` to specify nodes and `-R, --role` to specify roles for disabling auto-enabling. The output is the execution log of the tiup-dm command. |
After restarting the machine on which the cluster service is located, the cluster service will be automatically enabled. To disable the auto-enabling of cluster service, you can use the tiup dm disable command. This command executes systemctl disable <service> on the specified node to disable the auto-enabling of the service.
tiup dm disable <cluster-name> [flags]<cluster-name> is the cluster whose service auto-enabling is to be disabled.
- Specifies the nodes whose service auto-enabling is to be disabled. The value of this option is a comma-separated list of node IDs. You can get the node IDs from the first column of the cluster status table returned by the
tiup dm displaycommand. - Data type:
STRINGS - If this option is not specified in the command, the auto-enabling of all nodes is disabled by default.
Note:
If the
-R, --roleoption is specified at the same time, the auto-enabling of services that match both the specifications of-N, --nodeand-R, --roleis disabled.
- Specifies the roles whose service auto-enabling is to be disabled. The value of this option is a comma-separated list of node roles. You can get the roles of nodes from the second column of the cluster status table returned by the
tiup dm displaycommand. - Data type:
STRINGS - If this option is not specified in the command, the auto-enabling of all roles is disabled by default.
Note:
If the
-N, --nodeoption is specified at the same time, the auto-enabling of services that match both the specifications of-N, --nodeand-R, --roleis disabled.
Prints the help information.
The execution log of the tiup-dm.