Re: [Linux-HA] Many Resources Dependent on One Resource Group

2013-03-25 Thread Moullé Alain
Hi
If I well understand, I would have tried :
group G1 mandatory B  C

group G2 advisory D to I

order mandatory group G1 than G2

this should work if I understand well your needs.

Regards
Alain
 In the simplest terms, we currently have resources:

 A = drbd
 B = filesystem
 C = cluster IP
 D thru J = mysql instances.

 Resource group G1 consists of resources B through J, in that order, and is 
 dependent on resource A.

 This fails over fine, but it has the serious disadvantage that if you stop or 
 remove a mysql resource in the middle of the list, all of the ones after it 
 stop too. For example, if you stop G, then H thru J stop as well.

 We want to change it so that the resource group G1 consists only of resources 
 B  C. All of the mysql instances (D thru J) are individually dependent on 
 group G1, but not dependent on each other. That way you can stop or remove a 
 mysql resource without affecting the others.

 I saw this scenario described in the Pacemaker docs, but I cannot find an 
 example of the syntax.

 --
 Eric Robinson


 Disclaimer - March 24, 2013
 This email and any files transmitted with it are confidential and intended 
 solely for 'General Linux-HA mailing list'. If you are not the named 
 addressee you should not disseminate, distribute, copy or alter this email. 
 Any views or opinions presented in this email are solely those of the author 
 and might not represent those of Physicians' Managed Care or Physician Select 
 Management. Warning: Although Physicians' Managed Care or Physician Select 
 Management has taken reasonable precautions to ensure no viruses are present 
 in this email, the company cannot accept responsibility for any loss or 
 damage arising from the use of this email or attachments.
 This disclaimer was added by Policy Patrol: http://www.policypatrol.com/
 ___
 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 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] Many Resources Dependent on One Resource Group

2013-03-25 Thread Moullé Alain
Hi
ooops, I made a mistake this morning, should be that :

group G1  B  C

[ order advisory D to I (if you need to launch only one at a time, 
otherwise it is not needed) ]
order mandatory for each D to I and group G1 : G1 than D, G1 than E, etc.
colocations between each D to I and group G1


Alain

 Hi
 If I well understand, I would have tried :
 group G1 mandatory B  C

 group G2 advisory D to I

 order mandatory group G1 than G2

 this should work if I understand well your needs.

 Regards
 Alain
 In the simplest terms, we currently have resources:

 A = drbd
 B = filesystem
 C = cluster IP
 D thru J = mysql instances.

 Resource group G1 consists of resources B through J, in that order, and is 
 dependent on resource A.

 This fails over fine, but it has the serious disadvantage that if you stop 
 or remove a mysql resource in the middle of the list, all of the ones after 
 it stop too. For example, if you stop G, then H thru J stop as well.

 We want to change it so that the resource group G1 consists only of 
 resources B  C. All of the mysql instances (D thru J) are individually 
 dependent on group G1, but not dependent on each other. That way you can 
 stop or remove a mysql resource without affecting the others.

 I saw this scenario described in the Pacemaker docs, but I cannot find an 
 example of the syntax.

 --
 Eric Robinson


 Disclaimer - March 24, 2013
 This email and any files transmitted with it are confidential and intended 
 solely for 'General Linux-HA mailing list'. If you are not the named 
 addressee you should not disseminate, distribute, copy or alter this email. 
 Any views or opinions presented in this email are solely those of the author 
 and might not represent those of Physicians' Managed Care or Physician 
 Select Management. Warning: Although Physicians' Managed Care or Physician 
 Select Management has taken reasonable precautions to ensure no viruses are 
 present in this email, the company cannot accept responsibility for any loss 
 or damage arising from the use of this email or attachments.
 This disclaimer was added by Policy Patrol: http://www.policypatrol.com/
 ___
 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 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 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 IPv6addr OCF

2013-03-25 Thread Keisuke MORI
Hi Nick,

