Disk /dev/zd16

ChrisJM

Well-Known Member
Mar 12, 2018
71
2
48
39
Hey Guys.

Just a quick one, it maybe silly.

for example how would i know which VM Disk /dev/zd16 goes to? is it in a config file or is it mounted or a symlink somewhere?

I can see it in "zfs list" but that doesn't tell me its on disk /dev/zd16.

Any help would be great.

Using ZFS btw.

Thanks,
Chris
 
Hi,
for example how would i know which VM Disk /dev/zd16 goes to?
AFIK there is not mapping in this direction.
But you can go the other way.
Code:
ls -l /dev/zvol/<Pool>/vm-<VMID>-disk-1
[Code]
 
e.g.,
Code:
$ udevadm info /dev/zd0
P: /devices/virtual/block/zd0
N: zd0
S: rpool/swap
S: zvol/rpool/swap
E: DEVLINKS=/dev/zvol/rpool/swap /dev/rpool/swap
E: DEVNAME=/dev/zd0
E: DEVPATH=/devices/virtual/block/zd0
E: DEVTYPE=disk
E: MAJOR=230
E: MINOR=0
E: SUBSYSTEM=block
E: TAGS=:systemd:
E: USEC_INITIALIZED=5679736