Re: [Linux-HA] Apparent problem in pacemaker ordering

2012-03-19 Thread Andrew Beekhof
On Tue, Mar 6, 2012 at 3:53 AM, Florian Haas  wrote:
> On Sat, Mar 3, 2012 at 8:14 PM, Florian Haas  wrote:
>> In other words, interleave=true is actually the reasonable thing to
>> set on all clone instances by default, and I believe the pengine
>> actually does use a default of interleave=true on defined clone sets
>> since some 1.1.x release (I don't recall which).
>
> I think I have to correct myself here, as a cursory "git log
> --grep=interleave" hasn't turned up anything recent. So I might have
> mis-remembered, which would mean the old interleave=false default is
> still unchanged. Andrew, could you clarify please?

It never became the default.

We do appear to be complaining too early though:

diff --git a/pengine/clone.c b/pengine/clone.c
index 5ff0b02..0b832fc 100644
--- a/pengine/clone.c
+++ b/pengine/clone.c
@@ -1035,7 +1035,7 @@ clone_rsc_colocation_rh(resource_t * rsc_lh,
resource_t * rsc_rh, rsc_colocation
 if (constraint->rsc_lh->variant >= pe_clone) {

 get_clone_variant_data(clone_data_lh, constraint->rsc_lh);
-if (clone_data->clone_node_max != clone_data_lh->clone_node_max) {
+if (clone_data_lh->interleave && clone_data->clone_node_max
!= clone_data_lh->clone_node_max) {
 crm_config_err("Cannot interleave " XML_CIB_TAG_INCARNATION
" %s and %s because"
" they do not support the same number of"



>
> Cheers,
> Florian
>
> --
> Need help with High Availability?
> 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


Re: [Linux-HA] Command execution prior to resource start

2012-03-19 Thread Florian Haas
On Sat, Mar 17, 2012 at 1:06 PM, Charles Williams  wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> Hey all,
>
> I have been looking all over for a way to do this and have yet to find
> anything.
>
> I have a symlink resource that links an nfs share to /var/spool/cron
> (/var/spool/cron -> /mnt/imports/nvwh2.bluedotmedia.de/var/spool/cron)
> and I need to be able to check if /var/spool/cron exists and if so if
> it's a symlink prior to starting the resource. If it's an actual
> directory I will need to delete it, start the resource and restart cron.
> If not then cron will not be able to access the spool directory because
> the inode has changed.
>
> I have been looking at the dummy resource to maybe be able to do this
> but am not sure if it will work.
>
> Does anyone have an idea how this could be accomplished?

Should be doable with some clever use of constraints. Have a look at this:

http://www.hastexo.com/resources/hints-and-kinks/managing-cron-jobs-pacemaker

That post explains managing cron job _definitions_ rather than the
spool directory, but you should be able to apply the concept to your
issue anyhow.

Hope this helps.

Cheers,
Florian

-- 
hastexo High Availability Expert Training
http://www.hastexo.com/hhax
___
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] Wiki access request

2012-03-19 Thread Dejan Muhamedagic
Hi Vincent,

On Thu, Mar 15, 2012 at 09:00:59AM +0100, Vincent van Adrighem wrote:
> Hi all,
> I have been a happy user of several linux-ha project tools. I would like to 
> help out by editing the wiki. Can one of the site maintainers give me an 
> account?

Just created an account for you. You should've received an email
about it.

Cheers,

Dejan

> Thanks for your time.
> Kind regards,
> Vincent van Adrighem
> ___
> 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] Wiki access request

2012-03-19 Thread Vincent van Adrighem
Hi all,
I have been a happy user of several linux-ha project tools. I would like to 
help out by editing the wiki. Can one of the site maintainers give me an 
account?

Thanks for your time.
Kind regards,
Vincent van Adrighem
___
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