Could you privide which version of resource-agents you're using?

Prior to 3.9.2, IPv6addr requires a static IPv6 address with the
exactly same prefix to find out an apropriate nic; so you should have
statically assigned   2600:3c00::34:c003/116 on eth0 for example.

As of 3.9.3, it has relaxed and the specified nic is always used no
matter if the prefix does not match; so it should just work. (at least
it works for me)

Alternatively, as of 3.9.5, you can also use IPaddr2 for managing a
virtual IPv6 address, which is brand new and I would prefer this
because it uses the standard ip command.

Thanks,

2013/3/25 Nick Walke tubaguy50...@gmail.com:
 This the correct place to report bugs?
 https://github.com/ClusterLabs/resource-agents

 Nick


 On Sun, Mar 24, 2013 at 10:45 PM, Thomas Glanzmann tho...@glanzmann.dewrote:

 Hello Nick,

  I shouldn't be able to do that if the IPv6 module wasn't loaded,
  correct?

 that is correct. I tried modifying my netmask to copy yours. And I get
 the same error, you do:

 ipv6test_start_0 (node=node-62, call=6, rc=1, status=complete):
 unknown error

 So probably a bug in the resource agent. Manually adding and removing
 works:

 (node-62) [~] ip -6 addr add 2a01:4f8:bb:400::2/116 dev eth0
 (node-62) [~] ip -6 addr show dev eth0
 2: eth0: BROADCAST,MULTICAST,UP,LOWER_UP mtu 1500 qlen 1000
 inet6 2a01:4f8:bb:400::2/116 scope global
valid_lft forever preferred_lft forever
 inet6 2a01:4f8:bb:400:225:90ff:fe97:dbb0/64 scope global dynamic
valid_lft 2591887sec preferred_lft 604687sec
 inet6 fe80::225:90ff:fe97:dbb0/64 scope link
valid_lft forever preferred_lft forever
 (node-62) [~] ip -6 addr del 2a01:4f8:bb:400::2/116 dev eth0

 Nick, you can do the following things to resolve this:

 - Hunt down the bug and fix it or let someone else do it for you

 - Use another netmask, if possible (fighting the symptoms instead
 of
   resolving the root cause)

 - Write your own resource agent (fighting the symptoms instead of
   resolving the root cause)

 Cheers,
 Thomas
 ___
 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 mailing list
 Linux-HA@lists.linux-ha.org
 http://lists.linux-ha.org/mailman/listinfo/linux-ha
 See also: http://linux-ha.org/ReportingProblems



-- 
Keisuke MORI
___
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 IPv6addr OCF

