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

Felix Frank ff at mpexnet.de
Mon Oct 29 10:32:23 CET 2012

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


Hi,

On 10/28/2012 06:25 PM, Whit Blauvelt wrote:
> On Thu, Oct 25, 2012 at 12:34:40PM -0400, Whit Blauvelt wrote:
> 
> Just a note. The edit of the source dev in the kvm xml file did work for one
> test VM (once I had the drbd set to primary - duh). But it DID NOT work for
> the next one I tried it on. The VM after the change could not fully boot. So
> if someone in the future makes the initial mistake I did re layering drbd
> and raw VMs on individual LVM volumes, the short-cut solution of simply
> changing the xml to point to by DRBD partition name rather than LVM partion
> name is not safe. The failed instance got part way into booting, but failed
> to find and mount whole partitions within the VM.

More details would be appreciated. Did the afflicted VM have multiple
<disk> sections in its config? Where all of them migrated to DRBD?

Or was the original LV (and now, the DRBD) partitioned?

Thanks,
Felix

>> The easy road ... 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>



More information about the drbd-user mailing list