[Linux-HA] Robert Koeppl ist außer Haus. Robert Koeppl is out of office

2011-06-03 Thread Robert . Koeppl

Ich werde ab  04.06.2011 nicht im Büro sein. Ich kehre zurück am
13.06.2011.

Ich werde Ihre Nachricht nach meiner Rückkehr beantworten.
I will answer your Message after my return.

___
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] ocf:heartbeat:anything

2011-06-03 Thread Mateusz Kalisiak
Hello,

I have succesfully configured a simple two-node cluster. The cluster manages
only two virtual IPs, so far.
I'd like to add another resource, which would be a simple application which
is started by "init.d-type" script, for example: /etc/init.d/app start.
After start it is running "daemon-like".
As I suppose I should use ocf:heartbeat:anything resource agent to manage
this application.
Unfortunately when trying to use it I get some unknown_errors and process
fails to start:

Jun  4 01:44:18 blue pengine: [24591]: info: unpack_config: Startup probes:
enabled
Jun  4 01:44:18 blue pengine: [24591]: notice: unpack_config: On loss of CCM
Quorum: Ignore
Jun  4 01:44:18 blue pengine: [24591]: info: unpack_config: Node scores:
'red' = -INFINITY, 'yellow' = 0, 'green' = 0
Jun  4 01:44:18 blue pengine: [24591]: info: unpack_domains: Unpacking
domains
Jun  4 01:44:18 blue pengine: [24591]: info: determine_online_status: Node
red is online
Jun  4 01:44:18 blue pengine: [24591]: WARN: unpack_rsc_op: Processing
failed op app_monitor_2 on red: unknown error (1)
Jun  4 01:44:18 blue pengine: [24591]: WARN: unpack_rsc_op: Processing
failed op app_start_0 on red: unknown error (1)
Jun  4 01:44:18 blue pengine: [24591]: info: determine_online_status: Node
blue is online
Jun  4 01:44:18 blue pengine: [24591]: WARN: unpack_rsc_op: Processing
failed op app_monitor_2 on blue: unknown error (1)
Jun  4 01:44:18 blue pengine: [24591]: WARN: unpack_rsc_op: Processing
failed op app_start_0 on blue: unknown error (1)
Jun  4 01:44:18 blue pengine: [24591]: notice: native_print:
res_IPaddr2_VIPAPP-112#011(ocf::heartbeat:IPaddr2):#011Started red
Jun  4 01:44:18 blue pengine: [24591]: notice: native_print:
res_IPaddr2_VIPAPP-118#011(ocf::heartbeat:IPaddr2):#011Started blue
Jun  4 01:44:18 blue pengine: [24591]: notice: native_print:
app#011(ocf::heartbeat:anything):#011Stopped
Jun  4 01:44:18 blue pengine: [24591]: info: get_failcount: app has failed
INFINITY times on red
Jun  4 01:44:18 blue pengine: [24591]: WARN: common_apply_stickiness:
Forcing app away from red after 100 failures (max=100)
Jun  4 01:44:18 blue pengine: [24591]: info: get_failcount: app has failed
INFINITY times on blue
Jun  4 01:44:18 blue pengine: [24591]: WARN: common_apply_stickiness:
Forcing app away from blue after 100 failures (max=100)
Jun  4 01:44:18 blue pengine: [24591]: info: native_color: Resource app
cannot run anywhere
Jun  4 01:44:18 blue pengine: [24591]: notice: LogActions: Leave resource
res_IPaddr2_VIPAPP-112#011(Started red)
Jun  4 01:44:18 blue pengine: [24591]: notice: LogActions: Leave resource
res_IPaddr2_VIPAPP-118#011(Started blue)
Jun  4 01:44:18 blue pengine: [24591]: notice: LogActions: Leave resource
app#011(Stopped)