2013-03-25 Thread Nick Walke
Looks like 3.9.2-5.  So I need to statically assign the address I want to
use before using it with IPv6addr?
On Mar 25, 2013 3:44 AM, Keisuke MORI keisuke.mori...@gmail.com wrote:

 Hi Nick,

 Could you privide which version of resource-agents you're using?

 Prior to 3.9.2, IPv6addr requires a static IPv6 address with the
 exactly same prefix to find out an apropriate nic; so you should have
 statically assigned   2600:3c00::34:c003/116 on eth0 for example.

 As of 3.9.3, it has relaxed and the specified nic is always used no
 matter if the prefix does not match; so it should just work. (at least
 it works for me)

 Alternatively, as of 3.9.5, you can also use IPaddr2 for managing a
 virtual IPv6 address, which is brand new and I would prefer this
 because it uses the standard ip command.

 Thanks,

 2013/3/25 Nick Walke tubaguy50...@gmail.com:
  This the correct place to report bugs?
  https://github.com/ClusterLabs/resource-agents
 
  Nick
 
 
  On Sun, Mar 24, 2013 at 10:45 PM, Thomas Glanzmann tho...@glanzmann.de
 wrote:
 
  Hello Nick,
 
   I shouldn't be able to do that if the IPv6 module wasn't loaded,
   correct?
 
  that is correct. I tried modifying my netmask to copy yours. And I get
  the same error, you do:
 
  ipv6test_start_0 (node=node-62, call=6, rc=1, status=complete):
  unknown error
 
  So probably a bug in the resource agent. Manually adding and removing
  works:
 
  (node-62) [~] ip -6 addr add 2a01:4f8:bb:400::2/116 dev eth0
  (node-62) [~] ip -6 addr show dev eth0
  2: eth0: BROADCAST,MULTICAST,UP,LOWER_UP mtu 1500 qlen 1000
  inet6 2a01:4f8:bb:400::2/116 scope global
 valid_lft forever preferred_lft forever
  inet6 2a01:4f8:bb:400:225:90ff:fe97:dbb0/64 scope global dynamic
 valid_lft 2591887sec preferred_lft 604687sec
  inet6 fe80::225:90ff:fe97:dbb0/64 scope link
 valid_lft forever preferred_lft forever
  (node-62) [~] ip -6 addr del 2a01:4f8:bb:400::2/116 dev eth0
 
  Nick, you can do the following things to resolve this:
 
  - Hunt down the bug and fix it or let someone else do it for you
 
  - Use another netmask, if possible (fighting the symptoms
 instead
  of
resolving the root cause)
 
  - Write your own resource agent (fighting the symptoms instead
 of
resolving the root cause)
 
  Cheers,
  Thomas
  ___
  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 mailing list
  Linux-HA@lists.linux-ha.org
  http://lists.linux-ha.org/mailman/listinfo/linux-ha
  See also: http://linux-ha.org/ReportingProblems



 --
 Keisuke MORI
 ___
 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 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 IPv6addr OCF

2013-03-25 Thread Keisuke MORI
2013/3/25 Nick Walke tubaguy50...@gmail.com:
 Looks like 3.9.2-5.  So I need to statically assign the address I want to
 use before using it with IPv6addr?

Yes.


 On Mar 25, 2013 3:44 AM, Keisuke MORI keisuke.mori...@gmail.com wrote:

 Hi Nick,

 Could you privide which version of resource-agents you're using?

 Prior to 3.9.2, IPv6addr requires a static IPv6 address with the
 exactly same prefix to find out an apropriate nic; so you should have
 statically assigned   2600:3c00::34:c003/116 on eth0 for example.

 As of 3.9.3, it has relaxed and the specified nic is always used no
 matter if the prefix does not match; so it should just work. (at least
 it works for me)

 Alternatively, as of 3.9.5, you can also use IPaddr2 for managing a
 virtual IPv6 address, which is brand new and I would prefer this
 because it uses the standard ip command.

 Thanks,

 2013/3/25 Nick Walke tubaguy50...@gmail.com:
  This the correct place to report bugs?
  https://github.com/ClusterLabs/resource-agents
 
  Nick
 
 
  On Sun, Mar 24, 2013 at 10:45 PM, Thomas Glanzmann tho...@glanzmann.de
 wrote:
 
  Hello Nick,
 
   I shouldn't be able to do that if the IPv6 module wasn't loaded,
   correct?
 
  that is correct. I tried modifying my netmask to copy yours. And I get
  the same error, you do:
 
  ipv6test_start_0 (node=node-62, call=6, rc=1, status=complete):
  unknown error
 
  So probably a bug in the resource agent. Manually adding and removing
  works:
 
  (node-62) [~] ip -6 addr add 2a01:4f8:bb:400::2/116 dev eth0
  (node-62) [~] ip -6 addr show dev eth0
  2: eth0: BROADCAST,MULTICAST,UP,LOWER_UP mtu 1500 qlen 1000
  inet6 2a01:4f8:bb:400::2/116 scope global
 valid_lft forever preferred_lft forever
  inet6 2a01:4f8:bb:400:225:90ff:fe97:dbb0/64 scope global dynamic
 valid_lft 2591887sec preferred_lft 604687sec
  inet6 fe80::225:90ff:fe97:dbb0/64 scope link
 valid_lft forever preferred_lft forever
  (node-62) [~] ip -6 addr del 2a01:4f8:bb:400::2/116 dev eth0
 
  Nick, you can do the following things to resolve this:
 
  - Hunt down the bug and fix it or let someone else do it for you
 
  - Use another netmask, if possible (fighting the symptoms
 instead
  of
resolving the root cause)
 
  - Write your own resource agent (fighting the symptoms instead
 of
resolving the root cause)
 
  Cheers,
  Thomas
  ___
  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 mailing list
  Linux-HA@lists.linux-ha.org
  http://lists.linux-ha.org/mailman/listinfo/linux-ha
  See also: http://linux-ha.org/ReportingProblems



 --
 Keisuke MORI
 ___
 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 mailing list
 Linux-HA@lists.linux-ha.org
 http://lists.linux-ha.org/mailman/listinfo/linux-ha
 See also: http://linux-ha.org/ReportingProblems



