[DRBD-user] Setting up per-VM LVM volumes as individual DRBD mirrors - compatible?

Vadym Chepkov vchepkov at gmail.com
Thu Oct 25 23:36:46 CEST 2012

Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.


Is your DRBD device in "primary" state?

Cheers,
Vadym
On Oct 25, 2012 12:34 PM, "Whit Blauvelt" <whit+drbd at transpect.com> wrote:

> On Thu, Oct 25, 2012 at 11:39:14AM -0400, Vadym Chepkov wrote:
> >
> > On Oct 25, 2012, at 11:23 AM, Whit Blauvelt wrote:
> > > I should be able to stop the domain, change the middle line using
> "virsh
> > > edit" to:
> > >
> > >       <source dev='/dev/drbdN'/>
> > >
> >
> >
> > I would use a different path:
> >
> > /dev/drbd/by-res/vmN
> >
> > Easier to spot an error and you might change the device number, but name
> will still be the same.
>
> Good suggestion. Thanks.
>
> The easy road appears to be blocked, though. with this edited XML:
>
>     <disk type='block' device='disk'>
>       <driver name='qemu' type='raw'/>
>       <source dev='/dev/drbd/by-res/sql'/>
>       <target dev='hda' bus='ide'/>
>       <address type='drive' controller='0' bus='0' target='0' unit='0'/>
>     </disk>
>
> the result is:
>
>   # virsh start sql
>   error: Failed to start domain sql
>   error: unable to open disk path /dev/drbd/by-res/sql: Wrong medium type
>
> This is with virsh 0.9.12. Also fails when skipping the symlink: <source
> dev='/dev/drbd12'/>
> leads to exactly the same failure. Either I'm missing another tweak, or
> this
> setup isn't currently compatible.
>
> Whit
>
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linbit.com/pipermail/drbd-user/attachments/20121025/4a0efabe/attachment.htm>


More information about the drbd-user mailing list