From 628daa3956168bb4492769bd31587cafd3ae8305 Mon Sep 17 00:00:00 2001 From: RL_MSFT <20459971+rl-msft@users.noreply.github.com> Date: Thu, 23 Apr 2020 16:49:48 +0400 Subject: [PATCH 1/2] adding local-storage clean up --- .../deployment/kubeadm/ubuntu/README.md | 37 +++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/samples/features/sql-big-data-cluster/deployment/kubeadm/ubuntu/README.md b/samples/features/sql-big-data-cluster/deployment/kubeadm/ubuntu/README.md index 067ac95417..7d68f2886b 100644 --- a/samples/features/sql-big-data-cluster/deployment/kubeadm/ubuntu/README.md +++ b/samples/features/sql-big-data-cluster/deployment/kubeadm/ubuntu/README.md @@ -31,3 +31,40 @@ In this example, we will deploy Kubernetes over multiple Linux machines (physica Simply type in "local-storage" twice (once for data, once for logs) when facing the following prompt by azdata : `Kubernetes Storage Class - Config Path: spec.storage.data.className - Description: This indicates the name of the Kubernetes Storage Class to use. You must pre-provision the storage class and the persistent volumes or you can use a built in storage class if the platform you are deploying provides this capability. - Please provide a value:` + +### local-storage Clean up + +If you removed BDC cluster that was previously deployed on Kubernetes cluster that was built using the sample scripts in this guide, you may want to clean the local-storage before using the cluster to deploy new BDC + +to clean the storage you need to follow these steps + +1) on each worker node make sure ‘/mnt/local-storage’ has only folder structure with no files, you can run ‘tree /mnt/local-storage’ for quick check +2) if you see any files you need to remove them +3) remount the volumes + +You can use the following script to clean the volumes. + +**WARNNING**: running this script will **REMOVE** all files that may exists under /mnt/local-storage folders + +run the following command to create the script + +```sh +cat > clean-volumes-agents.sh < Date: Thu, 23 Apr 2020 16:51:33 +0400 Subject: [PATCH 2/2] Update README.md --- .../sql-big-data-cluster/deployment/kubeadm/ubuntu/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/features/sql-big-data-cluster/deployment/kubeadm/ubuntu/README.md b/samples/features/sql-big-data-cluster/deployment/kubeadm/ubuntu/README.md index 7d68f2886b..3063bb97a7 100644 --- a/samples/features/sql-big-data-cluster/deployment/kubeadm/ubuntu/README.md +++ b/samples/features/sql-big-data-cluster/deployment/kubeadm/ubuntu/README.md @@ -32,7 +32,7 @@ Simply type in "local-storage" twice (once for data, once for logs) when facing `Kubernetes Storage Class - Config Path: spec.storage.data.className - Description: This indicates the name of the Kubernetes Storage Class to use. You must pre-provision the storage class and the persistent volumes or you can use a built in storage class if the platform you are deploying provides this capability. - Please provide a value:` -### local-storage Clean up +### local-storage clean up If you removed BDC cluster that was previously deployed on Kubernetes cluster that was built using the sample scripts in this guide, you may want to clean the local-storage before using the cluster to deploy new BDC