[Pacemaker] mass deletion of resources
Jake Smith
jsmith at argotec.com
Tue Jan 24 17:51:20 UTC 2012
----- Original Message -----
> From: "Anton Melser" <melser.anton at gmail.com>
> To: "Jake Smith" <jsmith at argotec.com>, "The Pacemaker cluster resource manager" <pacemaker at oss.clusterlabs.org>
> Sent: Tuesday, January 24, 2012 12:38:17 PM
> Subject: Re: [Pacemaker] mass deletion of resources
>
> >> > I can't see how to list the options available - I'm obviously
> >> > missing
> >> > that last bit that would enable me to get the answers for
> >> > myself...
> >>
> >> Actually, is it suicide to try and modify
> >> /var/lib/heartbeat/crm/cib.xml directly and remove (almost) all
> >> the
> >> superfluous nodes?
> >> I'll back up and give it a try...
> >> A
> >>
> >
> > Don't know much about that but yes my syntax was wrong it's "crm
> > configure property stop-all-resources=true"
> >
> > But to you're other question the shell is much more helpful with
> > command completion and help..
> >
> > $crm
> >
> > then "configure"
> >
> > then "help" and/or "help command"
> >
> > tab twice for command list
> >
> > partial command plus tab to complete ( i.e. conf + tab)
> >
> > Properties don't have help but if you start typing one in
> >
> > property stop-al + tab
> >
> > it will complete them up to the point you have to fill in (true or
> > false in this case).
> >
> > commit to apply configure changes
> >
> > up to go up a level
> > quit to exit
>
> The plot thickens...
>
> [root at FW1 crm]# crm
> crm(live)# configure
> crm(live)configure# property st
> start-failure-is-fatal= startup-fencing= stonith-action=
> stonith-enabled= stonith-timeout=
> stop-all-resources= stop-orphan-actions=
> stop-orphan-resources=
> crm(live)configure# property stop-all-resources=true
> crm(live)configure# commit
> Signon to CIB failed: reply failed
> Init failed, could not perform requested operations
> ERROR: cannot parse xml: no element found: line 1, column 0
> ERROR: cib-bootstrap-options: attribute stop-all-resource does not
> exist
> Do you still want to commit?
>
> I'm thinking reinstall but is there no way to just delete the config?
> I was just going to have at cib.xml but there seems to be a hash...
> Cheers
> A
>
How about
crm node standby (nodename)
for both nodes - should stop all resources with both nodes offline
Then try erase
or delete nodes...
or just stop pacemaker and then move the /var/lib/heartbeat/crm directory somewhere else (just in case) then try starting pacemaker again...
More information about the Pacemaker
mailing list