[Pacemaker] Cannot Create Primitive in CRM Shell

Dan Frincu df.cluster at gmail.com
Mon Jan 9 11:42:29 CET 2012


Hi,

On Fri, Jan 6, 2012 at 11:24 PM, Andrew Martin <amartin at xes-inc.com> wrote:
> Hello,
>
> I am working with DRBD + Heartbeat + Pacemaker to create a 2-node
> highly-available cluster. I have been following this official guide on
> DRBD's website for configuring all of the components:
> http://www.linbit.com/fileadmin/tech-guides/ha-nfs.pdf
>
> However, once I go to configure the primitives in pacemaker's CRM shell
> (section 4.1 in the PDF above) I am unable to create the primitive. For
> example, I enter the following configuration for a DRBD device called
> "drive":
> primitive p_drbd_drive \
>
>   ocf:linbit:drbd \
>
>   params drbd_resource="drive" \
>
>   op monitor interval="15" role="Master" \
>
>   op monitor interval="30" role="Slave"
>
> After entering all of these lines I hit enter and nothing is returned - it
> appears frozen and I am never returned to the "crm(live)configure# " shell.
> An strace of the process does not reveal any obvious blocks. I have also
> tried entering the entire configuration on a single line with the same
> result.

I would recommend going through this guide first
http://www.clusterlabs.org/doc/en-US/Pacemaker/1.1/html-single/Pacemaker_Explained/

>
> What can I try to debug this and move forward with configuring pacemaker? Is
> there a command I can use to completely clear out pacemaker to perhaps start
> fresh?

crm configure erase

It will however do what it says, so use it with caution, you have been warned.

>
> Thanks,
>
> Andrew
>
> _______________________________________________
> 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
>



-- 
Dan Frincu
CCNA, RHCE



More information about the Pacemaker mailing list