compute/storage.md
... ...
@@ -42,3 +42,12 @@ Should be good to go to restart the apps. Destroy any snapshots when you're read
42 42
/sys/devices/pci0000:80/0000:80:03.2/0000:b0:00.0/host10/port-10:0/expander-10:0/port-10:0:5/expander-10:10/sas_device/expander-10:10
43 43
# ls -d /sys/devices/pci0000:80/0000:80:03.2/0000:b0:00.0/host10/port-10:0/expander-10:0/port*/expander*/port*/end_device*/target*/*/block/* | awk -F/ '{print $NF}'
44 44
```
45
+
46
+## Find disk hardware path
47
+```
48
+# readlink -f /sys/block/<dev>/device
49
+```
50
+e.g.:
51
+```
52
+# for dev in $(zpool list -v -L tank | grep '^[[:space:]]*sd' | awk '{print $1}'); do readlink -f /sys/block/$dev/device; done | sort
53
+```