Re: [Pacemaker] [PATCH] low: remove .cvsignore files

2010-07-14 Thread Andrew Beekhof
Handy for syncing code using rsync (for quick builds), but yeah, time
for these to die.

On Wed, Jul 14, 2010 at 3:33 PM, Simon Horman  wrote:
> # HG changeset patch
> # User Simon Horman 
> # Date 1279093189 -32400
> # Node ID d5babedab4ea558b86d79c4a6daeb6cba01ca8ae
> # Parent  7499efa9c2a3f8c5c6396dc6c3631e9f3898547e
> low: remove .cvsignore files
>
> diff -r 7499efa9c2a3 -r d5babedab4ea .cvsignore
> --- a/.cvsignore        Wed Jan 07 15:02:59 2009 +0100
> +++ /dev/null   Thu Jan 01 00:00:00 1970 +
> @@ -1,41 +0,0 @@
> -heartbeat*.tar.gz
> -heartbeat-2.*
> -compile
> -configure
> -configure.status
> -configure.lineno
> -depcomp
> -aclocal.m4
> -autom4te.cache
> -libtool
> -ltmain.sh
> -ltconfig
> -libltdl
> -mkinstalldirs
> -install-sh
> -missing
> -config.*
> -Makefile.in
> -Makefile
> -copyright-stamp
> -install-stamp
> -build-stamp
> -.*.swp
> -autom4te*
> -README
> -patches
> -updates
> -libtool.m4
> -ltdl.m4
> -*.beam
> -parser-messages
> -MISC_ERRORS
> -cscope.files
> -cscope.out
> -logs
> -stringlen
> -libltdl.tar
> -hg_archival.txt
> -autoconf
> -autoheader
> -automake
> diff -r 7499efa9c2a3 -r d5babedab4ea build/pkg/.cvsignore
> --- a/build/pkg/.cvsignore      Wed Jan 07 15:02:59 2009 +0100
> +++ /dev/null   Thu Jan 01 00:00:00 1970 +
> @@ -1,8 +0,0 @@
> -Makefile
> -Makefile.in
> -tmpinst
> -stamp-tmpinst
> -packages
> -*.beam
> -parser-messages
> -MISC_ERRORS
> diff -r 7499efa9c2a3 -r d5babedab4ea build/pkg/InfoFiles/.cvsignore
> --- a/build/pkg/InfoFiles/.cvsignore    Wed Jan 07 15:02:59 2009 +0100
> +++ /dev/null   Thu Jan 01 00:00:00 1970 +
> @@ -1,7 +0,0 @@
> -prototype
> -pkginfo
> -*.beam
> -parser-messages
> -MISC_ERRORS
> -preinstall
> -postinstall
> diff -r 7499efa9c2a3 -r d5babedab4ea build/port/.cvsignore
> --- a/build/port/.cvsignore     Wed Jan 07 15:02:59 2009 +0100
> +++ /dev/null   Thu Jan 01 00:00:00 1970 +
> @@ -1,4 +0,0 @@
> -Makefile
> -Makefile.in
> -portMakefile
> -heartbeat.tar.gz
> diff -r 7499efa9c2a3 -r d5babedab4ea build/port/heartbeat/.cvsignore
> --- a/build/port/heartbeat/.cvsignore   Wed Jan 07 15:02:59 2009 +0100
> +++ /dev/null   Thu Jan 01 00:00:00 1970 +
> @@ -1,4 +0,0 @@
> -pkg-deinstall
> -pkg-descr
> -pkg-install
> -pkg-plist
> diff -r 7499efa9c2a3 -r d5babedab4ea cib/.cvsignore
> --- a/cib/.cvsignore    Wed Jan 07 15:02:59 2009 +0100
> +++ /dev/null   Thu Jan 01 00:00:00 1970 +
> @@ -1,12 +0,0 @@
> -Makefile
> -Makefile.in
> -.libs
> -*.la
> -*.lo
> -cib
> -cibpipe
> -cibmon
> -.deps
> -*.beam
> -parser-messages
> -MISC_ERRORS
> diff -r 7499efa9c2a3 -r d5babedab4ea crmd/.cvsignore
> --- a/crmd/.cvsignore   Wed Jan 07 15:02:59 2009 +0100
> +++ /dev/null   Thu Jan 01 00:00:00 1970 +
> @@ -1,13 +0,0 @@
> -Makefile
> -Makefile.in
> -.libs
> -crmd
> -.deps
> -fsa_actions.*
> -fsa_inputs.*
> -.gres.*
> -atest
> -*.beam
> -parser-messages
> -MISC_ERRORS
> -version.h
> diff -r 7499efa9c2a3 -r d5babedab4ea cts/.cvsignore
> --- a/cts/.cvsignore    Wed Jan 07 15:02:59 2009 +0100
> +++ /dev/null   Thu Jan 01 00:00:00 1970 +
> @@ -1,15 +0,0 @@
> -Makefile.in
> -Makefile
> -.*.swp
> -*.pyc
> -*.py
> -*.out
> -local5
> -local6
> -local7
> -*.beam
> -parser-messages
> -MISC_ERRORS
> -OCFMSDummy
> -LSBDummy
> -getpeinputs.sh
> diff -r 7499efa9c2a3 -r d5babedab4ea debian/.cvsignore
> --- a/debian/.cvsignore Wed Jan 07 15:02:59 2009 +0100
> +++ /dev/null   Thu Jan 01 00:00:00 1970 +
> @@ -1,6 +0,0 @@
> -Makefile
> -Makefile.in
> -*.substvars
> -*.beam
> -parser-messages
> -MISC_ERRORS
> diff -r 7499efa9c2a3 -r d5babedab4ea doc/.cvsignore
> --- a/doc/.cvsignore    Wed Jan 07 15:02:59 2009 +0100
> +++ /dev/null   Thu Jan 01 00:00:00 1970 +
> @@ -1,16 +0,0 @@
> -Makefile.in
> -Makefile
> -ChangeLog
> -.*.swp
> -HardwareGuide.txt
> -GettingStarted.txt
> -Requirements.txt
> -faqntips.txt
> -heartbeat_api.txt
> -rsync.txt
> -startstop
> -cibadmin.8
> -crm_resource.8
> -*.beam
> -parser-messages
> -MISC_ERRORS
> diff -r 7499efa9c2a3 -r d5babedab4ea fencing/.cvsignore
> --- a/fencing/.cvsignore        Wed Jan 07 15:02:59 2009 +0100
> +++ /dev/null   Thu Jan 01 00:00:00 1970 +
> @@ -1,2 +0,0 @@
> -Makefile
> -Makefile.in
> diff -r 7499efa9c2a3 -r d5babedab4ea fencing/stonithd/.cvsignore
> --- a/fencing/stonithd/.cvsignore       Wed Jan 07 15:02:59 2009 +0100
> +++ /dev/null   Thu Jan 01 00:00:00 1970 +
> @@ -1,3 +0,0 @@
> -Makefile
> -Makefile.in
> -stonithd
> diff -r 7499efa9c2a3 -r d5babedab4ea fencing/test/.cvsignore
> --- a/fencing/test/.cvsignore   Wed Jan 07 15:02:59 2009 +0100
> +++ /dev/null   Thu Jan 01 00:00:00 1970 +
> @@ -1,4 +0,0 @@
> -Makefile
> -Makefile.in
> -STONITHDBasicSanityCheck
> -apitest
> diff -r 7499efa9c2a3 -r d5babedab4ea include/.cvsignore
> --- a/include/.cvsignore        Wed Jan 07 15:02:59 2009 +0100
> +++ /dev/null   Thu Jan 01 00:00:00 1970 +
> @@ -1,13 +0,0 @@
> -Makefile
> -Makefile.in
> -.*.swp
> -ha_config.h
> -stamp-h1
> -stamp-h2
> -stamp-h2.in
> -*.beam
> -parser-messages
> -MISC_ERRORS

