From 1e244155d531af702a0b69ae4ce8d74d61b85439 Mon Sep 17 00:00:00 2001 From: cooper-lzy <78672629+cooper-lzy@users.noreply.github.com> Date: Fri, 28 Jan 2022 10:16:10 +0800 Subject: [PATCH 1/6] manage storage hosts --- .../manage-storage-host.md | 23 +++++++++++++++++++ mkdocs.yml | 1 + 2 files changed, 24 insertions(+) create mode 100644 docs-2.0/4.deployment-and-installation/manage-storage-host.md diff --git a/docs-2.0/4.deployment-and-installation/manage-storage-host.md b/docs-2.0/4.deployment-and-installation/manage-storage-host.md new file mode 100644 index 00000000000..5434423d40a --- /dev/null +++ b/docs-2.0/4.deployment-and-installation/manage-storage-host.md @@ -0,0 +1,23 @@ +# Manage Storage host + +From Nebula Graph version 3.0.0, the Storage hosts added in the configuration files **CANNOT** be read or written directly. The configuration files only register the Storage hosts into the Meta services. You must run the `ADD HOSTS` command to read and write data on Storage hosts. + +## Add Storage host + +Add the Storage hosts to a Nebula Graph cluster. + +```ngql +ADD HOSTS : [,: ...]; +``` + +## Drop Storage host + +Delete the Storage hosts from cluster. + +!!! note + + You can not delete an in-use Storage hoste directly. You need to delete the associated graph space before deleting the Storage host. + +```ngql +DROP HOSTS : [,: ...]; +``` \ No newline at end of file diff --git a/mkdocs.yml b/mkdocs.yml index 375dc06e00a..46531e9c128 100755 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -307,6 +307,7 @@ nav: - Deploy license: 4.deployment-and-installation/deploy-license.md - Manage Service: 4.deployment-and-installation/manage-service.md - Connect to Service: 4.deployment-and-installation/connect-to-nebula-graph.md + - Manage Storage host: 4.deployment-and-installation/manage-storage-host.md - Manage zone: 4.deployment-and-installation/5.zone.md - Upgrade: - Upgrade Nebula Graph to the current version: 4.deployment-and-installation/3.upgrade-nebula-graph/upgrade-nebula-graph-to-latest.md From 681d103053c60e909dc6a2fd1aef2cabbc2c9dd3 Mon Sep 17 00:00:00 2001 From: cooper-lzy <78672629+cooper-lzy@users.noreply.github.com> Date: Fri, 28 Jan 2022 16:07:43 +0800 Subject: [PATCH 2/6] Update docs-2.0/4.deployment-and-installation/manage-storage-host.md Co-authored-by: randomJoe211 <69501902+randomJoe211@users.noreply.github.com> --- docs-2.0/4.deployment-and-installation/manage-storage-host.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs-2.0/4.deployment-and-installation/manage-storage-host.md b/docs-2.0/4.deployment-and-installation/manage-storage-host.md index 5434423d40a..3623c220c6a 100644 --- a/docs-2.0/4.deployment-and-installation/manage-storage-host.md +++ b/docs-2.0/4.deployment-and-installation/manage-storage-host.md @@ -16,7 +16,7 @@ Delete the Storage hosts from cluster. !!! note - You can not delete an in-use Storage hoste directly. You need to delete the associated graph space before deleting the Storage host. + You can not delete an in-use Storage host directly. Delete the associated graph space before deleting the Storage host. ```ngql DROP HOSTS : [,: ...]; From 96b26b388708d2010a3a5987575a050f6f24eca5 Mon Sep 17 00:00:00 2001 From: cooper-lzy <78672629+cooper-lzy@users.noreply.github.com> Date: Fri, 28 Jan 2022 16:07:51 +0800 Subject: [PATCH 3/6] Update docs-2.0/4.deployment-and-installation/manage-storage-host.md Co-authored-by: randomJoe211 <69501902+randomJoe211@users.noreply.github.com> --- docs-2.0/4.deployment-and-installation/manage-storage-host.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs-2.0/4.deployment-and-installation/manage-storage-host.md b/docs-2.0/4.deployment-and-installation/manage-storage-host.md index 3623c220c6a..c68fea79e88 100644 --- a/docs-2.0/4.deployment-and-installation/manage-storage-host.md +++ b/docs-2.0/4.deployment-and-installation/manage-storage-host.md @@ -10,7 +10,7 @@ Add the Storage hosts to a Nebula Graph cluster. ADD HOSTS : [,: ...]; ``` -## Drop Storage host +## Drop Storage hosts Delete the Storage hosts from cluster. From 3355dd94eb8e1891fd43def6e9b67de446ddfd83 Mon Sep 17 00:00:00 2001 From: cooper-lzy <78672629+cooper-lzy@users.noreply.github.com> Date: Fri, 28 Jan 2022 16:07:57 +0800 Subject: [PATCH 4/6] Update docs-2.0/4.deployment-and-installation/manage-storage-host.md Co-authored-by: randomJoe211 <69501902+randomJoe211@users.noreply.github.com> --- docs-2.0/4.deployment-and-installation/manage-storage-host.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs-2.0/4.deployment-and-installation/manage-storage-host.md b/docs-2.0/4.deployment-and-installation/manage-storage-host.md index c68fea79e88..939c6e67819 100644 --- a/docs-2.0/4.deployment-and-installation/manage-storage-host.md +++ b/docs-2.0/4.deployment-and-installation/manage-storage-host.md @@ -2,7 +2,7 @@ From Nebula Graph version 3.0.0, the Storage hosts added in the configuration files **CANNOT** be read or written directly. The configuration files only register the Storage hosts into the Meta services. You must run the `ADD HOSTS` command to read and write data on Storage hosts. -## Add Storage host +## Add Storage hosts Add the Storage hosts to a Nebula Graph cluster. From 88cd65bba47d39e0ca1c52a057d91cc340c1c70b Mon Sep 17 00:00:00 2001 From: cooper-lzy <78672629+cooper-lzy@users.noreply.github.com> Date: Fri, 28 Jan 2022 16:08:04 +0800 Subject: [PATCH 5/6] Update docs-2.0/4.deployment-and-installation/manage-storage-host.md Co-authored-by: randomJoe211 <69501902+randomJoe211@users.noreply.github.com> --- docs-2.0/4.deployment-and-installation/manage-storage-host.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs-2.0/4.deployment-and-installation/manage-storage-host.md b/docs-2.0/4.deployment-and-installation/manage-storage-host.md index 939c6e67819..939a01abd24 100644 --- a/docs-2.0/4.deployment-and-installation/manage-storage-host.md +++ b/docs-2.0/4.deployment-and-installation/manage-storage-host.md @@ -1,4 +1,4 @@ -# Manage Storage host +# Manage Storage hosts From Nebula Graph version 3.0.0, the Storage hosts added in the configuration files **CANNOT** be read or written directly. The configuration files only register the Storage hosts into the Meta services. You must run the `ADD HOSTS` command to read and write data on Storage hosts. From f1a1d05837cdc2a37cfa63aa2f043a2de1380430 Mon Sep 17 00:00:00 2001 From: cooper-lzy <78672629+cooper-lzy@users.noreply.github.com> Date: Fri, 28 Jan 2022 16:09:11 +0800 Subject: [PATCH 6/6] Update manage-storage-host.md --- docs-2.0/4.deployment-and-installation/manage-storage-host.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs-2.0/4.deployment-and-installation/manage-storage-host.md b/docs-2.0/4.deployment-and-installation/manage-storage-host.md index 939a01abd24..7413638f816 100644 --- a/docs-2.0/4.deployment-and-installation/manage-storage-host.md +++ b/docs-2.0/4.deployment-and-installation/manage-storage-host.md @@ -1,6 +1,6 @@ # Manage Storage hosts -From Nebula Graph version 3.0.0, the Storage hosts added in the configuration files **CANNOT** be read or written directly. The configuration files only register the Storage hosts into the Meta services. You must run the `ADD HOSTS` command to read and write data on Storage hosts. +Starting from Nebula Graph 3.0.0, setting Storage hosts in the configuration files only registers the hosts on the Meta side, but does not add them into the cluster. You must run the `ADD HOSTS` statement to add the Storage hosts. ## Add Storage hosts @@ -20,4 +20,4 @@ Delete the Storage hosts from cluster. ```ngql DROP HOSTS : [,: ...]; -``` \ No newline at end of file +```