Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have two Linux nodes running httpd service. When I try to add the httpd resource on the primary node, the service starts on the second node instead of starting on the primary.

What am I missing here?

Initial settings:

node vpc-storage-primary \
        attributes standby="off"
node vpc-storage-secondary \
        attributes standby="off"
property $id="cib-bootstrap-options" \
        dc-version="1.1.9-55.2-2db99f1" \
        cluster-infrastructure="classic openais (with plugin)" \
        expected-quorum-votes="2" \
        stonith-enabled="false" \
        no-quorum-policy="ignore" \
        migration-threshold="2" \
rsc_defaults $id="rsc-options" \


Last updated: Sat Jun  8 09:41:20 2013
Last change: Sat Jun  8 09:28:49 2013 via cibadmin on vpc-storage-primary
Stack: classic openais (with plugin)
Current DC: vpc-storage-primary - partition with quorum
Version: 1.1.9-55.2-2db99f1
2 Nodes configured, 2 expected votes
0 Resources configured.

Online: [ vpc-storage-primary vpc-storage-secondary ]

The service I would like to add on the primary:

crm configure primitive httpd lsb:httpd \
    op monitor interval="30s" timeout="60" \
    op start interval="0" timeout="60" \
    op stop interval="0"
share|improve this question
up vote 2 down vote accepted

The setting that is missing is the preferred node.

You can first add the resource, and configure the preferred node to run it afterwards.

It is recommended to assign a weight below the stickiness of the resource to avoid unwanted downtime in the case of failover.

Check the pacemaker docs for a complete example.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.