Help, how to make DM component and cluster component coexist?

Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.

Original topic: 求助,如何DM组件与cluster组件如何共存?

| username: LBX流鼻血

[TiDB Usage Environment] Test Environment
[TiDB Version] 6.0.0
[Encountered Problem]
Downloaded the 6.0 offline package, which is divided into two:
tidb-community-server-v6.0.0-linux-amd64
tidb-community-toolkit-v6.0.0-linux-amd64
After installing the server, DM cannot be used.
After installing the toolkit, the cluster cannot be used.

[Problem Phenomenon and Impact] This causes the need to run the script and execute tiup update --self && tiup update --all every time to use DM.

Is there any way to use both commands simultaneously?

| username: xiaohetao | Original post link

Separate directories

| username: xiaohetao | Original post link

DM can be a standalone machine or a cluster, it’s better to prevent it separately.

| username: ddhe9527 | Original post link

Try merging the images

version=v6.0.0
tar xf tidb-community-toolkit-${version}-linux-amd64.tar.gz
ls -ld tidb-community-server-${version}-linux-amd64 tidb-community-toolkit-${version}-linux-amd64
cd tidb-community-server-${version}-linux-amd64/
cp -rp keys ~/.tiup/
tiup mirror merge ../tidb-community-toolkit-${version}-linux-amd64
| username: tidb狂热爱好者 | Original post link

Separate directories: one directory for DM and one directory for TiDB server.

| username: LBX流鼻血 | Original post link

I tried separating the directories, but after re-running ./local_install.sh and executing source /home/tidb/.bash_profile, the issue remains the same. Could you please clarify if separating the directories means that tidb-community-server-v6.0.0-linux-amd64 and tidb-community-toolkit-v6.0.0-linux-amd64 should not be placed in the same level directory?

| username: LBX流鼻血 | Original post link

Tried separating the directories, re-executed ./local_install.sh, and then executed source /home/tidb/.bash_profile, but the result is still the same. Does separating the directories mean that tidb-community-server-v6.0.0-linux-amd64 and tidb-community-toolkit-v6.0.0-linux-amd64 should not be placed in the same level directory?

| username: tidb狂热爱好者 | Original post link

You can use two users: one regular user dbadmin and one super administrator user root.
/root/tidb-community-server-v6.0.0-linux-amd64
/home/dbadmin/tidb-community-toolkit-v6.0.0-linux-amd64

| username: tidb狂热爱好者 | Original post link

After switching users, respectively reference:
source /root/.bash_profile
source /home/dbadmin/.bash_profile
You can manage such a cluster’s control center, and you can also manage DM.

| username: tidb狂热爱好者 | Original post link

If you have any questions, you can directly contact me on WeChat at 2100803.

| username: xiaohetao | Original post link

Installation and configuration directories for DM and DB server;

Media directory: After extraction, the two media should have their respective directories.

| username: xiaohetao | Original post link

There might have been some misunderstanding of your question earlier.

  1. Understand what is installed with local_install, as shown in the picture:

  2. Understand what tiup is, as shown in the picture:

  3. Understand that tiup is installed and know its functions. If tiup was already installed before installing TiDB, then there is no need to install it again when installing DM.

| username: system | Original post link

This topic will be automatically closed 60 days after the last reply. No new replies are allowed.