[Linux-HA] Heartbeat haresources with IPv6

2013-06-17 Thread listas

Hi,


I'm using Ubuntu 12.04 + Heartbeat 3.0.5-3ubuntu2 to provide high availability 
for some IP addresses.
I want to configure an IPv6 address on my haresources. I did this:

File /etc/heartbeat/haresources:

server.domain.com \
nbsp;nbsp;nbsp; 192.168.2.62/32/eth1 \
nbsp;nbsp;nbsp; 192.168.2.64/32/eth1 \
nbsp;nbsp;nbsp; 192.168.2.72/32/eth1 \
nbsp;nbsp;nbsp; IPv6addr::2001:db8:38a5:8::2006/48/eth1 \
nbsp;nbsp;nbsp; MailTo::a...@domain.com

The IPv4 addresses work fine, but I'm not getting success with the IPv6 address.
My logs shows this message:
ResourceManager[22129]: info: Running /etc/ha.d/resource.d/IPv6addr 
2001:db8:38a5:8 2006/48/eth1 start
ResourceManager[22129]: CRIT: Giving up resources due to failure of 
IPv6addr::2001:db8:38a5:8::2006/48/eth1
ResourceManager[22129]: info: Running /etc/ha.d/resource.d/IPv6addr 
2001:db8:38a5:8 2006/48/eth1 stop
ResourceManager[22129]: info: Retrying failed stop operation 
[IPv6addr::2001:db8:38a5:8::2006/48/eth1]

Apparently there is a conflict between the characters '::' inside the IPv6 address and the separator '::' used in the haresources. But I would not like have to expand the IPv6 address. 


Does anyone know a way to avoid this conflict?

Thanks!
--
Thiago Henrique
www.adminlinux.com.br







___
Linux-HA mailing list
Linux-HA@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems


Re: [Linux-HA] Heartbeat haresources with IPv6

2013-06-17 Thread Digimer

Ho Thiago,

  Heartbeat is deprecated and has not been developed in some time. 
There are no plans to restart development, either. It is _strongly_ 
advised that new setups use corosync + pacemaker. You can use the IPv6 
resource agents with it, too.


  The best place to look is on clusterlabs.org's Cluster from Scratch 
tutorial. It covers as the first example setting up an (IPv4) virtual IP 
address. It should be easy to adapt that to your IPv6 implementation. 
You will see two versions; One for crmsh and one for pcs. I would 
recommend the crmsh version for Ubuntu.


Cheers

On 06/17/2013 11:35 AM, lis...@adminlinux.com.br wrote:

Hi,


I'm using Ubuntu 12.04 + Heartbeat 3.0.5-3ubuntu2 to provide high
availability for some IP addresses.
I want to configure an IPv6 address on my haresources. I did this:

File /etc/heartbeat/haresources:

server.domain.com \
nbsp;nbsp;nbsp; 192.168.2.62/32/eth1 \
nbsp;nbsp;nbsp; 192.168.2.64/32/eth1 \
nbsp;nbsp;nbsp; 192.168.2.72/32/eth1 \
nbsp;nbsp;nbsp; IPv6addr::2001:db8:38a5:8::2006/48/eth1 \
nbsp;nbsp;nbsp; MailTo::a...@domain.com

The IPv4 addresses work fine, but I'm not getting success with the IPv6
address.
My logs shows this message:
ResourceManager[22129]: info: Running /etc/ha.d/resource.d/IPv6addr
2001:db8:38a5:8 2006/48/eth1 start
ResourceManager[22129]: CRIT: Giving up resources due to failure of
IPv6addr::2001:db8:38a5:8::2006/48/eth1
ResourceManager[22129]: info: Running /etc/ha.d/resource.d/IPv6addr
2001:db8:38a5:8 2006/48/eth1 stop
ResourceManager[22129]: info: Retrying failed stop operation
[IPv6addr::2001:db8:38a5:8::2006/48/eth1]

Apparently there is a conflict between the characters '::' inside the
IPv6 address and the separator '::' used in the haresources. But I would
not like have to expand the IPv6 address.
Does anyone know a way to avoid this conflict?

Thanks!
--
Thiago Henrique
www.adminlinux.com.br







___
Linux-HA mailing list
Linux-HA@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems



--
Digimer
Papers and Projects: https://alteeve.ca/w/
What if the cure for cancer is trapped in the mind of a person without 
access to education?

___
Linux-HA mailing list
Linux-HA@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems


Re: [Linux-HA] Heartbeat haresources with IPv6