-- 
Keisuke MORI
___
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] [lvs-users] Piranha Project

2013-03-25 Thread Ryan O'Hara
On Tue, Mar 19, 2013 at 06:58:53PM +0100, Charles Williams wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 Hey all,
 
 I recently found myself in need of a LVS and HA web gui for our
 clusters/balancers here to help ease some of our less expierenced
 admins. I can't say that I was impressed with the options out there.
 However, the Piranha Project (no longer active) does offer a starting
 point for what I would like to see.

Did you look at keepalived? Piranha was retired because it is showing
its age and there are better alternatives. Aside from having a
PHP-based web UI, did you see any advantage to using piranha?

 Basically the LVS support that Piranha already has with added support
 for Linux HA (corosyn, pacemaker, heartbeat). If there anyone out
 there would be interested in such a project let me know. I have
 already pulled the last alpha release RPM's that RH released and built
 a rough debian package.

What are you looking to do with piranha and corosync, pacemaker, etc?

Ryan

___
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] [lvs-users] [Pacemaker] Piranha Project

2013-03-25 Thread Jason Ledford
I know it's not nearly as polished a solution, but have you tried using 
something like webmin to manage lvs and HA?  I have some custom scripts and 
commands that I have setup in webmin under the custom commands section.  This 
keeps non-linux admins away from shell access.  My documents have them login to 
webmin with a less than priveledged webmin user that can only see custom 
commands.

Not the most polished like I said, but certainly works.  Webmin does have a 
module for managing heartbeat.

-Original Message-
From: lvs-users-boun...@linuxvirtualserver.org 
[mailto:lvs-users-boun...@linuxvirtualserver.org] On Behalf Of Charles Williams
Sent: Tuesday, March 19, 2013 2:26 PM
To: The Pacemaker cluster resource manager
Cc: LinuxVirtualServer.org users mailing list.; Ryan O'Hara; General Linux-HA 
mailing list
Subject: Re: [lvs-users] [Pacemaker] Piranha Project

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 03/19/2013 07:15 PM, Ryan O'Hara wrote:
 On Tue, Mar 19, 2013 at 06:58:53PM +0100, Charles Williams wrote:
 -BEGIN PGP SIGNED MESSAGE- Hash: SHA1
 
 Hey all,
 
 I recently found myself in need of a LVS and HA web gui for our 
 clusters/balancers here to help ease some of our less expierenced 
 admins. I can't say that I was impressed with the options out there. 
 However, the Piranha Project (no longer
 active) does offer a starting point for what I would like to see.
 
 Did you look at keepalived? Piranha was retired because it is showing 
 its age and there are better alternatives. Aside from having a 
 PHP-based web UI, did you see any advantage to using piranha?

Like I stated above, I am interested in the GUI. I have yet to find one the 
supports both LVS and HA. If you know of one I would like to take a look. 
Support for keepalived would be a major plus. if not then I would have to code 
it in.

