Hi,

On Wed, Mar 25, 2009 at 04:03:44PM +0200, Juha Heinanen wrote:
> while testing heartbeat/pacemaker, it would be nice if i could reset
> pacemaker crm and start from scratch.  
> 
> i know that it can be done by emptying /var/lib/heartbeat/crm and on
> both nodes and then by restarting heartbeat, but is there a command to
> do it?
> 
> i have tried by creating a config_file:
> 
> configure
> erase
> node lenny1
> node lenny2

You shouldn't need to create nodes. They are available so that
one can manage node attributes.

> primitive drbd0 ocf:heartbeat:drbd \ 
>  params drbd_resource=drbd0 \
>  op monitor role=Master interval=59s timeout=30s \
>  op monitor role=Slave interval=60s timeout=30s
> ... rest of the config ...
> 
> where lenny1 and lenny2 are my nodes, and then by giving command
> 
> crm < config_file
> 
> but it does not work.

In which way?

BTW, for heartbeat clusters, you should also remove
/var/lib/heartbeat/hostcache.

Thanks,

Dejan

> 
> -- juha
> _______________________________________________
> Linux-HA mailing list
> [email protected]
> http://lists.linux-ha.org/mailman/listinfo/linux-ha
> See also: http://linux-ha.org/ReportingProblems
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Reply via email to