ivandika3 commented on code in PR #8730: URL: https://github.com/apache/ozone/pull/8730#discussion_r2196330970
########## hadoop-hdds/docs/content/feature/SCM-HA.md: ########## @@ -90,6 +90,85 @@ ozone scm --bootstrap Note: both commands perform one-time initialization. SCM still needs to be started by running `ozone --daemon start scm`. +## SCM Leader Transfer + +The `ozone admin scm transfer` command allows you to manually transfer the leadership of the Storage Container Manager (SCM) Raft group to a specific SCM node or to a randomly chosen follower. + +Be aware of the node's status(eg. Safemode, Operational status), ozone currently has no ability to check the target node's status before transfering the leadership. + +### Usage + +```bash +ozone admin scm transfer -id <SCM_SERVICE_ID> -n <NEW_LEADER_ID> +ozone admin scm transfer -id <SCM_SERVICE_ID> -r +``` + +* `-id, --service-id`: Specifies the SCM Service ID. +* `-n, --newLeaderId, --new-leader-id`: The node ID of the SCM to which leadership will be transferred (e.g., `scm1`). Review Comment: @jojochuang Thanks for the update. Just need to update the `ozone admin scm roles --table` node ID to be UUID and we're good. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
