<div dir="ltr"><span style="font-family:arial,sans-serif;font-size:14px">> Hi Cherish,</span><br style="font-family:arial,sans-serif;font-size:14px"><span style="font-family:arial,sans-serif;font-size:14px">></span><br style="font-family:arial,sans-serif;font-size:14px">
<span style="font-family:arial,sans-serif;font-size:14px">> On Wed, Dec 19, 2012 at 1:11 AM, bin chen <</span><a href="mailto:free2coder@gmail.com" style="font-family:arial,sans-serif;font-size:14px">free2coder@gmail.com</a><span style="font-family:arial,sans-serif;font-size:14px">> wrote:</span><br style="font-family:arial,sans-serif;font-size:14px">
<span style="font-family:arial,sans-serif;font-size:14px">></span><br style="font-family:arial,sans-serif;font-size:14px"><span style="font-family:arial,sans-serif;font-size:14px">>> Hi,all</span><br style="font-family:arial,sans-serif;font-size:14px">
<span style="font-family:arial,sans-serif;font-size:14px">>>         My cluster is pacemaker 1.1.7 + corosync 2.0. I have write a</span><br style="font-family:arial,sans-serif;font-size:14px"><span style="font-family:arial,sans-serif;font-size:14px">>> resource agent to manage the virtual machine.The RA supports</span><br style="font-family:arial,sans-serif;font-size:14px">
<span style="font-family:arial,sans-serif;font-size:14px">>> start,stop,migrate_from,</span><span style="font-family:arial,sans-serif;font-size:14px">migrate_to,monitor.</span><br style="font-family:arial,sans-serif;font-size:14px">
<span style="font-family:arial,sans-serif;font-size:14px">>>         But when I try to migrate a running cluster vm(resource name is</span><br style="font-family:arial,sans-serif;font-size:14px"><span style="font-family:arial,sans-serif;font-size:14px">>> dcbh6f1c-GtNhnB-8597) from the host(h66)  to a target host (h65),the</span><br style="font-family:arial,sans-serif;font-size:14px">
<span style="font-family:arial,sans-serif;font-size:14px">>> cluster just stops it in host A,and then start it in host B.</span><br style="font-family:arial,sans-serif;font-size:14px"><span style="font-family:arial,sans-serif;font-size:14px">>></span><br style="font-family:arial,sans-serif;font-size:14px">
<span style="font-family:arial,sans-serif;font-size:14px">></span><br style="font-family:arial,sans-serif;font-size:14px"><span style="font-family:arial,sans-serif;font-size:14px">></span><br style="font-family:arial,sans-serif;font-size:14px">
<span style="font-family:arial,sans-serif;font-size:14px">> Can we safely assume that you are certain you have live migration working</span><br style="font-family:arial,sans-serif;font-size:14px"><span style="font-family:arial,sans-serif;font-size:14px">> without the cluster involved?  E.g. you can do an 'xm migrate' or 'virsh</span><br style="font-family:arial,sans-serif;font-size:14px">
<span style="font-family:arial,sans-serif;font-size:14px">> migrate', whatever you're using to manage your VMs?</span><br style="font-family:arial,sans-serif;font-size:14px"><span style="font-family:arial,sans-serif;font-size:14px">></span><br style="font-family:arial,sans-serif;font-size:14px">
<span style="font-family:arial,sans-serif;font-size:14px">> Have you set "allow-migrate=true" for the VM resource?  This snip is</span><br style="font-family:arial,sans-serif;font-size:14px"><span style="font-family:arial,sans-serif;font-size:14px">> showing the Xen RA, but the VirtualDomain RA has the same option, I believe:</span><br style="font-family:arial,sans-serif;font-size:14px">
<span style="font-family:arial,sans-serif;font-size:14px">></span><br style="font-family:arial,sans-serif;font-size:14px"><span style="font-family:arial,sans-serif;font-size:14px">> ---- 8< ----</span><br style="font-family:arial,sans-serif;font-size:14px">
<span style="font-family:arial,sans-serif;font-size:14px">> primitive www3 ocf:heartbeat:Xen \</span><br style="font-family:arial,sans-serif;font-size:14px"><span style="font-family:arial,sans-serif;font-size:14px">> params xmfile="/etc/xen/www3" \</span><br style="font-family:arial,sans-serif;font-size:14px">
<span style="font-family:arial,sans-serif;font-size:14px">> meta allow-migrate="true" target-role="Started" is-managed="true" \</span><br style="font-family:arial,sans-serif;font-size:14px">
<span style="font-family:arial,sans-serif;font-size:14px">> ---- 8< ----</span><br style="font-family:arial,sans-serif;font-size:14px"><span style="font-family:arial,sans-serif;font-size:14px">></span><br style="font-family:arial,sans-serif;font-size:14px">
<span style="font-family:arial,sans-serif;font-size:14px">> If you already have that set, then your cluster configuration would be</span><br style="font-family:arial,sans-serif;font-size:14px"><span style="font-family:arial,sans-serif;font-size:14px">> good to see.</span><br style="font-family:arial,sans-serif;font-size:14px">
<span style="font-family:arial,sans-serif;font-size:14px">></span><br style="font-family:arial,sans-serif;font-size:14px"><span style="font-family:arial,sans-serif;font-size:14px">> Regards,</span><br style="font-family:arial,sans-serif;font-size:14px">
<span style="font-family:arial,sans-serif;font-size:14px">> Mark</span><br style="font-family:arial,sans-serif;font-size:14px"><span style="font-family:arial,sans-serif;font-size:14px">></span><br><div><span style="font-family:arial,sans-serif;font-size:14px"><br>
</span></div><div style><font face="arial, sans-serif"><span style="font-size:14px">Hi Mark,</span></font></div><div style><font face="arial, sans-serif"><span style="font-size:14px">Thanks very much! I have  solved my problem by setting "a</span></font><span style="font-family:arial,sans-serif;font-size:14px">llow-migrate=true</span><span style="font-size:14px;font-family:arial,sans-serif">" for my VM resource.and I find something for migration in pacemaker-explained:</span></div>
<div style><div><font face="arial, sans-serif"><span style="font-size:14px">9.3.4.1. Migration Checklist</span></font></div><div><font face="arial, sans-serif"><span style="font-size:14px">• The resource may not be a clone.</span></font></div>
<div><font face="arial, sans-serif"><span style="font-size:14px">• The resource must use an OCF style agent.</span></font></div><div><font face="arial, sans-serif"><span style="font-size:14px">• The resource must not be in a failed or degraded state.</span></font></div>
<div><font face="arial, sans-serif"><span style="font-size:14px">• The resource must not, directly or indirectly, depend on any primitive or group resources.</span></font></div><div><font face="arial, sans-serif"><span style="font-size:14px">• The resources must support two new actions: migrate_to and migrate_from and advertise them in its</span></font></div>
<div><font face="arial, sans-serif"><span style="font-size:14px">metadata.</span></font></div><div><font face="arial, sans-serif"><span style="font-size:14px">-->The resource must have the allow-migrate meta-attribute set to true (not the default).</span></font></div>
</div><div style><span style="font-size:14px;font-family:arial,sans-serif"><br></span></div><div style><span style="font-size:14px;font-family:arial,sans-serif"><br></span></div><div style><span style="font-size:14px;font-family:arial,sans-serif">I am so careless :).Thanks for your help.</span></div>
<div style><span style="font-size:14px;font-family:arial,sans-serif">I </span></div></div>