<p>Is your DRBD device in "primary" state?</p>
<p>Cheers,<br>
Vadym</p>
<div class="gmail_quote">On Oct 25, 2012 12:34 PM, "Whit Blauvelt" <<a href="mailto:whit%2Bdrbd@transpect.com">whit+drbd@transpect.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On Thu, Oct 25, 2012 at 11:39:14AM -0400, Vadym Chepkov wrote:<br>
><br>
> On Oct 25, 2012, at 11:23 AM, Whit Blauvelt wrote:<br>
> > I should be able to stop the domain, change the middle line using "virsh<br>
> > edit" to:<br>
> ><br>
> > <source dev='/dev/drbdN'/><br>
> ><br>
><br>
><br>
> I would use a different path:<br>
><br>
> /dev/drbd/by-res/vmN<br>
><br>
> Easier to spot an error and you might change the device number, but name will still be the same.<br>
<br>
Good suggestion. Thanks.<br>
<br>
The easy road appears to be blocked, though. with this edited XML:<br>
<br>
<disk type='block' device='disk'><br>
<driver name='qemu' type='raw'/><br>
<source dev='/dev/drbd/by-res/sql'/><br>
<target dev='hda' bus='ide'/><br>
<address type='drive' controller='0' bus='0' target='0' unit='0'/><br>
</disk><br>
<br>
the result is:<br>
<br>
# virsh start sql<br>
error: Failed to start domain sql<br>
error: unable to open disk path /dev/drbd/by-res/sql: Wrong medium type<br>
<br>
This is with virsh 0.9.12. Also fails when skipping the symlink: <source dev='/dev/drbd12'/><br>
leads to exactly the same failure. Either I'm missing another tweak, or this<br>
setup isn't currently compatible.<br>
<br>
Whit<br>
<br>
<br>
<br>
<br>
</blockquote></div>