[Pacemaker] how to delete a virtualdomain when it is running?

Dejan Muhamedagic dejanmm at fastmail.fm
Wed Sep 19 06:54:40 EDT 2012


Hi,

On Wed, Sep 19, 2012 at 07:47:23AM +0000, Kashif Jawed Siddiqui wrote:
> Hi,
>  
>        I try to delete a resource XYZ of type ocf:heartbeat:dummy by using the below
> 
>       crm resource unmanage XYZ
> 
>       crm configure property stop-orphan-resources=false
> 
>       Then, 
>       crm configure delete XYZ

>       But the delete fails. WHy ?  ?? ?? ?

The shell still thinks that the resource is running.
That has been fixed about a year ago, i.e. it takes into account
also if the resource is unmanaged or the cluster in the
maintenance mode. But that fix never made it in any of
the pacemaker releases. You'll need to use crm_resource:

# crm_resource -D -t primitive -r XYZ

Thanks,

Dejan


> Regards,
> Kashif Jawed Siddiqui
> ***************************************************************************************
> This e-mail and attachments contain confidential information from HUAWEI, which is intended only for the person or entity whose address is listed above. Any use of the information contained herein in any way (including, but not limited to, total or partial disclosure, reproduction, or dissemination) by persons other than the intended recipient's) is prohibited. If you receive this e-mail in error, please notify the sender by phone or email immediately and delete it!
> 
> ________________________________________
> From: Dejan Muhamedagic [dejanmm at fastmail.fm]
> Sent: Monday, August 13, 2012 8:21 PM
> To: The Pacemaker cluster resource manager
> Subject: Re: [Pacemaker] how to delete a virtualdomain when it is running?
> 
> Hi,
> 
> On Thu, Aug 09, 2012 at 06:50:45PM +0800, cherish wrote:
> > I have a virtual machine ,VM_TEST,running in node h10_150.I want to delete it from the cluster, and let it run in the node h10_150(Now ,the virtual machine is not belong to the cluster ,it is a Stand-alone virtual machine ), but I dont want to interrupt the interaction of the virtual machine .How can I do for this?
> 
> Put the resource in the unmanaged mode:
> 
> # crm resource meta VM_TEST is-managed false
> 
> Tell pacemaker not to remove deleted resources:
> 
> # crm configure property stop-orphan-resources=false
> 
> Remove the resource:
> 
> # crm configure delete VM_TEST
> 
> Remove operation records:
> 
> # crm resource cleanup VM_TEST
> 
> Set removing deleted resources (optional):
> 
> # crm configure property stop-orphan-resources=false
> 
> Thanks,
> 
> Dejan
> 
> > _______________________________________________
> > Pacemaker mailing list: Pacemaker at oss.clusterlabs.org
> > http://oss.clusterlabs.org/mailman/listinfo/pacemaker
> >
> > Project Home: http://www.clusterlabs.org
> > Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
> > Bugs: http://bugs.clusterlabs.org
> 
> 
> _______________________________________________
> Pacemaker mailing list: Pacemaker at oss.clusterlabs.org
> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
> 
> Project Home: http://www.clusterlabs.org
> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
> Bugs: http://bugs.clusterlabs.org
> _______________________________________________
> Pacemaker mailing list: Pacemaker at oss.clusterlabs.org
> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
> 
> Project Home: http://www.clusterlabs.org
> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
> Bugs: http://bugs.clusterlabs.org




More information about the Pacemaker mailing list