Re: [Pacemaker] /.crm_help_index file (in system root aka /)

2010-07-14 Thread Raoul Bhatia [IPAX]
On 07/13/2010 09:47 PM, Maros Timko wrote:
> The python crm scripts use os.getenv("HOME") to decide where to look
> for or store the history file. Some of the environments (cronjob or
> sudo) do have HOME set to "/".
> Try to prepend crm call with:
> export HOME=/root

ok, i think i found the reason:

we're monitoring our servers using the nagios nrpe server.

nagios-nrpe-server.preinst on debian lenny adds the nagios user via:
> adduser --system --group --no-create-home --home /var/log/nagios --quiet 
> nagios

but this directory does not exist:

> # ls -ald /var/log/nagios
> ls: cannot access /var/log/nagios: No such file or directory
> # su - nagios
> No directory, logging in with HOME=/

we then use "sudo crm ..." to monitor the cluster and it's node, so
crm will re-build the index in $HOME which is /

changing nagios' homedir or creating /var/log/nagios fixes this issue.
.crm_help_index is then created inside this user's $HOME.

thanks for your advice and the valuable input.

would it be reasonable to use /tmp or /var/tmp in case that $HOME
resolves to / or in case that $HOME isn't writable by this user?
(or not create the .crm_help_index at all)

