Re: [Linux-ha-dev] [Linux-HA] Hetzner server stonith agent

2011-06-03 Thread Dejan Muhamedagic
Hi, On Fri, May 27, 2011 at 04:32:37PM +0200, RaSca wrote: Il giorno Ven 27 Mag 2011 15:33:24 CET, Dejan Muhamedagic ha scritto: [...] Yes. It's because users cannot read comments that easily, they usually look at the logs. If at all. Cheers, New (and hopefully last) version attached.

Re: [Linux-ha-dev] [Linux-HA] Hetzner server stonith agent

2011-05-27 Thread RaSca
Il giorno Gio 26 Mag 2011 23:01:48 CET, Lars Ellenberg ha scritto: [...] Would that not be a power on? alright, seems to just be change boot settings, not boot per se. Oh well... Yes, as you saw, it is not some kind of boot mode, but just a setting. Note, in addition, that there's also a

Re: [Linux-ha-dev] [Linux-HA] Hetzner server stonith agent

2011-05-27 Thread Dejan Muhamedagic
Hi, On Thu, May 26, 2011 at 10:50:52PM +0200, Lars Ellenberg wrote: On Thu, May 26, 2011 at 06:31:16PM +0200, RaSca wrote: Il giorno Gio 26 Mag 2011 11:13:46 CET, RaSca ha scritto: [...] The new version is attached. Hi all, After talking with Dejan on IRC, here it is the new version

Re: [Linux-ha-dev] [Linux-HA] Hetzner server stonith agent

2011-05-27 Thread RaSca
Il giorno Ven 27 Mag 2011 14:41:32 CET, Dejan Muhamedagic ha scritto: Hi, [...] # Can't really be implemented because Hetzner webservice cannot power on a system Replace comments with ha_log.sh calls. Hi Dej, everything else it's clear and I've already updated the script, but what do

Re: [Linux-ha-dev] [Linux-HA] Hetzner server stonith agent

2011-05-27 Thread RaSca
Il giorno Ven 27 Mag 2011 15:02:11 CET, RaSca ha scritto: Il giorno Ven 27 Mag 2011 14:41:32 CET, Dejan Muhamedagic ha scritto: Hi, [...] # Can't really be implemented because Hetzner webservice cannot power on a system Replace comments with ha_log.sh calls. Hi Dej, everything else

Re: [Linux-ha-dev] [Linux-HA] Hetzner server stonith agent

2011-05-27 Thread Dejan Muhamedagic
On Fri, May 27, 2011 at 03:03:06PM +0200, RaSca wrote: Il giorno Ven 27 Mag 2011 15:02:11 CET, RaSca ha scritto: Il giorno Ven 27 Mag 2011 14:41:32 CET, Dejan Muhamedagic ha scritto: Hi, [...] # Can't really be implemented because Hetzner webservice cannot power on a system Replace

Re: [Linux-ha-dev] [Linux-HA] Hetzner server stonith agent

2011-05-27 Thread RaSca
Il giorno Ven 27 Mag 2011 15:33:24 CET, Dejan Muhamedagic ha scritto: [...] Yes. It's because users cannot read comments that easily, they usually look at the logs. If at all. Cheers, New (and hopefully last) version attached. Bye, -- RaSca Mia Mamma Usa Linux: Niente รจ impossibile da

Re: [Linux-ha-dev] [Linux-HA] Hetzner server stonith agent

2011-05-26 Thread RaSca
Il giorno Mar 24 Mag 2011 16:10:17 CET, Lars Ellenberg ha scritto: [...] exit $((! $?)) That is going to invert the code. the shell has ! for that. ! is_host_up Coffee? ;-) Ok, following your suggestions I've modified (and tested, of course) the script. Compacting as much

Re: [Linux-ha-dev] [Linux-HA] Hetzner server stonith agent

2011-05-26 Thread RaSca
Il giorno Gio 26 Mag 2011 11:13:46 CET, RaSca ha scritto: [...] The new version is attached. Hi all, After talking with Dejan on IRC, here it is the new version of the agent. Major changes: - The script do not relies anymore on SSH for checking the correct fence of the device, instead it

Re: [Linux-ha-dev] [Linux-HA] Hetzner server stonith agent

2011-05-26 Thread Lars Ellenberg
On Thu, May 26, 2011 at 06:31:16PM +0200, RaSca wrote: Il giorno Gio 26 Mag 2011 11:13:46 CET, RaSca ha scritto: [...] The new version is attached. Hi all, After talking with Dejan on IRC, here it is the new version of the agent. Major changes: - The script do not relies anymore on SSH

Re: [Linux-ha-dev] [Linux-HA] Hetzner server stonith agent

2011-05-26 Thread Lars Ellenberg
On Thu, May 26, 2011 at 10:50:52PM +0200, Lars Ellenberg wrote: case $1 in gethosts) echo $hostname exit 0 ;; on) # Can't really be implemented because Hetzner webservice cannot power on a system exit 1 ;; off) # Can't really be implemented

Re: [Linux-ha-dev] [Linux-HA] Hetzner server stonith agent

2011-05-26 Thread Lars Ellenberg
On Thu, May 26, 2011 at 10:58:44PM +0200, Lars Ellenberg wrote: On Thu, May 26, 2011 at 10:50:52PM +0200, Lars Ellenberg wrote: case $1 in gethosts) echo $hostname exit 0 ;; on) # Can't really be implemented because Hetzner webservice cannot power on a

Re: [Linux-ha-dev] [Linux-HA] Hetzner server stonith agent

2011-05-24 Thread Dejan Muhamedagic
Hi, On Tue, May 24, 2011 at 10:08:38AM +0200, RaSca wrote: Hi all, as some of you saw in the last two weeks I've faced some problems in configuring a Corosync/Pacemaker cluster on two Hetzner server. The main problem about those cheap and very powerful servers is their network management.

Re: [Linux-ha-dev] [Linux-HA] Hetzner server stonith agent

2011-05-24 Thread Dejan Muhamedagic
On Tue, May 24, 2011 at 12:44:42PM +0200, RaSca wrote: Il giorno Mar 24 Mag 2011 12:27:04 CET, Dejan Muhamedagic ha scritto: Hi, Hi Dejan, [...] # Read parameters conf_file=/etc/hetzner.cfg user=`cat /etc/hetzner.cfg | egrep ^user.*= | sed 's/^user.*=\ *//g'` Better: user=`sed

Re: [Linux-ha-dev] [Linux-HA] Hetzner server stonith agent

2011-05-24 Thread Lars Ellenberg
On Tue, May 24, 2011 at 03:41:53PM +0200, Dejan Muhamedagic wrote: On Tue, May 24, 2011 at 12:44:42PM +0200, RaSca wrote: Il giorno Mar 24 Mag 2011 12:27:04 CET, Dejan Muhamedagic ha scritto: Hi, Hi Dejan, [...] # Read parameters conf_file=/etc/hetzner.cfg user=`cat

Re: [Linux-ha-dev] [Linux-HA] Hetzner server stonith agent

2011-05-24 Thread Dejan Muhamedagic
On Tue, May 24, 2011 at 04:10:17PM +0200, Lars Ellenberg wrote: On Tue, May 24, 2011 at 03:41:53PM +0200, Dejan Muhamedagic wrote: On Tue, May 24, 2011 at 12:44:42PM +0200, RaSca wrote: Il giorno Mar 24 Mag 2011 12:27:04 CET, Dejan Muhamedagic ha scritto: Hi, Hi Dejan,