[ClusterLabs] Antw: Re: restarting resources

Ulrich Windl Ulrich.Windl at rz.uni-regensburg.de
Fri Nov 6 12:55:04 CET 2015


>>> zulucloud <zulucloud at mailbox.org> schrieb am 06.11.2015 um 12:48 in Nachricht
<563C9374.5000202 at mailbox.org>:

> 
> On 11/02/2015 05:59 PM, - - wrote:
>> Hi,
>>     I need to be able to restart a resource (e.g apache) whenever a
>> configuration
>> file is updated. I have been using the 'crm resource restart ' command
>> to to it,
>> which does restart the resource BUT also restarts my other resources also.
>> Is this normal behaviour? Is there a way to just/force restart only the
>> resource whose config file is changed.
>>
>> I have the following resources configured in a group (ew)
> 
> Hi,
> 
> i had the same problem with Apache and a virtual IP together in a group. 
> I wasn't able to restart / reload just Apache. The only way was to bring 
> down the whole group including IP, and then start the group again.

I wonder: If the IP comes before Apache, and apache is the last in the group, you should be able to restart apache leaving the IP unaffected. Maybe you should provide more details...

> 
>> Is there a way to just start Website8086 or just reload it, without
>> affecting
>> the other resources.
> 
> I removed the group configuration and instead just inserted a colocation 
> rule to make sure that Apache and IP are running on the same node. This 
> works fine for me, now it's possible to crm resource restart res_apache 
> without affecting the IP, and it works fast and smoothly.
> 
> best regards..
> 
> _______________________________________________
> Users mailing list: Users at clusterlabs.org 
> http://clusterlabs.org/mailman/listinfo/users 
> 
> Project Home: http://www.clusterlabs.org 
> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf 
> Bugs: http://bugs.clusterlabs.org 







More information about the Users mailing list