Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.
Original topic: 求助,如何DM组件与cluster组件如何共存?
[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?
DM can be a standalone machine or a cluster, it’s better to prevent it separately.
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
Separate directories: one directory for DM and one directory for TiDB server.
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?
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?
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
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.
If you have any questions, you can directly contact me on WeChat at 2100803.
Installation and configuration directories for DM and DB server;
Media directory: After extraction, the two media should have their respective directories.
There might have been some misunderstanding of your question earlier.
-
Understand what is installed with local_install, as shown in the picture:
-
Understand what tiup is, as shown in the picture:
-
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.
This topic will be automatically closed 60 days after the last reply. No new replies are allowed.