cheers,
raoul
-- 

DI (FH) Raoul Bhatia M.Sc.  email.  r.bha...@ipax.at
Technischer Leiter

IPAX - Aloy Bhatia Hava OG  web.  http://www.ipax.at
Barawitzkagasse 10/2/2/11   email.off...@ipax.at
1190 Wien   tel.   +43 1 3670030
FN 277995t HG Wien  fax.+43 1 3670030 15


___
Pacemaker mailing list: Pacemaker@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


[Pacemaker] [PATCH] low: remove .cvsignore files

2010-07-14 Thread Simon Horman
# HG changeset patch
# User Simon Horman 
# Date 1279093189 -32400
# Node ID d5babedab4ea558b86d79c4a6daeb6cba01ca8ae
# Parent  7499efa9c2a3f8c5c6396dc6c3631e9f3898547e
low: remove .cvsignore files

diff -r 7499efa9c2a3 -r d5babedab4ea .cvsignore
--- a/.cvsignoreWed Jan 07 15:02:59 2009 +0100
+++ /dev/null   Thu Jan 01 00:00:00 1970 +
@@ -1,41 +0,0 @@
-heartbeat*.tar.gz
-heartbeat-2.*
-compile
-configure
-configure.status
-configure.lineno
-depcomp
-aclocal.m4
-autom4te.cache
-libtool
-ltmain.sh
-ltconfig
-libltdl
-mkinstalldirs
-install-sh
-missing
-config.*
-Makefile.in
-Makefile
-copyright-stamp
-install-stamp
-build-stamp
-.*.swp
-autom4te*
-README
-patches
-updates
-libtool.m4
-ltdl.m4
-*.beam
-parser-messages
-MISC_ERRORS
-cscope.files
-cscope.out
-logs
-stringlen
-libltdl.tar
-hg_archival.txt
-autoconf
-autoheader
-automake
diff -r 7499efa9c2a3 -r d5babedab4ea build/pkg/.cvsignore
--- a/build/pkg/.cvsignore  Wed Jan 07 15:02:59 2009 +0100
+++ /dev/null   Thu Jan 01 00:00:00 1970 +
@@ -1,8 +0,0 @@
-Makefile
-Makefile.in
-tmpinst
-stamp-tmpinst
-packages
-*.beam
-parser-messages
-MISC_ERRORS
diff -r 7499efa9c2a3 -r d5babedab4ea build/pkg/InfoFiles/.cvsignore
--- a/build/pkg/InfoFiles/.cvsignoreWed Jan 07 15:02:59 2009 +0100
+++ /dev/null   Thu Jan 01 00:00:00 1970 +
@@ -1,7 +0,0 @@
-prototype
-pkginfo
-*.beam
-parser-messages
-MISC_ERRORS
-preinstall
-postinstall
diff -r 7499efa9c2a3 -r d5babedab4ea build/port/.cvsignore
--- a/build/port/.cvsignore Wed Jan 07 15:02:59 2009 +0100
+++ /dev/null   Thu Jan 01 00:00:00 1970 +
@@ -1,4 +0,0 @@
-Makefile
-Makefile.in
-portMakefile
-heartbeat.tar.gz
diff -r 7499efa9c2a3 -r d5babedab4ea build/port/heartbeat/.cvsignore
--- a/build/port/heartbeat/.cvsignore   Wed Jan 07 15:02:59 2009 +0100
+++ /dev/null   Thu Jan 01 00:00:00 1970 +
@@ -1,4 +0,0 @@
-pkg-deinstall
-pkg-descr
-pkg-install
-pkg-plist
diff -r 7499efa9c2a3 -r d5babedab4ea cib/.cvsignore
--- a/cib/.cvsignoreWed Jan 07 15:02:59 2009 +0100
+++ /dev/null   Thu Jan 01 00:00:00 1970 +
@@ -1,12 +0,0 @@
-Makefile
-Makefile.in
-.libs
-*.la
-*.lo
-cib
-cibpipe
-cibmon
-.deps
-*.beam
-parser-messages
-MISC_ERRORS
diff -r 7499efa9c2a3 -r d5babedab4ea crmd/.cvsignore
--- a/crmd/.cvsignore   Wed Jan 07 15:02:59 2009 +0100
+++ /dev/null   Thu Jan 01 00:00:00 1970 +
@@ -1,13 +0,0 @@
-Makefile
-Makefile.in
-.libs
-crmd
-.deps
-fsa_actions.*
-fsa_inputs.*
-.gres.*
-atest
-*.beam
-parser-messages
-MISC_ERRORS
-version.h
diff -r 7499efa9c2a3 -r d5babedab4ea cts/.cvsignore
--- a/cts/.cvsignoreWed Jan 07 15:02:59 2009 +0100
+++ /dev/null   Thu Jan 01 00:00:00 1970 +
@@ -1,15 +0,0 @@
-Makefile.in
-Makefile
-.*.swp
-*.pyc
-*.py
-*.out
-local5
-local6
-local7
-*.beam
-parser-messages
-MISC_ERRORS
-OCFMSDummy
-LSBDummy
-getpeinputs.sh
diff -r 7499efa9c2a3 -r d5babedab4ea debian/.cvsignore
--- a/debian/.cvsignore Wed Jan 07 15:02:59 2009 +0100
+++ /dev/null   Thu Jan 01 00:00:00 1970 +
@@ -1,6 +0,0 @@
-Makefile
-Makefile.in
-*.substvars
-*.beam
-parser-messages
-MISC_ERRORS
diff -r 7499efa9c2a3 -r d5babedab4ea doc/.cvsignore
--- a/doc/.cvsignoreWed Jan 07 15:02:59 2009 +0100
+++ /dev/null   Thu Jan 01 00:00:00 1970 +
@@ -1,16 +0,0 @@
-Makefile.in
-Makefile
-ChangeLog
-.*.swp
-HardwareGuide.txt
-GettingStarted.txt
-Requirements.txt
-faqntips.txt
-heartbeat_api.txt
-rsync.txt
-startstop
-cibadmin.8
-crm_resource.8
-*.beam
-parser-messages
-MISC_ERRORS
diff -r 7499efa9c2a3 -r d5babedab4ea fencing/.cvsignore
--- a/fencing/.cvsignoreWed Jan 07 15:02:59 2009 +0100
+++ /dev/null   Thu Jan 01 00:00:00 1970 +
@@ -1,2 +0,0 @@
-Makefile
-Makefile.in
diff -r 7499efa9c2a3 -r d5babedab4ea fencing/stonithd/.cvsignore
--- a/fencing/stonithd/.cvsignore   Wed Jan 07 15:02:59 2009 +0100
+++ /dev/null   Thu Jan 01 00:00:00 1970 +
@@ -1,3 +0,0 @@
-Makefile
-Makefile.in
-stonithd
diff -r 7499efa9c2a3 -r d5babedab4ea fencing/test/.cvsignore
--- a/fencing/test/.cvsignore   Wed Jan 07 15:02:59 2009 +0100
+++ /dev/null   Thu Jan 01 00:00:00 1970 +
@@ -1,4 +0,0 @@
-Makefile
-Makefile.in
-STONITHDBasicSanityCheck
-apitest
diff -r 7499efa9c2a3 -r d5babedab4ea include/.cvsignore
--- a/include/.cvsignoreWed Jan 07 15:02:59 2009 +0100
+++ /dev/null   Thu Jan 01 00:00:00 1970 +
@@ -1,13 +0,0 @@
-Makefile
-Makefile.in
-.*.swp
-ha_config.h
-stamp-h1
-stamp-h2
-stamp-h2.in
-*.beam
-parser-messages
-MISC_ERRORS
-ha_version.h
-config.h
-crm_config.h
diff -r 7499efa9c2a3 -r d5babedab4ea include/crm/.cvsignore
--- a/include/crm/.cvsignoreWed Jan 07 15:02:59 2009 +0100
+++ /dev/null   Thu Jan 01 00:00:00 1970 +
@@ -1,5 +0,0 @@
-Makefile
-Makefile.in
-*.beam
-parser-messages
-MISC_ERRORS
diff -r 7499efa9c2a3 -r d5babedab4ea include/crm/common/.cvsignore
--- a/include/crm/common/.cvsignore Wed Jan 07 15:02:59 2009 +0100
+++ /dev/null   Thu Jan 01 00:00:00 1970 +
@@ -1,5 +0,0 @@
-Makefile
-Makefile.in
-*.beam
-parser-messages
-MISC_ERRORS
diff -r 749