Basically I would like to get to where Zen Load Balancer GUI is but based on 
LVS and HA instead of Pen and such.

 
 Basically the LVS support that Piranha already has with added support 
 for Linux HA (corosyn, pacemaker, heartbeat). If there anyone out 
 there would be interested in such a project let me know. I have 
 already pulled the last alpha release RPM's that RH released and 
 built a rough debian package.
 
 What are you looking to do with piranha and corosync, pacemaker, etc?
 
 Ryan
 
 
 ___ Pacemaker mailing
 list: pacema...@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://bugs.clusterlabs.org
 

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with undefined - http://www.enigmail.net/

iEYEARECAAYFAlFIrbQACgkQIUUjp07y+ZYlOACfW84KrXPbS8rX7QG0DMGVY33h
/CYAn1bgGkIuLqGqHE6JzgHh7LloGCYp
=znyS
-END PGP SIGNATURE-

___
Please read the documentation before posting - it's available at:
http://www.linuxvirtualserver.org/

LinuxVirtualServer.org mailing list - lvs-us...@linuxvirtualserver.org Send 
requests to lvs-users-requ...@linuxvirtualserver.org
or go to http://lists.graemef.net/mailman/listinfo/lvs-users
___
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] Pacemeker ssl / freeradius agent

2013-03-25 Thread Michael Schwartzkopff
Am Mittwoch, 20. März 2013, 10:55:11 schrieb Heiko Reimer:
 Hi,
 
 i search an agent to control ssl / freeradius in a pacemaker / corosync
 setup but there are no standard agents. Has anybody
 such an agent or an idea where i can get one?
 
 thx
 
 Heiko Reimer

You could check the lsb script.
See: http://linux-ha.org/wiki/LSB_Resource_Agents

Greetings,

-- 
Mit freundlichen Grüßen,

Michael Schwartzkopff

-- 
[*] sys4 AG

http://sys4.de, +49 (89) 30 90 46 64
Franziskanerstraße 15, 81669 München

Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Axel von der Ohe, Marc Schiffbauer
Aufsichtsratsvorsitzender: Joerg Heidrich
___
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] [lvs-users] [Pacemaker] Piranha Project

2013-03-25 Thread Laura Garcia
Hi, zen load balancer does not use just pen... the layer 4 load balancing
is done at netfilter level...
 El 19/03/2013 19:29, Charles Williams ch...@itadmins.net escribió:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 On 03/19/2013 07:15 PM, Ryan O'Hara wrote:
  On Tue, Mar 19, 2013 at 06:58:53PM +0100, Charles Williams wrote:
  -BEGIN PGP SIGNED MESSAGE- Hash: SHA1
 
  Hey all,
 
  I recently found myself in need of a LVS and HA web gui for our
  clusters/balancers here to help ease some of our less
  expierenced admins. I can't say that I was impressed with the
  options out there. However, the Piranha Project (no longer
  active) does offer a starting point for what I would like to
  see.
 
  Did you look at keepalived? Piranha was retired because it is
  showing its age and there are better alternatives. Aside from
  having a PHP-based web UI, did you see any advantage to using
  piranha?

 Like I stated above, I am interested in the GUI. I have yet to find
 one the supports both LVS and HA. If you know of one I would like to
 take a look. Support for keepalived would be a major plus. if not then
 I would have to code it in.

 Basically I would like to get to where Zen Load Balancer GUI is but
 based on LVS and HA instead of Pen and such.

 
  Basically the LVS support that Piranha already has with added
  support for Linux HA (corosyn, pacemaker, heartbeat). If there
  anyone out there would be interested in such a project let me
  know. I have already pulled the last alpha release RPM's that RH
  released and built a rough debian package.
 
  What are you looking to do with piranha and corosync, pacemaker,
  etc?
 
  Ryan
 
 
  ___ Pacemaker mailing
  list: pacema...@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://bugs.clusterlabs.org
 

 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.11 (GNU/Linux)
 Comment: Using GnuPG with undefined - http://www.enigmail.net/

 iEYEARECAAYFAlFIrbQACgkQIUUjp07y+ZYlOACfW84KrXPbS8rX7QG0DMGVY33h
 /CYAn1bgGkIuLqGqHE6JzgHh7LloGCYp
 =znyS
 -END PGP SIGNATURE-

 ___
 Please read the documentation before posting - it's available at:
 http://www.linuxvirtualserver.org/

 LinuxVirtualServer.org mailing list - lvs-us...@linuxvirtualserver.org
 Send requests to lvs-users-requ...@linuxvirtualserver.org
 or go to http://lists.graemef.net/mailman/listinfo/lvs-users

