<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <div class="moz-cite-prefix">On 2022-01-28 16:54, Ken Gaillot wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:29de839f9102aa31c2b1d97ccb020b15175da7fb.camel@redhat.com">
      <pre class="moz-quote-pre" wrap="">On Fri, 2022-01-28 at 16:38 -0500, Digimer wrote:
</pre>
      <blockquote type="cite">
        <pre class="moz-quote-pre" wrap="">Hi all,

   I'm trying to figure out how to move a running VM from one
pacemaker 
cluster to another. I've got the storage and VM live migration
sorted, 
but having trouble with pacemaker.

   I tried unmanaging the resource (the VM), then deleted the
resource, 
and the node got fenced. So I am assuming it thought it couldn't
stop 
the service so it self-fenced. In any case, can someone let me know
what 
the proper procedure is?

   Said more directly;

   How to I delete a resource from pacemaker (via pcs on EL8)
without 
stopping the resource?

</pre>
      </blockquote>
      <pre class="moz-quote-pre" wrap="">
Set the stop-orphan-resources cluster property to false (at least while
you move it)

The problem with your first approach is that once you remove the
resource configuration, which includes the is-managed setting,
Pacemaker no longer knows the resource is unmanaged. And even if you
set it via resource defaults or something, eventually you have to set
it back, at which point Pacemaker will still have the same response.
</pre>
    </blockquote>
    <p>Follow up;</p>
    <p>  I tried to do the following sequence;</p>
    <p>====<br>
      <font face="monospace">pcs property set
        stop-orphan-resources=false<br>
        pcs resource unmanage srv01-cs8                 # Without this,
        the resource was stopped<br>
        pcs resource delete srv01-cs8                   # Failed with
        "Warning: 'srv01-cs8' is unmanaged"<br>
        pcs resource delete srv01-cs8 --force           # Got 'Deleting
        Resource - srv01-cs8'<br>
        pcs resource status<br>
        --<br>
          * srv01-cs8   (ocf::alteeve:server):   ORPHANED Started
        an-a01n01 (unmanaged)<br>
        --<br>
      </font>====</p>
    <p>  So it seems like this doesn't delete the resource. Can I get
      some insight on how to actually delete this resource without
      disabling the VM? <br>
    </p>
    <p>Thanks!</p>
    <p>digimer<br>
    </p>
    <pre class="moz-signature" cols="72">-- 
Digimer
Papers and Projects: <a class="moz-txt-link-freetext" href="https://alteeve.com/w/">https://alteeve.com/w/</a>
"I am, somehow, less interested in the weight and convolutions of Einstein’s brain than in the near certainty that people of equal talent have lived and died in cotton fields and sweatshops." - Stephen Jay Gould</pre>
  </body>
</html>