Re: [Pacemaker] Pacemaker see double node`s

2010-07-14 Thread Proskurin Kirill

On 14/07/10 16:48, Florian Haas wrote:

I take it you switched cluster stacks, otherwise you wouldn't be seeing
each node twice, once with the $id attribute and once without.

Take a look at
http://www.clusterlabs.org/wiki/Initial_Configuration#A_Special_Note_for_People_Switching_Cluster_Stacks


Thanks - it is work like a charm.

--
Best regards,
Proskurin Kirill

___
Pacemaker mailing list: Pacemaker@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


Re: [Pacemaker] Pacemaker see double node`s

2010-07-14 Thread Florian Haas
On 2010-07-14 13:40, Proskurin Kirill wrote:
> Hello all.
> 
> I really new to Pacemaker and try to make some test and learn how it is
> all works. I use Clusters From Scratch pdf from clusterlabs.org as how-to.
> 
> What we have:
> Debian Lenny 5.0.5 (with kernel 2.6.32-bpo.4-amd64 from backports)
> pacemaker 1.0.8+hg15494-4~bpo50+1
> openais 1.1.2-2~bpo50+1
> 
> 
> Problem:
> node01:~# crm configure show
> node $id="329642cc-9a6b-4197-a8ca-b7f6cf3e4068" node02.domain.com
> node $id="3e3e214c-6e89-47f5-8a55-ae7d55c17b98" node01.domain.com
> node node01.domain.com
> node node02.domain.com
> primitive ClusterIP ocf:heartbeat:IPaddr2 \
> params ip="192.168.1.100" cidr_netmask="32" \
> op monitor interval="30s"
> property $id="cib-bootstrap-options" \
> dc-version="1.0.8-042548a451fce8400660f6031f4da6f0223dd5dd" \
> cluster-infrastructure="openais" \
> expected-quorum-votes="2" \
> stonith-enabled="false"
> 
> So - there is a mistake somewhere because it is see 4 nodes but in real
> it is 2.