___
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] Need help in setting up a two node cluster in different subnet

2013-03-25 Thread deep saran
Hi all,

I am trying to setup a two node cluster where both nodes are in different
subnet. I am using corosync/pacemaker for this. I am newbie in this field
and have no idea how to configure corosync/pacemaker to work in different
subnet. My initial investigation suggest that it is possible using VIPArip
along with ripd/quagga but i dont understand how to configure them to work
in my networking environment. Can anyone suggest any document or demostrate
using an example, i will be really grateful.

Please help me if you have any prior experience in this field.

Thanks in advance!!!

Regards,
Deep
___
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] Need help in setting up a two node cluster in different subnet

2013-03-25 Thread Florian Crouzat
Le 24/03/2013 16:59, deep saran a écrit :
 Hi all,

 I am trying to setup a two node cluster where both nodes are in different
 subnet. I am using corosync/pacemaker for this. I am newbie in this field
 and have no idea how to configure corosync/pacemaker to work in different
 subnet. My initial investigation suggest that it is possible using VIPArip
 along with ripd/quagga but i dont understand how to configure them to work
 in my networking environment. Can anyone suggest any document or demostrate
 using an example, i will be really grateful.

 Please help me if you have any prior experience in this field.

 Thanks in advance!!!

 Regards,
 Deep


Wow, you just dropped some heavy words in there: quagga  such..
What you want to configure is corosync, the messaging layer.
Pacemaker only handles clusterized resources.
What you must do is to configure and use multicast in corosync.conf, see 
the man page for corosync.conf and beware that your network equipments 
might drop multicast.


-- 
Cheers,
Florian Crouzat
___
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] Need help in setting up a two node cluster in different subnet

2013-03-25 Thread David Coulson
Assuming the two systems can already route between each other, just configure 
udpu as your transport.

Example config:

http://lists.corosync.org/pipermail/discuss/2011-October/48.html

On Mar 24, 2013, at 11:59 AM, deep saran wrote:

 Hi all,
 
 I am trying to setup a two node cluster where both nodes are in different
 subnet. I am using corosync/pacemaker for this. I am newbie in this field
 and have no idea how to configure corosync/pacemaker to work in different
 subnet. My initial investigation suggest that it is possible using VIPArip
 along with ripd/quagga but i dont understand how to configure them to work
 in my networking environment. Can anyone suggest any document or demostrate
 using an example, i will be really grateful.
 
 Please help me if you have any prior experience in this field.
 
 Thanks in advance!!!
 
 Regards,
 Deep
 ___
 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 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] Need help in setting up a two node cluster in different subnet

2013-03-25 Thread Michael Schwartzkopff
Am Montag, 25. März 2013, 14:43:00 schrieb Florian Crouzat:
 Le 24/03/2013 16:59, deep saran a écrit :
  Hi all,
  
  I am trying to setup a two node cluster where both nodes are in different
  subnet. I am using corosync/pacemaker for this. I am newbie in this field
  and have no idea how to configure corosync/pacemaker to work in different
  subnet. My initial investigation suggest that it is possible using VIPArip
  along with ripd/quagga but i dont understand how to configure them to work
  in my networking environment. Can anyone suggest any document or
  demostrate
  using an example, i will be really grateful.
  
  Please help me if you have any prior experience in this field.
  
  Thanks in advance!!!
  
  Regards,
  Deep
 
 Wow, you just dropped some heavy words in there: quagga  such..
 What you want to configure is corosync, the messaging layer.
 Pacemaker only handles clusterized resources.
 What you must do is to configure and use multicast in corosync.conf, see
 the man page for corosync.conf and beware that your network equipments
 might drop multicast.

