From 70a84277df68f1aece4bd85121863b5900bc87ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dani=C3=ABl=20van=20Eeden?= Date: Mon, 16 Dec 2024 08:52:59 +0100 Subject: [PATCH 1/4] check-before-deployment: add selinux See also: - https://docs.pingcap.com/tidb/stable/deploy-a-dm-cluster-using-tiup - https://docs.pingcap.com/tidb/stable/tiup-component-cluster-check#selinux --- check-before-deployment.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/check-before-deployment.md b/check-before-deployment.md index 93478787da6b1..9dd4ca57157da 100644 --- a/check-before-deployment.md +++ b/check-before-deployment.md @@ -780,3 +780,8 @@ sudo yum -y install numactl ``` To get help information of the `tiup cluster exec` command, run the `tiup cluster exec --help` command. + +## Disable SELinux + +Check with the [`getenforce(8)`](https://linux.die.net/man/8/getenforce) utility to see if SELinux is disabled or set to permissive. When SELinux is in Enforcing mode it can cause deployment failures. Refer to the documentation of your Operating System to see how to disable SELinux. + From c059421a7b6c30917cb88acd76e318eb6a14ce02 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dani=C3=ABl=20van=20Eeden?= Date: Mon, 16 Dec 2024 08:55:35 +0100 Subject: [PATCH 2/4] quick-start-with-dm: add selinux note --- dm/quick-start-with-dm.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dm/quick-start-with-dm.md b/dm/quick-start-with-dm.md index 2bf131fa2b437..cad11ae1a6ec7 100644 --- a/dm/quick-start-with-dm.md +++ b/dm/quick-start-with-dm.md @@ -7,6 +7,10 @@ summary: Learn how to quickly deploy a DM cluster using binary packages. This document describes how to migrate data from MySQL to TiDB using [TiDB Data Migration (DM)](/dm/dm-overview.md). This guide is a quick demo of DM features and is not recommended for any production environment. +> **Note:** +> +> If your target machine's operating system supports SELinux, make sure that SELinux is **disabled**. + ## Step 1: Deploy a DM cluster 1. Install TiUP, and install [`dmctl`](/dm/dmctl-introduction.md) using TiUP: From f34876b6bc95fab3b4ff2dba47a89c192cc73c7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dani=C3=ABl=20van=20Eeden?= Date: Mon, 16 Dec 2024 15:40:26 +0100 Subject: [PATCH 3/4] Apply suggestions from code review Co-authored-by: xixirangrang --- check-before-deployment.md | 3 +-- dm/quick-start-with-dm.md | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/check-before-deployment.md b/check-before-deployment.md index 9dd4ca57157da..109b4e82ab8d2 100644 --- a/check-before-deployment.md +++ b/check-before-deployment.md @@ -783,5 +783,4 @@ sudo yum -y install numactl ## Disable SELinux -Check with the [`getenforce(8)`](https://linux.die.net/man/8/getenforce) utility to see if SELinux is disabled or set to permissive. When SELinux is in Enforcing mode it can cause deployment failures. Refer to the documentation of your Operating System to see how to disable SELinux. - +Use the [getenforce(8)](https://linux.die.net/man/8/getenforce) utility to check if SELinux is disabled or set to permissive. SELinux in Enforcing mode can cause deployment failures. Consult your operating system's documentation for instructions on disabling SELinux. diff --git a/dm/quick-start-with-dm.md b/dm/quick-start-with-dm.md index cad11ae1a6ec7..8af12a4bd4513 100644 --- a/dm/quick-start-with-dm.md +++ b/dm/quick-start-with-dm.md @@ -9,7 +9,7 @@ This document describes how to migrate data from MySQL to TiDB using [TiDB Data > **Note:** > -> If your target machine's operating system supports SELinux, make sure that SELinux is **disabled**. +> If your target machine's operating system supports SELinux, ensure that SELinux is **disabled**. ## Step 1: Deploy a DM cluster From a5437a98749f31f35c3d01cb5624a65e54fa05e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dani=C3=ABl=20van=20Eeden?= Date: Wed, 18 Dec 2024 05:53:08 +0100 Subject: [PATCH 4/4] Update check-before-deployment.md Co-authored-by: Grace Cai --- check-before-deployment.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/check-before-deployment.md b/check-before-deployment.md index 109b4e82ab8d2..65e39ac4437e1 100644 --- a/check-before-deployment.md +++ b/check-before-deployment.md @@ -783,4 +783,4 @@ sudo yum -y install numactl ## Disable SELinux -Use the [getenforce(8)](https://linux.die.net/man/8/getenforce) utility to check if SELinux is disabled or set to permissive. SELinux in Enforcing mode can cause deployment failures. Consult your operating system's documentation for instructions on disabling SELinux. +Use the [getenforce(8)](https://linux.die.net/man/8/getenforce) utility to check if SELinux is disabled or set to permissive. SELinux in enforcing mode can cause deployment failures. For instructions on disabling SELinux, refer to your operating system's documentation.