# New rancher-server for old nodes

**URL:** <https://forums.suse.com/t/new-rancher-server-for-old-nodes/3959>\
**Category:** Rancher 1.x\
**Created:** [September 9, 2016, 9:38pm UTC](https://forums.suse.com/t/new-rancher-server-for-old-nodes/3959 "2016-09-09T21:38:55Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![renaudManda](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/renaudmanda/32/2444_2.png) [@renaudManda](https://forums.suse.com/u/renaudManda)\
**Post date:** [September 9, 2016, 9:38pm UTC](https://forums.suse.com/t/new-rancher-server-for-old-nodes/3959/1 "2016-09-09T21:38:55Z")

</div>

Hello,

I’d like to start on a fresh rancher stack due to too much testing on my current environment. However I’ve one host (and their containers) that I can’t interrupt because the services on it are in production.

So my goal is to create a new rancher-server from scratch and I wanna know how to unlink my critical host from the current rancher-server and link it to the new one ?

Two important points:

- my old and new rancher will use custom address space (10.42/16 is already use 🙂
- the containers on my critical host have been create using the stack feature of rancher

Thanks for you feedback,  
Renaud

---

<div class="post-metadata">

**Author:** ![vincent](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/vincent/32/7156_2.png) [@vincent](https://forums.suse.com/u/vincent)\
**Post date:** [September 10, 2016, 3:34am UTC](https://forums.suse.com/t/new-rancher-server-for-old-nodes/3959/2 "2016-09-10T03:34:36Z")

</div>

You can destroy the agent container, `rm -rf /var/lib/rancher/state`, and register it to the new server. The containers will continue to run, but Stack/Service definitions are in the database so they will just show up as standalone containers. I would add that host first, as bad things™ will probably happen if an IP is duplicated on import.

But really if they’re that critical you should probably have a tested way to re-create them from scratch/backup… what happens if that host lights on fire right now?

---

<div class="post-metadata">

**Author:** ![renaudManda](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/renaudmanda/32/2444_2.png) [@renaudManda](https://forums.suse.com/u/renaudManda)\
**Post date:** [September 11, 2016, 9:49pm UTC](https://forums.suse.com/t/new-rancher-server-for-old-nodes/3959/3 "2016-09-11T21:49:14Z")

</div>

Hello Vincent,

Thanks for your feedback. In fact my host (where the containers live) don’t gonna move. Only rancher-server will change. I notice your approach and if I’m right the only think I’ll lost is the service/stack definition. I suppose there are no way to create a newstack (in the new rancher-server installation) and import the orphelin containers ?

Your second proposal to recreate container from schratch could be okay, all there containers use convoy (with devicemapper), so I’ll try this approach maybe.

Cheers,  
Renaud

---

<div class="post-metadata">

**Author:** ![Buishi](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/buishi/32/359_2.png) [@Buishi](https://forums.suse.com/u/Buishi)\
**Post date:** [May 26, 2017, 12:18am UTC](https://forums.suse.com/t/new-rancher-server-for-old-nodes/3959/4 "2017-05-26T00:18:38Z")

</div>

@renaudManda did you figure out the best way to rebuild the service/stack definitions? I’m trying to do this now, as I’m moving my rancher server.

---

<div class="post-metadata">

**Author:** ![renaudManda](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/renaudmanda/32/2444_2.png) [@renaudManda](https://forums.suse.com/u/renaudManda)\
**Post date:** [July 27, 2017, 6:17am UTC](https://forums.suse.com/t/new-rancher-server-for-old-nodes/3959/5 "2017-07-27T06:17:03Z")

</div>

I’ve rebuild the stack from scratch ☹ and reinject the old containers in the new ones.
