Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. Hardware
  3. Gateway Backup

Gateway Backup

Scheduled Pinned Locked Moved Hardware
10 Posts 4 Posters 2.1k Views 4 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • CrankyCoderC Offline
    CrankyCoderC Offline
    CrankyCoder
    wrote on last edited by
    #1

    Let's say I have a raspberry pi running as my gateway, and it's running as mqtt client gateway.

    Lets also say i have a second pi configured the same way. Is there anything that would prevent me from, in the event of pi1 dying, just powering on pi2 and everything continuing to work?

    Home Automation Tinkerer
    www.CrankyCoder.net

    Controller: HomeAssistant in Kubernetes
    Gateway: MQTTClientGateway
    MySensors: 2.3

    mfalkviddM 1 Reply Last reply
    0
    • CrankyCoderC CrankyCoder

      Let's say I have a raspberry pi running as my gateway, and it's running as mqtt client gateway.

      Lets also say i have a second pi configured the same way. Is there anything that would prevent me from, in the event of pi1 dying, just powering on pi2 and everything continuing to work?

      mfalkviddM Offline
      mfalkviddM Offline
      mfalkvidd
      Mod
      wrote on last edited by
      #2

      @CrankyCoder if both rpis are in the same location, doing what you describe should work just fine. The gateway does not store any state except the routing table.

      1 Reply Last reply
      0
      • gohanG Offline
        gohanG Offline
        gohan
        Mod
        wrote on last edited by
        #3

        If you schedule a backup of the controller configuration and data, you restore those in the second rpi and you are good to go. Also swapping SD card should work just fine, given it didn't get corrupted when the first rpi died

        1 Reply Last reply
        0
        • CrankyCoderC Offline
          CrankyCoderC Offline
          CrankyCoder
          wrote on last edited by
          #4

          This is good news. I think I could create a failover scenario to have a backup gateway in the same fashion I did with failover openhab.

          Home Automation Tinkerer
          www.CrankyCoder.net

          Controller: HomeAssistant in Kubernetes
          Gateway: MQTTClientGateway
          MySensors: 2.3

          1 Reply Last reply
          0
          • J Offline
            J Offline
            Jan Gatzke
            wrote on last edited by
            #5

            This will work. You could even automate it with a heartbeat cluster. :D

            1 Reply Last reply
            0
            • CrankyCoderC Offline
              CrankyCoderC Offline
              CrankyCoder
              wrote on last edited by
              #6

              That's what I did with my openhab setup. This could help my "single point of failure" phobia lol

              Home Automation Tinkerer
              www.CrankyCoder.net

              Controller: HomeAssistant in Kubernetes
              Gateway: MQTTClientGateway
              MySensors: 2.3

              1 Reply Last reply
              0
              • gohanG Offline
                gohanG Offline
                gohan
                Mod
                wrote on last edited by
                #7

                Maybe you could write a guide on how you did it :)

                CrankyCoderC 1 Reply Last reply
                0
                • J Offline
                  J Offline
                  Jan Gatzke
                  wrote on last edited by
                  #8

                  especially the synchronisation of the database would be interesting.

                  CrankyCoderC 1 Reply Last reply
                  0
                  • gohanG gohan

                    Maybe you could write a guide on how you did it :)

                    CrankyCoderC Offline
                    CrankyCoderC Offline
                    CrankyCoder
                    wrote on last edited by
                    #9

                    @gohan how i did my openhab failover?
                    http://crankycoder.net/2015/11/13/home-automation-move-part-1/
                    http://crankycoder.net/2015/11/15/home-automation-move-part-2/
                    http://crankycoder.net/2016/01/24/openhab-crashing-with-z-wave-fix-it-fix-it-fix-it-fix-it/

                    Hope that helps :)

                    Will have to do another one if i do the multiple mysensors gateways :)

                    Home Automation Tinkerer
                    www.CrankyCoder.net

                    Controller: HomeAssistant in Kubernetes
                    Gateway: MQTTClientGateway
                    MySensors: 2.3

                    1 Reply Last reply
                    0
                    • J Jan Gatzke

                      especially the synchronisation of the database would be interesting.

                      CrankyCoderC Offline
                      CrankyCoderC Offline
                      CrankyCoder
                      wrote on last edited by
                      #10

                      @Jan-Gatzke I haven't messed with the pi gateway yet, but I am thinking maybe doing something like drbd (disk replication)

                      Home Automation Tinkerer
                      www.CrankyCoder.net

                      Controller: HomeAssistant in Kubernetes
                      Gateway: MQTTClientGateway
                      MySensors: 2.3

                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      17

                      Online

                      11.7k

                      Users

                      11.2k

                      Topics

                      113.1k

                      Posts


                      Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • MySensors
                      • OpenHardware.io
                      • Categories
                      • Recent
                      • Tags
                      • Popular