[Pacemaker] Help for my first test

Michael Schwartzkopff misch at clusterbau.com
Sat Feb 26 13:54:37 UTC 2011


On Saturday 26 February 2011 13:52:01 Arthur B. Olsen wrote:
> Im a Pacemaker newbie. I have read the docs and googled some around. But
> still i can't connect the dots.
> 
> I have two nodes.
> 
> Node1 (192.168.0.1)
> Node2 (192.168.0.2)
> 
> I want a failover ipaddress (192.168.0.3), so that when Node1 is up it has
> eth0:0 with 192.168.0.3. And if Node1 fails, Node2 get the eth0:0 with
> 192.168.0.3.
> And when Node1 comes up again it gets the shared ip back.
> 
> What i got so far is:
> crm(live)configure# show
> node Node1
> node Node2
> primitive nfs_ip ocf:heartbeat:IPaddr params ip="192.168.0.3" nic="eth0:0" 
> op monitor interval="5s" meta target-role="Started" location nfs_loc
> nfs_ip 100: Node1
> property $id="cib-bootstrap-options" 
> dc-version="1.0.9-74392a28b7f31d7ddc86689598bd23114f58978b"
> cluster-infrastructure="openais"  expected-quorum-votes="2"
> crm(live)configure#
> 
> 
> But this has no effect. Obviously im doing something wrong.
> 
> Can someone help me out here, so that i can understand it.
> 
> Thanks
> _______________________________________________
> 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://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker

Nice that you tell us that you read all. But did you also read "Clusters from 
the scratch"? Especially chapter 5.1

http://www.clusterlabs.org/doc/en-
US/Pacemaker/1.1/html/Clusters_from_Scratch/ch05.html

where it says:

"Before we make any changes, its a good idea to check the validity of the 
configuration. 
(...)
As you can see, the tool has found some errors. 
(...)
To disable STONITH, we set the stonith-enabled cluster option to false. 

crm configure property stonith-enabled=false
(...)
"
Please als read 5.2 and 5.3 for a good start.

Cheers,

-- 
Dr. Michael Schwartzkopff
Guardinistr. 63
81375 München

Tel: (0163) 172 50 98
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <https://lists.clusterlabs.org/pipermail/pacemaker/attachments/20110226/9ddfcf89/attachment-0004.sig>


More information about the Pacemaker mailing list