On Thursday, July 11, 2013, Lars Marowsky-Bree wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">No. But this is actually not needed at all.<br>
<br>
What you want is a Xen block script that switches the primary/secondary<br>
mode at the right time.</blockquote><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> </blockquote><div><br></div><div>Are you sure? I think XEN live migration needs two primaries to succeed (for a very short period, but anyway).</div>
<div>I'm using XEN's own DRBD scripts instead of having Pacemaker manage them, so if a fast secondary/primary swap would be possible, I'd image the script would already use it.</div><div><br></div><div>Anyway, yesterday I actually wrote a bash script that, given only a XEN domain's name, finds out which DRBD resources it uses, temporarily enables a dual-primary mode for them, does the migration and then disallows dual primary again.</div>
<div>=> it's definitely possible to automate the process with DRBD 8.4, so I'd imagine a Pacemaker script wouldn't be impossible either. Unless there are some architectural obstacles, of course. I'm not familiar/confident enough with Pacemaker to try and hack it in myself<span></span>, though.</div>
<br>-Jarno