- Overview
- Quick Start
- Install PTK
- Usage
- Configuration
- Config Samples
- Commands
- ptk
- ptk completion
- ptk register
- ptk init-cluster
- ptk collect
- ptk rec-guc
- ptk cache
- ptk gen-ptkc
- ptk manage
- ptk demo
- ptk meta
- ptk version
- ptk self
- ptk gen-om-xml
- ptk env
- ptk gen-static-config
- ptk cluster
- ptk cluster rename
- ptk cluster throwout
- ptk cluster takeover
- ptk cluster uninstall-cm
- ptk cluster install-cm
- ptk cluster gen-cert-files
- ptk cluster load-cm-vip
- ptk cluster del-kerberos-auth
- ptk cluster add-kerberos-auth
- ptk cluster uninstall-kerberos-server
- ptk cluster install-kerberos-server
- ptk cluster is-in-upgrade
- ptk cluster upgrade-rollback
- ptk cluster upgrade-commit
- ptk cluster upgrade
- ptk cluster demote
- ptk cluster promote
- ptk cluster refresh
- ptk cluster shell
- ptk cluster modify-comment
- ptk cluster show-config
- ptk cluster set-guc
- ptk cluster show-guc
- ptk cluster set-hba
- ptk cluster show-hba
- ptk cluster scale-out
- ptk cluster scale-in
- ptk cluster uninstall-mogha
- ptk cluster install-mogha
- ptk cluster list-plugins
- ptk cluster install-plugin
- ptk cluster inspect
- ptk cluster failover
- ptk cluster switchover
- ptk cluster build
- ptk cluster status
- ptk cluster restart
- ptk cluster stop
- ptk cluster start
- ptk uninstall
- ptk ls
- ptk install
- ptk exec
- ptk template
- ptk encrypt
- ptk checkos
- ptk download
- ptk candidate
- Troubleshooting
- FAQ
- Release Note
- GPTK - Graphical Deployment Tool
- Community
- Appendix: YAML Syntax
MogHA Installation and Uninstallation
PTK supports the MogHA installation process in prerequisite that the user provides a legal MogHA configuration file. Before MogHA is installed, PTK verifies the configuration file.
Pre-Installation Verification
- Verify whether the cluster status is normal.
- Verify whether there is MogHA running on the target server.
Verification Content
-
Verify whether
db_user
is null and consistent with the database user in a cluster. -
Verify whether
db_port
is null and consistent with the database port in a cluster and whether the port is occupied. -
Verify whether
db_datadir
is null and consistent with the database directory in a cluster. -
Verify whether
agent_port
is null and meets the port specifications and whether the port is occupied. -
Verify whether there are two or more servers where MogHA is to be installed.
-
Verify the
pinglist
andhosts
fields in a zone. -
Verify the
lite_mode
mode.
Deployment Mode
MogHA is deployed in two modes, including the lite mode and the non-lite mode.
-
For the lite mode, MogHA is installed on only a primary node and a synchronous standby node. If there are multiple synchronous standby nodes, you need to choose one for installation. If there is only one synchronous standby node, MogHA is installed on it by default.
-
For the non-lite mode, MogHA is installed on all nodes in a cluster.
Generation of a Configuration File Template
PTK provides a template command to help users automatically generate a MogHA configuration file.
ptk template mogha -n CLUSTER_NAME [-o node.conf] [--port 8081]
Installation Command
ptk cluster -n CLUSTER_NAME install-mogha -d INSTALL_DIR -c node.conf [-p MOGHA_PACKAGE]
Uninstallation Command
ptk cluster -n CLUSTER_NAME uninstall-mogha