Hi,

the first problem might be the multicast traffic between the nodes if your 
network equipment is not prepared for multicast routing.

you can avoid this problem using the udpu transport which switches the inter-
node communication to to unicast. google for corosync udpu for further info.

The next problem is the availability of a service if the nodes are located in 
different subnets. Here you definitely will have to implement a dynamic 
routing protocol to make sure that the pakets are routed the the subnet with 
the active node. You can use quagga as a cluster resource.

But are you sure that you need all this? Perhaps you can setup your network 
that you have access to the same subnet for both nodes? That would make 
clustering much easier.

Greetings,

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

Tel: (0163) 172 50 98
___
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] Need help in setting up a two node cluster in different subnet

2013-03-25 Thread Florian Crouzat
Le 25/03/2013 14:48, Michael Schwartzkopff a écrit :
 Am Montag, 25. März 2013, 14:43:00 schrieb Florian Crouzat:

 you can avoid this problem using the udpu transport which switches the inter-
 node communication to to unicast. google for corosync udpu for further info.

I believe you cannot use udpu when nodes are not in the same subnet as 
you cannot define a valid bindnetaddr.


-- 
Cheers,
Florian Crouzat
___
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 IPv6addr OCF

2013-03-25 Thread Nick Walke
That works.  Thanks!

Nick


On Mon, Mar 25, 2013 at 4:22 AM, Keisuke MORI keisuke.mori...@gmail.comwrote:

 2013/3/25 Nick Walke tubaguy50...@gmail.com:
  Looks like 3.9.2-5.  So I need to statically assign the address I want to
  use before using it with IPv6addr?

 Yes.


  On Mar 25, 2013 3:44 AM, Keisuke MORI keisuke.mori...@gmail.com
 wrote:
 
  Hi Nick,
 
  Could you privide which version of resource-agents you're using?
 
  Prior to 3.9.2, IPv6addr requires a static IPv6 address with the
  exactly same prefix to find out an apropriate nic; so you should have
  statically assigned   2600:3c00::34:c003/116 on eth0 for example.
 
  As of 3.9.3, it has relaxed and the specified nic is always used no
  matter if the prefix does not match; so it should just work. (at least
  it works for me)
 
  Alternatively, as of 3.9.5, you can also use IPaddr2 for managing a
  virtual IPv6 address, which is brand new and I would prefer this
  because it uses the standard ip command.
 
  Thanks,
 
  2013/3/25 Nick Walke tubaguy50...@gmail.com:
   This the correct place to report bugs?
   https://github.com/ClusterLabs/resource-agents
  
   Nick
  
  
   On Sun, Mar 24, 2013 at 10:45 PM, Thomas Glanzmann 
 tho...@glanzmann.de
  wrote:
  
   Hello Nick,
  
