Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Sync changes from Slave to Master

    Scheduled Pinned Locked Moved HA/CARP/VIPs
    5 Posts 3 Posters 1.0k Views
    Loading More Posts
    • 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.
    • V
      Vikas Gupta
      last edited by

      Team,

      We are having a custom file in a similar format to config.xml to track any changes made in firewall .
      We have created this file on a temporary basis so as to compare the changes.
      So now, if a change has been made to slave node, we want to copy that same file to master node once the master will be up.
      What is the possible solution to copy this file from slave node to master node when master will be up as we will lose the access to slave as soon as master node will be up.

      V DerelictD 2 Replies Last reply Reply Quote 0
      • V
        viragomann @Vikas Gupta
        last edited by

        @vikas-gupta said in Sync changes from Slave to Master:

        as we will lose the access to slave as soon as master node will be up.

        Why?

        What you want to do seems to be dangerous. You should better use the XMLRPC-Sync for transferring settings between nodes.

        1 Reply Last reply Reply Quote 0
        • DerelictD
          Derelict LAYER 8 Netgate @Vikas Gupta
          last edited by

          @vikas-gupta Configurations are synced from primary to secondary. There is no safe way to sync the other way.

          If your primary is going to experience an extended outage, you probably just want to configure your secondary as the new primary and bring up the replacement node as a secondary.

          Setting a maintenance window and restoring the primary backup to the secondary is probably the most reliable way.

          Else keep a log of your changes and make them again on the primary before you bring it back online.

          Chattanooga, Tennessee, USA
          A comprehensive network diagram is worth 10,000 words and 15 conference calls.
          DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
          Do Not Chat For Help! NO_WAN_EGRESS(TM)

          V 1 Reply Last reply Reply Quote 0
          • V
            viragomann @Derelict
            last edited by

            @derelict said in Sync changes from Slave to Master:

            Configurations are synced from primary to secondary. There is no safe way to sync the other way.

            Why not? As far as a can remember, I've already done that in the past this way:

            Deactivated sync interface on secondary when booting up the master again.
            Disabled XMLRPC Sync on master by removing the sync IP.
            Reenabled the sync interface on the secondary and configured High Availability Sync.

            DerelictD 1 Reply Last reply Reply Quote 0
            • DerelictD
              Derelict LAYER 8 Netgate @viragomann
              last edited by Derelict

              @viragomann Good luck with that.

              It might work for some things but if you do something like create a new CARP VIP with an advskew of 100 (the default on the secondary) I would expect it will not sync to the primary correctly.

              Chattanooga, Tennessee, USA
              A comprehensive network diagram is worth 10,000 words and 15 conference calls.
              DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
              Do Not Chat For Help! NO_WAN_EGRESS(TM)

              1 Reply Last reply Reply Quote 0
              • First post
                Last post
              Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.