I take it you switched cluster stacks, otherwise you wouldn't be seeing
each node twice, once with the $id attribute and once without.

Take a look at
http://www.clusterlabs.org/wiki/Initial_Configuration#A_Special_Note_for_People_Switching_Cluster_Stacks

Cheers,
Florian



signature.asc
Description: OpenPGP digital signature
___
Pacemaker mailing list: Pacemaker@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


Re: [Pacemaker] Problem with failover/failback under Ubuntu

2010-07-14 Thread Sven Wick

Just for completion my current working config.

I am not too happy about it, because it looks a little bit messy
but it works for me. I can reset, reboot, etc... and all services
recover in correct order:

node monitoring-node-01
node monitoring-node-02
primitive apache lsb:apache2
primitive drbd-opennms-config ocf:linbit:drbd \
params drbd_resource="config" \
op monitor interval="40s" role="Master" timeout="30s" \
op monitor interval="41s" role="Slave" timeout="30s"
primitive drbd-opennms-data ocf:linbit:drbd \
params drbd_resource="data" \
op monitor interval="40s" role="Master" timeout="30s" \
op monitor interval="41s" role="Slave" timeout="30s"
primitive drbd-opennms-db ocf:linbit:drbd \
params drbd_resource="db" \
op monitor interval="40s" role="Master" timeout="30s" \
op monitor interval="41s" role="Slave" timeout="30s"
primitive fs-opennms-config ocf:heartbeat:Filesystem \
params device="/dev/drbd/by-res/config" directory="/etc/opennms"
fstype="xfs"
primitive fs-opennms-data ocf:heartbeat:Filesystem \
params device="/dev/drbd/by-res/data" directory="/var/lib/opennms"
fstype="xfs"
primitive fs-opennms-db ocf:heartbeat:Filesystem \
params device="/dev/drbd/by-res/db" directory="/var/lib/postgresql"
fstype="xfs"
primitive opennms lsb:opennms \
op start interval="0" timeout="300s" \
op stop interval="0" timeout="300s"
primitive postgres lsb:postgresql-8.4
primitive vip ocf:heartbeat:IPaddr2 \
params ip="172.24.25.20" cidr_netmask="24" nic="bond0"
ms ms-opennms-config drbd-opennms-config \
meta master-max="1" master-node-max="1" clone-max="2" clone-node-max="1"
notify="true"
ms ms-opennms-data drbd-opennms-data \
meta master-max="1" master-node-max="1" clone-max="2" clone-node-max="1"
notify="true"
ms ms-opennms-db drbd-opennms-db \
meta master-max="1" master-node-max="1" clone-max="2" clone-node-max="1"
notify="true"
colocation apache-on-opennms inf: apache opennms
colocation fs-config-on-drbd inf: fs-opennms-config
ms-opennms-config:Master
colocation fs-config-on-fs-db inf: fs-opennms-config fs-opennms-db
colocation fs-data-on-drbd inf: fs-opennms-data ms-opennms-data:Master
colocation fs-data-on-fs-config inf: fs-opennms-data fs-opennms-config
colocation fs-db-on-drbd inf: fs-opennms-db ms-opennms-db:Master
colocation opennms-on-postgres inf: opennms postgres
colocation postgres-on-vip inf: postgres vip
colocation vip-on-data inf: vip fs-opennms-data
order apache-after-vip inf: vip apache
order config-after-db inf: fs-opennms-db fs-opennms-config
order data-after-config inf: fs-opennms-config fs-opennms-data
order fs-after-drbd-config inf: ms-opennms-config:promote
fs-opennms-config:start
order fs-after-drbd-data inf: ms-opennms-data:promote
fs-opennms-data:start
order fs-after-drbd-db inf: ms-opennms-db:promote fs-opennms-db:start
order opennms-after-postgres inf: postgres opennms
order postgres-after-vip inf: vip postgres
order vip-after-data inf: fs-opennms-data vip
property $id="cib-bootstrap-options" \
dc-version="1.0.8-042548a451fce8400660f6031f4da6f0223dd5dd" \
cluster-infrastructure="openais" \
expected-quorum-votes="2" \
no-quorum-policy="ignore" \
stonith-enabled="false" \
last-lrm-refresh="1278615435"
rsc_defaults $id="rsc-options" \
resource-stickiness="100"


