How to get the pathes and names of blockdevices (vbd) in XEN 
I always wondered how the block device (vdb) management is done in XEN for domUs without restarting the domU. After I discovered "xm block-attach" to attach ISO-Images or LVMs on the fly, I looked for a way to check which vbds are already attachmed to a domU. As there is no single command to do that, I created a script called "/usr/local/sbin/xenstore-vbdresolve" to do that lookup:
#!/bin/sh
if [ -n
"$1" ]; then
DOMUID=$(xm domid $1)
else
echo
"usage: $0 <xendomain>"
exit 1
fi
for i in $(xenstore-list /local/domain/${DOMUID}/device/vbd);
do TEMPPATH=$(xenstore-read /local/domain/${DOMUID}/device/vbd/$i/backend);
echo -n
"$(xenstore-read ${TEMPPATH}/dev): "
xenstore-read ${TEMPPATH}/params ;
done
It will deliver an output such like this example:
# xenstore-vbdresolve mydomu
hda: /dev/vg2/mydomu-raw
hdc: /install/myisoimage.iso