Comece com
#> xm block-list playground
Vdev BE handle state evt-ch ring-ref BE-path
51713 0 0 4 8 8 /local/domain/0/backend/vbd/10/51713
51714 0 0 4 9 9 /local/domain/0/backend/vbd/10/51714
51729 0 0 4 10 10 /local/domain/0/backend/vbd/10/51729
51730 0 0 4 11 11 /local/domain/0/backend/vbd/10/51730
Em seguida, use xenstore-ls
(ou xsls
). Você terá algo assim:
...
51729 = ""
domain = "playground"
frontend = "/local/domain/10/device/vbd/51729"
uuid = "da5b1321-249e-c7a6-6ba8-5f5a01fe3b85"
dev = "xvdb1"
state = "4"
params = "/dev/sde1"
mode = "w"
online = "1"
frontend-id = "10"
type = "phy"
physical-device = "fd:11"
hotplug-status = "connected"
feature-barrier = "1"
sectors = "2097152"
info = "0"
sector-size = "512"
...
No caso acima, você pode ver que o dispositivo de bloco virtual /local/domain/10/device/vbd/51729
mapeia para o dispositivo físico /dev/sde1