My cluster configuration:
node blue
node red \
attributes standby="off"
primitive res_IPaddr2_VIPAPP-112 ocf:heartbeat:IPaddr2 \
params ip="172.16.112.67" \
operations $id="res_IPaddr2_VIPAPP-112-operations" \
op start interval="0" timeout="20" \
op stop interval="0" timeout="20" \
op monitor interval="10" timeout="20" start-delay="0"
primitive res_IPaddr2_VIPAPP-118 ocf:heartbeat:IPaddr2 \
params ip="172.16.118.5" \
operations $id="res_IPaddr2_VIPAPP-118-operations" \
op start interval="0" timeout="20" \
op stop interval="0" timeout="20" \
op monitor interval="10" timeout="20" start-delay="0"
primitive res_anything_1 ocf:heartbeat:anything \
params binfile="/etc/init.d/app" cmdline_options="start" \
operations $id="res_anything_1-operations" \
op start interval="0" timeout="20" \
op stop interval="0" timeout="20" \
op monitor interval="10" timeout="20" start-delay="0"
property $id="cib-bootstrap-options" \
expected-quorum-votes="2" \
stonith-enabled="false" \
dc-version="1.1.2-f059ec7ced7a86f18e5490b67ebf4a0b963bccfe" \
no-quorum-policy="ignore" \
cluster-infrastructure="openais"


What are the prerequisites to run process by ocf:heartbeat:anything? Should
I use some different agent? Maybe the only way is writing your own agent?
I'll be grateful for any help.

Regards,
Mateusz
___
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] AUTO: Jonathan Trott is out of the office (returning 15/06/2011)

2011-06-03 Thread Jonathan Trott

I am out of the office until 15/06/2011.

Please contact supp...@dancrai.com.au for support.


Note: This is an automated response to your message  "Linux-HA Digest, Vol
91, Issue 2" sent on 4/06/2011 4:00:03 AM.

This is the only notification you will receive while this person is away.

___
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] Urgent help required ... Corosync not getting started ... !!!

2011-06-03 Thread Mike Caldwell
On Fri, Jun 3, 2011 at 8:54 AM, Mike Caldwell wrote:

>
>
> On Fri, Jun 3, 2011 at 3:18 AM, Amit Jathar  wrote:
>
>> The Selinux is disabled.
>> I am launching corosync with command "/usr/etc/init.d/corosync start"
>>
>> How to "strace" lauch of corosync ? Also, how to check the UID?
>>
>> strace /usr/etc/init.d/corosync start
>

You probably will want to use the -f option with strace.
___
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] Urgent help required ... Corosync not getting started ... !!!

2011-06-03 Thread Mike Caldwell
On Fri, Jun 3, 2011 at 3:18 AM, Amit Jathar  wrote:

> The Selinux is disabled.
> I am launching corosync with command "/usr/etc/init.d/corosync start"
>
> How to "strace" lauch of corosync ? Also, how to check the UID?
>
> strace /usr/etc/init.d/corosync start
___
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] Urgent help required ... Corosync not getting started ... !!!

2011-06-03 Thread Amit Jathar
The Selinux is disabled.
I am launching corosync with command "/usr/etc/init.d/corosync start"

How to "strace" lauch of corosync ? Also, how to check the UID?

-Original Message-
From: linux-ha-boun...@lists.linux-ha.org 
[mailto:linux-ha-boun...@lists.linux-ha.org] On Behalf Of Eric Warnke
Sent: 02 June 2011 19:16
To: General Linux-HA mailing list
Subject: Re: [Linux-HA] Urgent help required ... Corosync not getting started 
... !!!


Selinux is disabled? 'getenforce' returns permissive/disabled?

How are you launching corosync, init script or direct?

What UID are you launching corosync as?

Does 'strace'-ing the launch of corosync reveal anything?

Eric


On 6/1/11 11:32 PM, "Amit Jathar"  wrote:

