You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: samples/features/sql-big-data-cluster/deployment/kubeadm/ubuntu/README.md
+37Lines changed: 37 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,3 +31,40 @@ In this example, we will deploy Kubernetes over multiple Linux machines (physica
31
31
Simply type in "local-storage" twice (once for data, once for logs) when facing the following prompt by azdata :
32
32
33
33
`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:`
34
+
35
+
### local-storage Clean up
36
+
37
+
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
38
+
39
+
to clean the storage you need to follow these steps
40
+
41
+
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
42
+
2) if you see any files you need to remove them
43
+
3) remount the volumes
44
+
45
+
You can use the following script to clean the volumes.
46
+
47
+
**WARNNING**: running this script will **REMOVE** all files that may exists under /mnt/local-storage folders
48
+
49
+
run the following command to create the script
50
+
51
+
```sh
52
+
cat > clean-volumes-agents.sh <<EOF
53
+
#!/bin/bash -e
54
+
55
+
# num of persistent volumes
56
+
PV_COUNT=25
57
+
58
+
for i in \$(seq 1 \$PV_COUNT); do
59
+
60
+
vol="vol\$i"
61
+
62
+
sudo rm -rf /mnt/local-storage/\$vol/*
63
+
64
+
mount --bind /mnt/local-storage/\$vol /mnt/local-storage/\$vol
0 commit comments