___
Pacemaker mailing list: Pacemaker@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


[Pacemaker] Pacemaker see double node`s

2010-07-14 Thread Proskurin Kirill

Hello all.

I really new to Pacemaker and try to make some test and learn how it is 
all works. I use Clusters From Scratch pdf from clusterlabs.org as how-to.


What we have:
Debian Lenny 5.0.5 (with kernel 2.6.32-bpo.4-amd64 from backports)
pacemaker 1.0.8+hg15494-4~bpo50+1
openais 1.1.2-2~bpo50+1


Problem:
node01:~# crm configure show
node $id="329642cc-9a6b-4197-a8ca-b7f6cf3e4068" node02.domain.com
node $id="3e3e214c-6e89-47f5-8a55-ae7d55c17b98" node01.domain.com
node node01.domain.com
node node02.domain.com
primitive ClusterIP ocf:heartbeat:IPaddr2 \
params ip="192.168.1.100" cidr_netmask="32" \
op monitor interval="30s"
property $id="cib-bootstrap-options" \
dc-version="1.0.8-042548a451fce8400660f6031f4da6f0223dd5dd" \
cluster-infrastructure="openais" \
expected-quorum-votes="2" \
stonith-enabled="false"

So - there is a mistake somewhere because it is see 4 nodes but in real 
it is 2.


Some special thing on that servers:

I have two nodes with 2 NICs and with IP on each NIC - one is white and 
second is grey. DNS resolve they hostname as a white IP but in 
/etc/hosts I have

192.168.1.1 node01.domain.com   node01
192.168.1.2 node02.domain.com   node02

That was done for some reasons of other test.


There is a problem and how can I fix it?

--
Best regards,
Proskurin Kirill

___
Pacemaker mailing list: Pacemaker@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