這邊介紹簡單備分Azure Storage Account到地端的步驟,主要針對想要把Storage Account資料全部下載到地端需求的人來介紹。
2022年2月23日 星期三
Azure | Azcopy copy --help說明
以下是Azcopy copy的說明文件
Copies source data to a destination location. The supported directions are:
- local <-> Azure Blob (SAS or OAuth authentication)
- local <-> Azure Files (Share/directory SAS authentication)
- local <-> ADLS Gen 2 (SAS, OAuth, or SharedKey authentication)
- Azure Blob (SAS or public) -> Azure Blob (SAS or OAuth authentication)
- Azure Blob (SAS or public) -> Azure Files (SAS)
- Azure Files (SAS) -> Azure Files (SAS)
- Azure Files (SAS) -> Azure Blob (SAS or OAuth authentication)
- AWS S3 (Access Key) -> Azure Block Blob (SAS or OAuth authentication)
- Google Cloud Storage (Service Account Key) -> Azure Block Blob (SAS or OAuth authentication) [Preview]
Please refer to the examples for more information.
2022年1月28日 星期五
GPU | 如何在Linux下查詢目前GPU的PCIe速度 8x 16x
Linux沒辦法像Windows用CPUz查到目前GPU在PCIe的速度,如果是用Nvidia的顯卡只要用nvidia-smi指令就可以查到,如下面所示,目前使用16x的速度。
2022年1月13日 星期四
k8s | 使用NVIDIA k8s-device-plugin
這邊紀錄使用NVIDIA k8s-device-plugin遇到的坑,如果看官網描述會感覺很簡單,大概幾個步驟安裝就結束了,我是真的遇到一堆坑花了很多時間才解決。
第一坑遇到了安裝完後,無法看到GPU資源的問題,中間我換過不同版本的Plugin,也試著自己Docker build plugin,但都無法解決問題,這時候看Plugin錯誤訊息如下,顯示無法載入NVML模組。
# 錯誤訊息
Loading NVML
Failed to initialize NVML: could not load NVML library.
If this is a GPU node, did you set the docker default runtime to `nvidia`?
You can check the prerequisites at: https://github.com/NVIDIA/k8s-device-plugin#prerequisites
You can learn how to set the runtime at: https://github.com/NVIDIA/k8s-device-plugin#quick-start
後來跟大神友人討論之後,他懷疑是CRI-O的問題,結果還真的是這問題,詳情請看這邊,接著我重建Cluster,不使用CRI-O就可以找到GPU資源,所以如果安裝完後找不到GPU資源,那可能是這個原因,以下就簡單紀錄安裝過程。
2022年1月12日 星期三
k8s | memory.swap.max or memory.memsw.limit_in_bytes: no such file or directory error message
建立完K8s cluster後,查看Pods狀態時,發現coredns佈署失敗查看log顯示內容如下所示,由於我用兩個不同Cgroup版本都有遇到所以訊息會不同,錯誤訊息的意思是找不到配置swap的檔案。
Cgroup V1:memory.memsw.limit_in_bytes
Cgroup V2:memory.swap.max
2022年1月11日 星期二
2022年1月6日 星期四
k8s | 重建Kubenetes Cluster
重建Kubenetes Cluster只需要下kubeadm reset,然後再init就可以,reset指令下完後,會有提示說kubeconfig要手動刪除,如下面訊息。
