Re: [Pacemaker] Route OCF RA and Failover IP

2009-11-30 Thread Billy Guthrie

Florian,

Thanks for the input; for the time being I have it running.
I have commented out the validation for source for now. On the stanby node, 
the

gateway is reachable as there is an IP address on eth0 in the same
subnet as the VIP (eth0:0; however not active yet), so it is not
failing on the gateway. I have specificed a source address that is
not yet active on the standby and that is where it is failing.



   # If a source address has been configured, is it available on this 
system?

#if [ -n "${OCF_RESKEY_source}" ]; then
#   if ! ip address show | grep -w ${OCF_RESKEY_source} >/dev/null 2>&1; 
then
#   ocf_log error "Source address ${OCF_RESKEY_source} appears not 
to be available on this system."

#   # same reason as with _device:
#   return $OCF_ERR_INSTALLED
#   fi
#   fi

Thank you for your time on this matter


Billy



___
Pacemaker mailing list
Pacemaker@oss.clusterlabs.org
http://oss.clusterlabs.org/mailman/listinfo/pacemaker


[Pacemaker] Route OCF RA and Failover IP

2009-11-28 Thread Billy Guthrie
list,

I am trying to add a route with Route OCF RA; The resource starts fine on the 
active node. However, on the active node, the resource
states that it is not installed.



Last updated: Sat Nov 28 15:43:26 2009
Stack: openais
Current DC: node1 - partition with quorum
Version: 1.0.6-cebe2b6ff49b36b29a3bd7ada1c4701c7470febe
2 Nodes configured, 2 expected votes
2 Resources configured.


Online: [ node1 node2 ]

 Master/Slave Set: ms_drbd_pbx
 Masters: [ node1 ]
 Slaves: [ node2 ]
 Resource Group: pbx
 fs_pbx (ocf::heartbeat:Filesystem):Started node1
 ip_pbx (ocf::heartbeat:IPaddr):Started node1
 pbxd   (lsb:pbx):  Started node
 pingd  (ocf::pacemaker:pingd): Started node1
 gwsrc_route(ocf::heartbeat:Route): Started node1

Failed actions:
gwsrc_route_monitor_0 (node=telego5, call=106, rc=5, status=complete): not 
installed

node1:~# crm configure show
node node1 \
attributes standby="off"
node node1 \
attributes standby="off"
primitive drbd_pbx ocf:linbit:drbd \
params drbd_resource="r0" \
meta target-role="Started"
primitive fs_pbx ocf:heartbeat:Filesystem \
params device="/dev/drbd0" directory="/usr/local/pbx" fstype="ext3"
primitive gwsrc_route ocf:heartbeat:Route \
params destination="0.0.0.0/0" gateway="24.10.10.113" 
source="24.10.10.118" \
meta target-role="Started"
primitive ip_pbx ocf:heartbeat:IPaddr \
params ip="24.10.10.118" \
op monitor interval="10s"
primitive pbxd lsb:pbx
primitive pingd ocf:pacemaker:pingd \
params host_list="24.10.10.113" multiplier="100" \
op monitor interval="15s" timeout="5s"
group pbx fs_pbx ip_pbx pbxd pingd gwsrc_route
ms ms_drbd_pbx drbd_pbx \
meta master-max="1" master-node-max="1" clone-max="2" 
clone-node-max="1" notify="true"
location cli-prefer-ip_pbx ip_pbx \
rule $id="cli-prefer-rule-ip_pbx" inf: #uname eq node1
colocation pbx_on_drbd inf: pbx ms_drbd_pbx:Master
order pbx_after_drbd inf: ms_drbd_pbx:promote pbx:start


node1:~# ip route
24.10.10.112/28 dev eth0  proto kernel  scope link  src 24.10.10.116
10.137.136.0/24 dev eth1  proto kernel  scope link  src 10.137.136.116
default via 174.137.136.113 dev eth0  src 24.10.10.118
default via 174.137.136.113 dev eth0  metric 5

The route is being added:
default via 174.137.136.113 dev eth0  src 24.10.10.118

because 24.10.10.118 exists:

node1:~# ifconfig eth0:0
eth0:0Link encap:Ethernet  HWaddr 00:29:48:30:e8:e0
  inet addr:24.10.10.118  Bcast:24.10.10.127  Mask:255.255.255.240
  UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

On node2, eth0:0 obviously does not exist, so I think that is why it is 
erroring out:

gwsrc_route_monitor_0 (node=telego5, call=106, rc=5, status=complete): not 
installed

This is causing issues when I failover, is there anyway not to run 
gwsrc_route_monitor_0 on node2 when node1
is active; The resource does need to start on node2 when it fails over; It 
appears that it is validating as the 24.10.10.118 does not exist on node2?

I need all my traffic sourced from 24.10.10.118 and not of the physical 
interface eth0 which is 24.10.10.116
There are 2 static routes when a node is active/primary, when eth0:0 is removed 
and started on the standby/secondary
node, the default via 174.137.136.113 dev eth0  src 24.10.10.118 will be 
removed and the second route with a metric of 5
will handle direct the traffic when the route of metric 0 is removed.

Thanks for  your time.

Billy







___
Pacemaker mailing list
Pacemaker@oss.clusterlabs.org
http://oss.clusterlabs.org/mailman/listinfo/pacemaker


[Pacemaker] Debian_Lenny-openais and heartbeat packages not found

2009-10-15 Thread Billy Guthrie

Anyone have any clues?

I followed the howto at:

http://clusterlabs.org/wiki/Debian_Lenny_HowTo


apache01:/etc/init.d# echo "deb http://people.debian.org/~madkiss/ha lenny 
main" > /etc/apt/sources.list.d/pacemaker.list


OK

apache01:/etc/init.d# apt-key adv --keyserver pgp.mit.edu --recv-key 
1CFA3E8CD7145E30


OK



apache01:/etc/init.d# aptitude update

OK

Installing the packages: FAIL

apache01:/etc/init.d# aptitude install pacemaker-heartbeat
No candidate version found for pacemaker-heartbeat
No candidate version found for pacemaker-openais



Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Reading task descriptions... Done
No candidate version found for pacemaker-heartbeat
No candidate version found for pacemaker-heartbeat
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B of archives. After unpacking 0B will be used.
Writing extended state information... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Reading task descriptions... Done

apache01:/etc/init.d# aptitude install pacemaker-openais

Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Reading task descriptions... Done
No candidate version found for pacemaker-openais
No candidate version found for pacemaker-openais
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B of archives. After unpacking 0B will be used.
Writing extended state information... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Reading task descriptions... Done


Thanks for your time.
Billy 




___
Pacemaker mailing list
Pacemaker@oss.clusterlabs.org
http://oss.clusterlabs.org/mailman/listinfo/pacemaker


[Pacemaker] updating mac address during fail-over

2009-10-13 Thread Billy Guthrie
Hello,

I am using pacemaker-openais version 1.0.4.1 and I have a question; Is it 
possible to update the MAC address on fail-over. I would like
to keep the MAC address the same from one NIC to the other as I have an 
application that binds the license key to the MAC address.
If that is not possible, what about running a script on the primary/secondary; 
If there is a failover detected, either the primary or secondary
runs a command/script.

Thanks
Billy___
Pacemaker mailing list
Pacemaker@oss.clusterlabs.org
http://oss.clusterlabs.org/mailman/listinfo/pacemaker