# About replica rebuilding

**URL:** <https://forums.suse.com/t/about-replica-rebuilding/10802>\
**Category:** SUSE Storage\
**Created:** [June 18, 2018, 1:30am UTC](https://forums.suse.com/t/about-replica-rebuilding/10802 "2018-06-18T01:30:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ludehp](https://avatars.discourse-cdn.com/v4/letter/l/76d3ee/32.png) [@ludehp](https://forums.suse.com/u/ludehp)\
**Post date:** [June 18, 2018, 1:30am UTC](https://forums.suse.com/t/about-replica-rebuilding/10802/1 "2018-06-18T01:30:26Z")

</div>

How controller detects replica’s status? If the controller who owns the volume failed at the same time with one replica, who will chooses the new replica and triger rebuilding?  
Thanks.

---

<div class="post-metadata">

**Author:** ![yasker](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/yasker/32/137_2.png) [@yasker](https://forums.suse.com/u/yasker)\
**Post date:** [June 18, 2018, 5:15pm UTC](https://forums.suse.com/t/about-replica-rebuilding/10802/2 "2018-06-18T17:15:52Z")

</div>

@ludehp

I assume you’re talking about Longhorn Engine controller, not the Kubernetes controller?

If the controller failed, the volume will be detached, we won’t able to rebuild the replica.

Controller is on the same node of the consumer of the volume, we don’t expect it to fail unless it’s a host down, in which case nothing on that node would survive anyway.

If Kubernetes detects the failure of the node and decide to restart the pod on another host, the controller should be started on that node as well. We’ve implemented this with CSI but haven’t release the feature yet.

---

<div class="post-metadata">

**Author:** ![ludehp](https://avatars.discourse-cdn.com/v4/letter/l/76d3ee/32.png) [@ludehp](https://forums.suse.com/u/ludehp)\
**Post date:** [June 19, 2018, 1:21am UTC](https://forums.suse.com/t/about-replica-rebuilding/10802/3 "2018-06-19T01:21:32Z")

</div>

> If Kubernetes detects the failure of the node and decide to restart the pod on another host, the controller should be started on that node as well. We’ve implemented this with CSI but haven’t release the feature yet.

who decides to restart pod on another host? auto by kubernetes?
