xl doesn't handle disk scripts correctly
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
xen (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
When set as follows
disk = [ 'script=block-drbd, vdev=xvda2, access=rw, target=domu-disk' ]
where domu-disk is drbd resource ( can be found as /dev/drbd_
xl create does start drbd-block script AFTER trying to attach disk and launching bootloader, which results in fail as drbd resource cannot be mounted in secondary role.
When conf changed to use target=
The script will be launched and disk attached correctly when using kernel and ramdisk from outside of domu, which proves the wrong order of firing the scripts and correctness of drbd-block itself.
/etc/xen/
There are some interesting talks in this thread: http://