microsoft / sql-server-samples

Azure Data SQL Samples - Official Microsoft GitHub Repository containing code samples for SQL Server, Azure SQL, Azure Synapse, and Azure SQL Edge
Other
10.07k stars 8.88k forks source link

Sample script to deploy K8S cluster won't work on Azure as they use temporary /mnt #609

Open Guillaume-Fourrat opened 5 years ago

Guillaume-Fourrat commented 5 years ago

Hi, This is about sql-server-samples/samples/features/sql-big-data-cluster/deployment/kubeadm/ubuntu/

Script relies on volumes created in /mnt (namely create /mnt/local-storage/vol1.... /mnt/local-storage/vol25). But /mnt in AzureVM is temporary storage, so it will work but everything will be gone after VM restart.

root@xxx:/mnt# pwd
/mnt
root@xxx:/mnt# ll
total 32
drwxr-xr-x  4 root root  4096 Aug 13 08:24 ./
drwxr-xr-x 23 root root  4096 Aug 13 08:23 ../
-r--r--r--  1 root root   639 Aug 13 08:23 DATALOSS_WARNING_README.txt
drwxr-xr-x  2 root root  4096 Aug 13 08:27 local-storage/
drwx------  2 root root 16384 Aug 13 08:23 lost+found/
root@xxx:/mnt# cat DATALOSS_WARNING_README.txt
WARNING: THIS IS A TEMPORARY DISK.

Any data stored on this drive is SUBJECT TO LOSS and THERE IS NO WAY TO
RECOVER IT.

Please do not use this disk for storing any personal or application data.

For additional details to please refer to the MSDN documentation at:
http://msdn.microsoft.com/en-us/library/windowsazure/jj672979.aspx
Guillaume-Fourrat commented 5 years ago

FYI i've successfully deployed BDC over Azure VMs using modified scripts hosted here temp_repo

It's a simple removal of /mnt/ part of path so that all volumes are at /local-storage (and therefore on C: drive).