[Pacemaker] pcs equivalent of crm configure erase
Andreas Mock
andreas.mock at web.de
Tue Apr 16 14:28:00 UTC 2013
Hi Rastislav,
thank you for your hints.
In this case, only to rely on pcs, I could
probably use the following to get the list
of resources:
pcs resource show --all | perl -M5.010 -ane 'say $F[1] if $F[0] eq
"Resource:"'
Best regards
Andreas Mock
-----Ursprüngliche Nachricht-----
Von: Rasto Levrinc [mailto:rasto.levrinc at gmail.com]
Gesendet: Dienstag, 16. April 2013 10:45
An: The Pacemaker cluster resource manager
Betreff: Re: [Pacemaker] pcs equivalent of crm configure erase
On Tue, Apr 16, 2013 at 9:38 AM, Andreas Mock <andreas.mock at web.de> wrote:
> Hi all,
>
> I try to bring that topic up once again because
> it's still unresolved for me:
>
> a) How can I do the equivalent of 'crm configure erase'
> in pcs? Is there a way?
>
> b) If I can't do it woith pcs, is there a reliable
> and secure way to do it with pacemaker low level tools?
I don't think so. cibadmin has a drastic version of erase, but this is
probably not what you want. If you don't want to use any higher level
tools, the best way is to probably make a loop and use pcs to remove the
resources, since it also removes also the constraints, not sure about other
objects.
something like:
for r in `crm_resource -l`; do pcs resource delete $r; done
But test it first, I haven't used pcs myself yet.
Rasto
--
Dipl.-Ing. Rastislav Levrinc
rasto.levrinc at gmail.com
Linux Cluster Management Console
http://lcmc.sf.net/
_______________________________________________
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