Skip to content

Commit 5007562

Browse files
authored
Update csi-debug.md
1 parent 94a0519 commit 5007562

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

docs/csi-debug.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,5 +109,36 @@ mkdir /tmp/test
109109
mount -t nfs -o sec=sys,vers=3,nolock accountname.blob.core.windows.net:/accountname/container-name /tmp/test
110110
```
111111

112+
<details><summary>
113+
Get client-side logs on AKS Linux node if there is mount error
114+
</summary>
115+
116+
```console
117+
# get ama-logs pod which is running on the AKS Linux node
118+
kubectl get po -n kube-system -o wide | grep ama-logs
119+
# get blobfuse logs
120+
kubectl -n kube-system cp ama-logs-xxxx:/var/log/blobfuse.log /tmp/blobfuse.log
121+
# get blobfuse2 logs
122+
kubectl -n kube-system cp ama-logs-xxxx:/var/log/blobfuse2.log /tmp/blobfuse2.log
123+
```
124+
125+
</details>
126+
127+
<details><summary>
128+
Get client-side logs on Linux node if there is mount error
129+
</summary>
130+
131+
```console
132+
kubectl debug node/node-name --image=nginx
133+
# get blobfuse logs
134+
kubectl cp node-debugger-node-name-xxxx:/host/var/log/blobfuse.log /tmp/blobfuse.log
135+
# get blobfuse2 logs
136+
kubectl cp node-debugger-node-name-xxxx:/host/var/log/blobfuse2.log /tmp/blobfuse2.log
137+
#after log collected, delete the debug pod by:
138+
kubectl delete po node-debugger-node-name-xxxx
139+
```
140+
141+
</details>
142+
112143
### Tips
113144
- [Errors when mounting an Azure Blob storage container](https://learn.microsoft.com/en-us/troubleshoot/azure/azure-kubernetes/mounting-azure-blob-storage-container-fail)

0 commit comments

Comments
 (0)