I am using Centos 5.2 for both DomU and
Dom0. I used “xm block-attach” to attach a LV to a DomU and mounted
to DomU’s /mnt.
I tried to run “xm block-detach vm1 /dev/sdb”,
I find that this command will hold for long time as DomU has not umount /mnt. I
have done an experiment by running “time xm block-detach vm1 /dev/sdb”.
I find that this command needs 1min 40s to timeout. Any method to shorten this
[root@localhost] time xm block-detach vm1
Error: Device /dev/sdf (vbd) could not be
Usage: xm block-detach <Domain>
Destroy a domain's virtual block device.
P.S. I tried xm block-detach vm1 /dev/sdb –force
, this command will result hang of DomU.