[Pacemaker] mass deletion of resources

Dejan Muhamedagic dejanmm at fastmail.fm
Tue Jan 24 22:44:29 UTC 2012


Hi,

On Tue, Jan 24, 2012 at 06:38:17PM +0100, Anton Melser wrote:
> >> > 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

That sounds like pacemaker is not running. Or it is really
borked. But I guess the former.

Thanks,

Dejan

> 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
> 
> _______________________________________________
> 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