Skip to content

Commit

Permalink
Update csi-debug.md
Browse files Browse the repository at this point in the history
  • Loading branch information
andyzhangx authored Apr 26, 2020
1 parent 741f43d commit ab3ba13
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/csi-debug.md
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
## CSI driver troubleshooting guide
### Case#1: volume create/delete issue
- locate csi driver pod
```sh
```console
$ kubectl get po -o wide -n kube-system | grep csi-blobfuse-controller
NAME READY STATUS RESTARTS AGE IP NODE
csi-blobfuse-controller-56bfddd689-dh5tk 5/5 Running 0 35s 10.240.0.19 k8s-agentpool-22533604-0
csi-blobfuse-controller-56bfddd689-sl4ll 5/5 Running 0 35s 10.240.0.23 k8s-agentpool-22533604-1
```
- get csi driver logs
```sh
```console
$ kubectl logs `kubectl get po -n kube-system | grep csi-blobfuse-controller | cut -d ' ' -f1` -c blobfuse -n kube-system > csi-blobfuse-controller.log
```
> note: there could be multiple controller pods, if there are no helpful logs, try to get logs from other controller pods
### Case#2: volume mount/unmount failed
- locate csi driver pod and make sure which pod do tha actual volume mount/unmount
```
```console
$ kubectl get po -o wide -n kube-system | grep csi-blobfuse-node
NAME READY STATUS RESTARTS AGE IP NODE
csi-blobfuse-node-cvgbs 3/3 Running 0 7m4s 10.240.0.35 k8s-agentpool-22533604-1
csi-blobfuse-node-dr4s4 3/3 Running 0 7m4s 10.240.0.4 k8s-agentpool-22533604-0
```

- get csi driver logs
```sh
```console
$ kubectl logs csi-blobfuse-node-cvgbs -c blobfuse -n kube-system > csi-blobfuse-node.log
```

0 comments on commit ab3ba13

Please sign in to comment.