[Pacemaker] Need help in starting resources -
Senftleben, Stefan, ITSC
Stefan.Senftleben at ITSC.de
Thu Feb 17 15:37:44 UTC 2011
Sorry, here is the configuration, but no logs are written.
Config:
crm configure show
node lxds05 \
attributes standby="off"
node lxds07 \
attributes standby="off"
primitive apache2 ocf:heartbeat:apache \
params configfile="/services/etc/apache2/apache2.conf" httpd="/usr/sbin/apache2" \
op monitor interval="15s" \
op start interval="0" timeout="240s" \
op stop interval="0" timeout="240s" \
meta target-role="Started"
primitive drbd_disk ocf:linbit:drbd \
params drbd_resource="nagios" \
op monitor interval="20s" role="Slave" timeout="240s" \
op monitor interval="10s" role="Master" timeout="240s"
primitive drbd_disk1 ocf:linbit:drbd \
params drbd_resource="pnp4nagios" \
op monitor interval="20s" role="Slave" timeout="240s" \
op monitor interval="10s" role="Master" timeout="240s"
primitive drbd_disk2 ocf:linbit:drbd \
params drbd_resource="services" \
op monitor interval="20s" role="Slave" timeout="240s" \
op monitor interval="10s" role="Master" timeout="240s"
primitive fs_drbd ocf:heartbeat:Filesystem \
params device="/dev/drbd0" directory="/usr/local/nagios" fstype="ext3" \
op monitor interval="15s" \
op start interval="0" timeout="240s" \
op stop interval="0" timeout="360s"
primitive fs_drbd1 ocf:heartbeat:Filesystem \
params device="/dev/drbd1" directory="/usr/local/pnp4nagios" fstype="ext3" \
op monitor interval="15s" \
op start interval="0" timeout="240s" \
op stop interval="0" timeout="360s"
primitive fs_drbd2 ocf:heartbeat:Filesystem \
params device="/dev/drbd2" directory="/services/etc" fstype="ext3" \
op monitor interval="15s" \
op start interval="0" timeout="240s" \
op stop interval="0" timeout="360s"
primitive ip1 ocf:heartbeat:IPaddr2 \
params ip="192.168.138.88" nic="eth5" cidr_netmask="24" \
op monitor interval="10s" timeout="20s" \
meta target-role="Started"
primitive mailto ocf:heartbeat:MailTo \
params email="GB2NagiosSysWin_Mngr at itsc.de" \
op monitor interval="10" timeout="10" depth="0"
primitive nagios ocf:naprax:nagios \
params configfile="/usr/local/nagios/etc/nagios.cfg" nagios="/usr/local/nagios/bin/nagios" \
op monitor interval="15s" \
op start interval="0" timeout="240s" \
op stop interval="0" timeout="240s" \
meta target-role="Started"
primitive pingd ocf:pacemaker:pingd \
params host_list="192.168.138.2 192.168.138.139 192.168.128.105 192.168.128.164" multiplier="100" dampen="5s" \
op monitor interval="15s" timeout="5s"
primitive syslogng ocf:heartbeat:syslog-ng \
params configfile="/etc/syslog-ng/syslog-ng.conf" syslog_ng_binary="/usr/sbin/syslog-ng" \
op monitor interval="10s" timeout="60s" depth="0"
primitive syslogng2mysql ocf:heartbeat:anything \
params binfile="/usr/local/scripts/system/syslog-ng2mysql" pidfile="/var/run/syslog-ng2mysql.pid" \
op start interval="0" timeout="20s" \
op stop interval="0" timeout="20s" \
op monitor interval="30s" timeout="60s" depth="0" \
meta target-role="Stopped"
group nagios-group fs_drbd fs_drbd1 fs_drbd2 ip1 apache2 nagios mailto \
meta target-role="Started"
ms ms_drbd drbd_disk \
meta master-max="1" master-node-max="1" clone-max="2" clone-node-max="1" notify="true" target-role="Started"
ms ms_drbd1 drbd_disk1 \
meta master-max="1" master-node-max="1" clone-max="2" clone-node-max="1" notify="true"
ms ms_drbd2 drbd_disk2 \
meta master-max="1" master-node-max="1" clone-max="2" clone-node-max="1" notify="true"
clone pingdclone pingd \
meta globally-unique="false" target-role="Started"
clone syslogng-clone syslogng \
meta globally-unique="false" target-role="Started"
location cli-prefer-ip1 nagios-group \
rule $id="cli-prefer-rule-ip1" inf: #uname eq lxds07 and #uname eq lxds05
location nagios-group_on_connected_node nagios-group \
rule $id="pingd-rule" pingd: defined pingd
colocation drbd_on_disks inf: ms_drbd ms_drbd1 ms_drbd2 nagios-group
order mount_after_drbd inf: ms_drbd:promote nagios-group:start
order mount_after_drbd1 inf: ms_drbd1:promote nagios-group:start
order mount_after_drbd2 inf: ms_drbd2:promote nagios-group:start
property $id="cib-bootstrap-options" \
dc-version="1.0.8-042548a451fce8400660f6031f4da6f0223dd5dd" \
cluster-infrastructure="openais" \
expected-quorum-votes="2" \
stonith-enabled="false" \
no-quorum-policy="ignore"
rsc_defaults $id="rsc-options" \
resource-stickiness="100"
Mit freundlichen Grüßen
i. A. Stefan Senftleben
Systemadministrator
Fachbereich Server Based Application
____________________________________________
itsc GmbH
Rothwiese 5
30559 Hannover
Tel.: 0511-27071-227
Fax: 0511-27071-555-227
Mobil: 0163-3327043
Mail: Stefan.Senftleben at itsc.de
Internet: www.itsc.de
___________________________________________________________________________________
- itsc GmbH -
- Geschäftsführer: Martin Behmann, stv. Stefan Kreit - Sitz der Gesellschaft: Hannover -
- Registergericht: Hannover HRB 57585 - Steuernummer: 25/202/00736 - UstNr: DE 198329821- IK 1 01 73 21 43 -
___________________________________________________________________________________
Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen.
Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese E-Mail (inklusive aller Anhänge). Bitte fertigen Sie keine Kopien an oder bringen den Inhalt anderen Personen zur Kenntnis.
E-Mails sind anfällig für Datenverfälschungen, können abgefangen werden und Computerviren verbreiten.
Außer für Vorsatz und grobe Fahrlässigkeit lehnen wir jede Verantwortung für derartige Vorgänge ab.
___________________________________________________________________________________
-----Ursprüngliche Nachricht-----
Von: Michael Schwartzkopff [mailto:misch at clusterbau.com]
Gesendet: Donnerstag, 17. Februar 2011 15:57
An: The Pacemaker cluster resource manager
Betreff: Re: [Pacemaker] Need help in starting resources -
On Thursday 17 February 2011 15:48:50 Senftleben, Stefan, ITSC wrote:
> Hello,
>
> today I switched the master in my active-passive cluster with: "crm
> node standy lxds05". The resources started cleanly on lxds07.
> After the system updates and a reboot of lxds05, I tried to set
> lxds05 online with: "crm node online lxds05". I tried to restart the
> corosync-services, bit the cluster is in following situation. It
> seems, that the resources on lxds05 were stopped. Can anyone help me please?
>
> Stefan
>
> ============
> Last updated: Thu Feb 17 15:32:42 2011
> Stack: openais
> Current DC: lxds07 - partition with quorum
> Version: 1.0.8-042548a451fce8400660f6031f4da6f0223dd5dd
> 2 Nodes configured, 2 expected votes
> 7 Resources configured.
> ============
>
> Online: [ lxds05 lxds07 ]
>
> Master/Slave Set: ms_drbd
> Masters: [ lxds07 ]
> Stopped: [ drbd_disk:0 ]
> Master/Slave Set: ms_drbd1
> Masters: [ lxds07 ]
> Stopped: [ drbd_disk1:0 ]
> Master/Slave Set: ms_drbd2
> Masters: [ lxds07 ]
> Stopped: [ drbd_disk2:1 ]
> Resource Group: nagios-group
> fs_drbd (ocf::heartbeat:Filesystem): Started lxds07
> fs_drbd1 (ocf::heartbeat:Filesystem): Started lxds07
> fs_drbd2 (ocf::heartbeat:Filesystem): Started lxds07
> ip1 (ocf::heartbeat:IPaddr2): Started lxds07
> apache2 (ocf::heartbeat:apache): Started lxds07
> nagios (ocf::naprax:nagios): Started lxds07
> mailto (ocf::heartbeat:MailTo): Started lxds07
> Clone Set: pingdclone
> Started: [ lxds07 ]
> Stopped: [ pingd:0 ]
> Clone Set: syslogng-clone
> Started: [ lxds07 ]
> Stopped: [ syslogng:0 ]
>
> Migration summary:
> * Node lxds05:
> * Node lxds07: pingd=400
Config? Logs?
--
Dr. Michael Schwartzkopff
Guardinistr. 63
81375 München
Tel: (0163) 172 50 98
More information about the Pacemaker
mailing list