>Hi,
>
>I have modified my corosync.conf file as follows :- logging {
>fileline: off
>to_syslog: yes
>to_stderr: no
>syslog_facility: daemon
>debug: on
>timestamp: on
>to_logfile: yes
>logfile: /var/log/corosync.log
>
> }
>
>The corosync fails at startup & the file /var/log/corosync.log is not
>getting created... :(
>
>Thanks,
>Amit
>-Original Message-
>From: linux-ha-boun...@lists.linux-ha.org
>[mailto:linux-ha-boun...@lists.linux-ha.org] On Behalf Of Mike Caldwell
>Sent: 02 June 2011 02:42
>To: General Linux-HA mailing list
>Subject: Re: [Linux-HA] Urgent help required ... Corosync not getting
>started ... !!!
>
>>
>>
>> I am not able to troubleshoot the issue after chasing it for more
>> than a day . No hint, as no logs present in /var/log/messages/ ... :(
>> Any help is appreciable.
>>
>> Let me know, if you need more information.
>>
>> Thanks,
>> Amit
>>
>> I've had more luck with logging set up with
>
>   to_logfile: yes
>   logfile: /var/log/corosync.log
>___
>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
>
>
>
>This email (message and any attachment) is confidential and may be
>privileged. If you are not certain that you are the intended recipient,
>please notify the sender immediately by replying to this message, and
>delete all copies of this message and attachments. Any other use of
>this email by you is prohibited.
>
>
>
>___
>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



This email (message and any attachment) is confidential and may be privileged. 
If you are not certain that you are the intended recipient, please notify the 
sender immediately by replying to this message, and delete all copies of this 
message and attachments. Any other use of this email by you is prohibited.



___
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] Helper script for kvm/drbd/HA

2011-06-03 Thread Joukoy
On 1.6.2011 17:09, Joukoy wrote:
> I am trying to find easy-to-use distribution and/or tool for managing 
> cluster with:
> - 2 hosts
> - drbd replication between hosts
> - HA for virtual machines & drbd
> But can't find anything that really fits my requirements, so I created 
> a script...
>
> Now I have Scientific Linux 6 x86_64 installed in 2 identical machines 
> with this configuration:
> - Gigabit ethernet between hosts
> - KVM virtualization
> - Pacemaker/Corosync, configured with DRBD-MC
> - LVM volume group, named "vg01" with free space for VM's
> - public key authentication, so I can run commands in both hosts
>
> When I run my script with "create" parameter, it will do the following:
> - Ask name for new virtual machine (GUI with zenity :) )
> - Ask disk size for VM
> - Create logical volume in both hosts
> - setup DRBD replication for volumes
> - Create new VM and configure it to use /dev/drbd? as harddisk
> - Open Virtual Machine Manager so user can modify settings for VM
> - Configure cluster to take care of drbd & VM
>
> And with "delete" parameter it will remove cluster , VM, drbd and lvm 
> configs for selected VM.
>
> I hope someone with programming skills can try and improve this ( a 
> lot :-) )
>
> Standard disclaimer: I am not responsible if this script destroys your 
> data and/or server. Use at your own risk
>
>

.zip attachment may be a bad idea?
Maybe this is better way:
https://github.com/joukoy/KVM-cluster-tool


___
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] Antw: Re: ocf:IPaddr: "Iflabel" seems to be ignored

2011-06-03 Thread Ulrich Windl
>>> Alan Robertson  schrieb am 02.06.2011 um 19:49 in Nachricht
<4de7cd34.3000...@unix.sh>:
> On 05/23/2011 07:37 AM, Lars Ellenberg wrote:
> > On Mon, May 23, 2011 at 01:13:48PM +0200, Lars Marowsky-Bree wrote:
> >> On 2011-05-12T11:28:49, Ulrich Windl  
> >> wrote:
> >>
[...]
> > So conclusion may be: use IPaddr2 ;-)
> >
> > And we need to patch out the "iflabel" parameter from IPaddr again, 
> probably.
> I'm not sure how it erroneously got in the metadata - but iflabel can 
> only be supported by ipaddr2 - exactly as Lars says.

Hi!

I moved to IPaddr2 in the meantime. Patching out the iflabel parameter is 
probably bad as it will make a valid configuration invalid. The only proper fix 
is to implement it.

Regards,
Ulrich


___
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