# On 2-node Cluster: Resource restart when other node reboot

**URL:** <https://forums.suse.com/t/on-2-node-cluster-resource-restart-when-other-node-reboot/22777>\
**Category:** SLES High Availability Extension\
**Created:** [June 25, 2012, 5:41pm UTC](https://forums.suse.com/t/on-2-node-cluster-resource-restart-when-other-node-reboot/22777 "2012-06-25T17:41:12Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![filipo33](https://avatars.discourse-cdn.com/v4/letter/f/e8c25b/32.png) [@filipo33](https://forums.suse.com/u/filipo33)\
**Post date:** [June 25, 2012, 5:41pm UTC](https://forums.suse.com/t/on-2-node-cluster-resource-restart-when-other-node-reboot/22777/1 "2012-06-25T17:41:12Z")

</div>

Hello all,

Example of my problem:I build a 2-node cluster (web1 and web2), for a web server ( DRBD + Virtual IP + APACHE service )  
Here web1 is DC, active/master node and start all resources.

```
[QUOTE]Last updated: Mon Jun 25 16:25:13 2012

```

# Last change: Thu Jun 21 18:03:33 2012 by root via crm\_attribute on web1 Stack: openais Current DC: web1 - partition with quorum Version: 1.1.6-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 2 Nodes configured, 2 expected votes 5 Resources configured.

Online: [web2 web1]

fs (ocf:💓Filesystem): Started web1  
Resource Group: webname  
virtual-ip (ocf:💓IPaddr2): Started web1  
lampp (lsb:my\_service): Started web1  
Master/Slave Set: ms\_drbd [drbd]  
Masters: [web1]  
Slaves: [web2]  
[/QUOTE]

I have noticed, that when I stop web2 (node which is passive), all resources on web1 are OK.  
When I re-start the web2 server (or cluster openais service), all resources on web1 are restarted ( so no web access during 1sec)

This “ressource restart” is unnecessary …can I prevent it ? It’s not for 1sec, but it’s seems weird for me.

Thanks for future answers.  
Filipo

---

<div class="post-metadata">

**Author:** ![Jens-U](https://avatars.discourse-cdn.com/v4/letter/j/d78d45/32.png) [@Jens-U](https://forums.suse.com/u/Jens-U)\
**Post date:** [June 28, 2012, 12:11am UTC](https://forums.suse.com/t/on-2-node-cluster-resource-restart-when-other-node-reboot/22777/2 "2012-06-28T00:11:27Z")

</div>

Hi Filipo,

are the “restarts” probably caused by resource moves from web1 to web2, once web2 goes online?

Regards,  
Jens

---

<div class="post-metadata">

**Author:** ![filipo33](https://avatars.discourse-cdn.com/v4/letter/f/e8c25b/32.png) [@filipo33](https://forums.suse.com/u/filipo33)\
**Post date:** [June 28, 2012, 10:54am UTC](https://forums.suse.com/t/on-2-node-cluster-resource-restart-when-other-node-reboot/22777/3 "2012-06-28T10:54:23Z")

</div>

Hello,

No, all resources stays on web1 (preferred node).  
I can check with “crm\_mon”, before and after: All is on web1 → web2 never used.

I group my “virtual-ip” and my “service\_lampp”, and made web1 my favorite.

Thanks  
Filipo

---

<div class="post-metadata">

**Author:** ![filipo33](https://avatars.discourse-cdn.com/v4/letter/f/e8c25b/32.png) [@filipo33](https://forums.suse.com/u/filipo33)\
**Post date:** [July 5, 2012, 4:33pm UTC](https://forums.suse.com/t/on-2-node-cluster-resource-restart-when-other-node-reboot/22777/4 "2012-07-05T16:33:26Z")

</div>

[SOLVED]

It’s because i started my resources with “primitive foo lsb:bar” and not “primitive foo ocf:heartbeat:bar”.

Thanks  
Filipo

---

<div class="post-metadata">

**Author:** ![Jens-U](https://avatars.discourse-cdn.com/v4/letter/j/d78d45/32.png) [@Jens-U](https://forums.suse.com/u/Jens-U)\
**Post date:** [July 5, 2012, 4:44pm UTC](https://forums.suse.com/t/on-2-node-cluster-resource-restart-when-other-node-reboot/22777/5 "2012-07-05T16:44:08Z")

</div>

Hi Filipo,

thanks for the feedback - I’d never have guessed that cause!

Regards,  
Jens