2013-06-15 Thread Lars Ellenberg
On Fri, Jun 14, 2013 at 03:29:49PM -0300, lis...@adminlinux.com.br wrote:
 Hi,
 
 I'm using Ubuntu 12.04 + Heartbeat 3.0.5-3ubuntu2 to provide high 
 availability for some IP addresses.
 I want to configure an IPv6 address on my haresources. I did this:
 
 File /etc/heartbeat/haresources:
 
 server.domain.com \
192.168.2.62/32/eth1 \
192.168.2.64/32/eth1 \
192.168.2.72/32/eth1 \
IPv6addr::2001:db8:38a5:8::2006/48/eth1 \
MailTo::a...@domain.com
 
 The IPv4 addresses work fine, but I'm not getting success with the IPv6 
 address.
 My logs shows this message:
 ResourceManager[22129]: info: Running /etc/ha.d/resource.d/IPv6addr 
 2001:db8:38a5:8 2006/48/eth1 start
 ResourceManager[22129]: CRIT: Giving up resources due to failure of 
 IPv6addr::2001:db8:38a5:8::2006/48/eth1
 ResourceManager[22129]: info: Running /etc/ha.d/resource.d/IPv6addr 
 2001:db8:38a5:8 2006/48/eth1 stop
 ResourceManager[22129]: info: Retrying failed stop operation 
 [IPv6addr::2001:db8:38a5:8::2006/48/eth1]
 
 Apparently there is a conflict between the characters '::' inside
 the IPv6 address and the separator '::' used in the haresources. But
 I would not like have to expand the IPv6 address.
 
 Does anyone know a way to avoid this conflict?

You can't have it all ;-)

I see several options.
 - use 2001:db8:38a5:8:0:0:0:2006/48/eth1
 - abandon haresource
 - hack the ResourceManager script of heartbeat,
   allow for escaping, or special case IPv6addr or similar...
   it's plain shell after all
 - hack the resource.d/IPv6addr *wrapper* script only,
   to mangle the input parameters.

The last two options would look something like below.
You need only *one* of these, though using both would not hurt.
Untested, and likely whitespace mangled ;-)

--- ResourceManager
+++ ResourceManager
@@ -167,6 +167,11 @@ resource2script() {
 # multiple arguments are separated by :: delimiters
 resource2arg() {
   case `canonname $1` in
+IPv6addr::*)
+   # special case, there is only one argument,
+   # and it contains ::
+   echo $1 | sed 's%[^:]*::%%'
+   ;;
 *::*)  echo $1 | sed 's%[^:]*::%%' | sed 's%::% %g'
;;
   esac

--- IPv6addr
+++ IPv6addr
@@ -17,6 +17,8 @@ usage() {
 exit 1
 }

+[ $# = 3 ]  set -- $1::$2 $3
+
 if [ $# != 2 ]; then
 usage
 fi


Cheers,

-- 
: Lars Ellenberg
: LINBIT | Your Way to High Availability
: DRBD/HA support and consulting http://www.linbit.com

DRBD® and LINBIT® are registered trademarks of LINBIT, Austria.
___
Linux-HA mailing list
Linux-HA@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems


[Linux-HA] Heartbeat haresources with IPv6

2013-06-14 Thread listas

Hi,

I'm using Ubuntu 12.04 + Heartbeat 3.0.5-3ubuntu2 to provide high availability 
for some IP addresses.
I want to configure an IPv6 address on my haresources. I did this:

File /etc/heartbeat/haresources:

server.domain.com \
   192.168.2.62/32/eth1 \
   192.168.2.64/32/eth1 \
   192.168.2.72/32/eth1 \
   IPv6addr::2001:db8:38a5:8::2006/48/eth1 \
   MailTo::a...@domain.com

The IPv4 addresses work fine, but I'm not getting success with the IPv6 address.
My logs shows this message:
ResourceManager[22129]: info: Running /etc/ha.d/resource.d/IPv6addr 
2001:db8:38a5:8 2006/48/eth1 start
ResourceManager[22129]: CRIT: Giving up resources due to failure of 
IPv6addr::2001:db8:38a5:8::2006/48/eth1
ResourceManager[22129]: info: Running /etc/ha.d/resource.d/IPv6addr 
2001:db8:38a5:8 2006/48/eth1 stop
ResourceManager[22129]: info: Retrying failed stop operation 
[IPv6addr::2001:db8:38a5:8::2006/48/eth1]

Apparently there is a conflict between the characters '::' inside the IPv6 address and the separator '::' used in the haresources. But I would not like have to expand the IPv6 address. 


Does anyone know a way to avoid this conflict?

Thanks!
--
Thiago Henrique
www.adminlinux.com.br
___
Linux-HA mailing list
Linux-HA@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems