[Pacemaker] Exclude resource from host
Arthur B. Olsen
ABO at ft.fo
Wed Mar 9 14:18:28 UTC 2011
On 09-03-11 11:28, "Dejan Muhamedagic" <dejanmm at fastmail.fm> wrote:
>On Wed, Mar 09, 2011 at 10:16:31AM +0000, Arthur B. Olsen wrote:
>>
>>
>> On 08-03-11 11:11, "Dejan Muhamedagic" <dejanmm at fastmail.fm> wrote:
>>
>> >Hi,
>> >
>> >On Tue, Mar 08, 2011 at 07:05:04AM +0000, Arthur B. Olsen wrote:
>> >> But it will still give me an action failed for those nodes where fx
>> >>nfs-kernel-server is not installed. And when both nfs nodes are down
>>it
>> >>will try to get it running on the sql servers
>> >
>> >Pacemaker will never try to run a resource on a node for which
>> >its score is negative. Do you also get errors on probes
>> >(monitor)? If so, then that should be either fixed in the RA or
>> >you can just install nfs server packages.
>>
>> I get these errors on my mysql hosts:
>> ERROR: lsb:nfs-common: could not parse meta-data:
>> ERROR: lsb:nfs-common: no such resource agent
>> ERROR: lsb:nfs-kernel-server: could not parse meta-data:
>> ERROR: lsb:nfs-kernel-server: no such resource agent
>
>These are errors you get from the crm shell. They have nothing to
>do with the issue you reported. IIRC, if your configuration
>stated that this is an asymmetrical cluster (which it actually
>is), the shell wouldn't complain about missing agents.
>
>Thanks,
>
>Dejan
And there lies the answer to all my trouble. symmetric-cluster="false".
This was what is was looking for, but didn't know how to ask for it.
Thanks
>
>> I could install the nfs software on the mysql servers and mysql on the
>>nfs
>> server.
>> But it does not seem like an elegant solution.
>>
>> >
>> >Thanks,
>> >
>> >Dejan
>> >
>> >> Arthur B Olsen
>> >> Føroya Tele
>> >> +298 243392
>> >> +298 303392
>> >>
>> >> On 07/03/2011, at 21.27, "Glenn Elliott"
>> >><gelliott at stvincents.com.au<mailto:gelliott at stvincents.com.au>> wrote:
>> >>
>> >> Does a location rule help?
>> >>
>> >> node <http://node1.foo.com> node1.foo.com<http://node1.foo.com>
>> >> node <http://node2.foo.com> node2.foo.com<http://node2.foo.com>
>> >> primitive node1-ip ocf:heartbeat:IPaddr \
>> >> params ip="10.56.0.10" cidr_netmask="24" \
>> >> op monitor interval="10s"
>> >> location exclude_node node1-ip -inf: <http://node1.foo.com>
>> >>node1.foo.com<http://node1.foo.com>
>> >>
>> >>
>> >> >>> On 8/03/2011 at 5:58 am, in message
>> >><4D752AEF.1070301 at huapi.ba.ar<mailto:4D752AEF.1070301 at huapi.ba.ar>>,
>> >>tron at huapi.ba.ar<mailto:tron at huapi.ba.ar> wrote:
>> >> Beware: sorcerer's apprentice advice:
>> >>
>> >> What about Lars' double negation trick of having an -infinite rule
>> >> applied to this resource living in other than the two "good" nodes ?
>> >>
>> >> -Carlos
>> >>
>> >> Arthur B. Olsen @ 07/03/2011 15:02 -0300 dixit:
>> >> > I was wondering how to make a resource not to run on a certain
>>host.
>> >>I have two nfs servers an two mysql server in one cluster. Now i get
>> >>failed actions because nfs is not installed on mysql an visa versa.
>> >> >
>> >> > Maybe this is trivial, but it has escaped me
>> >> >
>> >> > Thanks
>> >> >
>> >> >
>> >> > Arthur B Olsen
>> >> > Føroya Tele
>> >> > +298 243392
>> >> > +298 303392
>> >> > _______________________________________________
>> >> > Pacemaker mailing list: <mailto:Pacemaker at oss.clusterlabs.org>
>> >>Pacemaker at oss.clusterlabs.org<mailto:Pacemaker at oss.clusterlabs.org>
>> >> > <http://oss.clusterlabs.org/mailman/listinfo/pacemaker>
>> >>http://oss.clusterlabs.org/mailman/listinfo/pacemaker
>> >> >
>> >> > Project Home: <http://www.clusterlabs.org/>
>>http://www.clusterlabs.org
>> >> > Getting started:
>> >><http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf>
>> >>http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
>> >> > Bugs:
>>
>>>><http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacema
>>>>ke
>> >>r>
>>
>>>>http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemak
>>>>er
>> >>
>> >> --
>> >> Carlos G Mendioroz <tron at huapi.ba.ar<mailto:tron at huapi.ba.ar>> LW7
>> >>EQI Argentina
>> >>
>> >> _______________________________________________
>> >> Pacemaker mailing list: <mailto:Pacemaker at oss.clusterlabs.org>
>> >>Pacemaker at oss.clusterlabs.org<mailto:Pacemaker at oss.clusterlabs.org>
>> >>
>>
>>>><http://oss.clusterlabs.org/mailman/listinfo/pacemaker>http://oss.clust
>>>>er
>> >>labs.org/mailman/listinfo/pacemaker
>> >>
>> >> Project Home: <http://www.clusterlabs.org/>
>>http://www.clusterlabs.org
>> >> Getting started:
>> >><http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf>
>> >>http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
>> >> Bugs:
>>
>>>><http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacema
>>>>ke
>> >>r>
>>
>>>>http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemak
>>>>er
>> >>
>> >>
>>**********************************************************************
>> >> This email and any files transmitted with it are confidential and
>> >> intended solely for the use of the individual or entity to whom they
>> >> are addressed. If you have received this email in error please notify
>> >> the system manager.
>> >>
>> >> This footnote also confirms that this email message has been virus
>> >> scanned and although no viruses were detected by the system, St
>> >>Vincents &
>> >> Mater Health Sydney accepts no liability for any consequential damage
>> >> resulting from email containing any computer viruses.
>> >>
>> >> Please consider the environment before printing this.
>> >>
>> >>
>>**********************************************************************
>> >>
>> >> _______________________________________________
>> >> Pacemaker mailing list: <mailto:Pacemaker at oss.clusterlabs.org>
>> >>Pacemaker at oss.clusterlabs.org<mailto:Pacemaker at oss.clusterlabs.org>
>> >> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
>> >>
>> >> Project Home: <http://www.clusterlabs.org> http://www.clusterlabs.org
>> >> Getting started:
>> >><http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf>
>> >>http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
>> >> Bugs:
>>
>>>><http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacema
>>>>ke
>> >>r>
>>
>>>>http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemak
>>>>er
>> >
>> >> _______________________________________________
>> >> Pacemaker mailing list: Pacemaker at 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://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemak
>>>>er
>> >
>> >
>> >_______________________________________________
>> >Pacemaker mailing list: Pacemaker at 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://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemake
>>>r
>>
>>
>> _______________________________________________
>> Pacemaker mailing list: Pacemaker at 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://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker
>
>_______________________________________________
>Pacemaker mailing list: Pacemaker at 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://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker
More information about the Pacemaker
mailing list