I shouldn't be able to do that if the IPv6 module wasn't loaded,
correct?
  
   that is correct. I tried modifying my netmask to copy yours. And I
 get
   the same error, you do:
  
   ipv6test_start_0 (node=node-62, call=6, rc=1, status=complete):
   unknown error
  
   So probably a bug in the resource agent. Manually adding and removing
   works:
  
   (node-62) [~] ip -6 addr add 2a01:4f8:bb:400::2/116 dev eth0
   (node-62) [~] ip -6 addr show dev eth0
   2: eth0: BROADCAST,MULTICAST,UP,LOWER_UP mtu 1500 qlen 1000
   inet6 2a01:4f8:bb:400::2/116 scope global
  valid_lft forever preferred_lft forever
   inet6 2a01:4f8:bb:400:225:90ff:fe97:dbb0/64 scope global dynamic
  valid_lft 2591887sec preferred_lft 604687sec
   inet6 fe80::225:90ff:fe97:dbb0/64 scope link
  valid_lft forever preferred_lft forever
   (node-62) [~] ip -6 addr del 2a01:4f8:bb:400::2/116 dev eth0
  
   Nick, you can do the following things to resolve this:
  
   - Hunt down the bug and fix it or let someone else do it for
 you
  
   - Use another netmask, if possible (fighting the symptoms
  instead
   of
 resolving the root cause)
  
   - Write your own resource agent (fighting the symptoms
 instead
  of
 resolving the root cause)
  
   Cheers,
   Thomas
   ___
   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 mailing list
   Linux-HA@lists.linux-ha.org
   http://lists.linux-ha.org/mailman/listinfo/linux-ha
   See also: http://linux-ha.org/ReportingProblems
 
 
 
  --
  Keisuke MORI
  ___
  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 mailing list
  Linux-HA@lists.linux-ha.org
  http://lists.linux-ha.org/mailman/listinfo/linux-ha
  See also: http://linux-ha.org/ReportingProblems



 --
 Keisuke MORI
 ___
 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 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] manage/umanage

2013-03-25 Thread Moullé Alain
Hi,

I've tested two things :

1/ if we set maintenance-mode=true :

 all the configured ressources become 'unmanaged' , as displayed 
with crm_mon
 ok start stop are no more accepted
 and it seems that ressources are no more monitored any more by 
pacemaker

2/ if we target only one resource via the crm resource umanage resname :

 it is also displayed unmanage with crm_mon
 ok start stop are no more accepted
 BUT pacemaker always monitors the resource

Is there a reason for this difference ?

And is there a simple way to set a single ressource umanage but also to 
avoir monitoring on this ressource ?

Thanks
Alain

___
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] Many Resources Dependent on One Resource Group

2013-03-25 Thread Andreas Kurz
On 2013-03-24 17:58, Robinson, Eric wrote:
 In the simplest terms, we currently have resources:
 
 A = drbd
 B = filesystem
 C = cluster IP
 D thru J = mysql instances.
 
 Resource group G1 consists of resources B through J, in that order, and is 
 dependent on resource A.
 
 This fails over fine, but it has the serious disadvantage that if you stop or 
 remove a mysql resource in the middle of the list, all of the ones after it 
 stop too. For example, if you stop G, then H thru J stop as well.
 
 We want to change it so that the resource group G1 consists only of resources 
 B  C. All of the mysql instances (D thru J) are individually dependent on 
 group G1, but not dependent on each other. That way you can stop or remove a 
 mysql resource without affecting the others.
 
 I saw this scenario described in the Pacemaker docs, but I cannot find an 
 example of the syntax.

You can use two resource-sets and go without groups, with that crm shell
syntax:

order o_drbd-filesystem-ip-dbs inf: A:promote B C (D E F G H I J)
colocate co_all-follow-drbd inf: (D E F G H I J) B C A:Master

Regards,
Andreas

 
 --
 Eric Robinson
 
 
 Disclaimer - March 24, 2013 
 This email and any files transmitted with it are confidential and intended 
 solely for 'General Linux-HA mailing list'. If you are not the named 
 addressee you should not disseminate, distribute, copy or alter this email. 
 Any views or opinions presented in this email are solely those of the author 
 and might not represent those of Physicians' Managed Care or Physician Select 
 Management. Warning: Although Physicians' Managed Care or Physician Select 
 Management has taken reasonable precautions to ensure no viruses are present 
 in this email, the company cannot accept responsibility for any loss or 
 damage arising from the use of this email or attachments. 
 This disclaimer was added by Policy Patrol: http://www.policypatrol.com/
 ___
 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
 


-- 
Need help with Pacemaker?
http://www.hastexo.com/now

___
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