Skip to content
Snippets Groups Projects
Commit 4662f6a1 authored by Pierre Ozoux's avatar Pierre Ozoux
Browse files

Adds procedure to find pv given the dm linux device

parent 6015fad4
No related branches found
No related tags found
No related merge requests found
When you use LVM, in the USE node monitoring dashboard, you see disk saturation, by device mapper (dm).
The challenge is to map this to the kubernetes pv, this is how to do:
On the node, run the follwoing command:
```
dmsetup ls --tree -o blkdevname | grep dm-80
data--1-small--22 <dm-80> (253:80)
```
And then, run this on kubernetes:
```
k get pv -o custom-columns=NAME:metadata.name,PATH:spec.local.path,PVC:spec.claimRef.name,NODE:spec.nodeAffinity.required.nodeSelectorTerms[0].matchExpressions[0].values[0] | grep nodename | grep vol_1_22
local-pv-ea776176 /mnt/small/vol_1_22 pgdata-pg-xx-1 nodename
```
Now you know the responsible!
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment