Navigation

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

    Sync changes from Slave to Master

    HA/CARP/VIPs
    3
    5
    108
    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 Derelict 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
        • Derelict
          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.

          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.

            Derelict 1 Reply Last reply Reply Quote 0
            • Derelict
              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.

              1 Reply Last reply Reply Quote 0
              • First post
                Last post

              Products

              • Platform Overview
              • TNSR
              • pfSense
              • Appliances

              Services

              • Training
              • Professional Services

              Support

              • Subscription Plans
              • Contact Support
              • Product Lifecycle
              • Documentation

              News

              • Media Coverage
              • Press
              • Events

              Resources

              • Blog
              • FAQ
              • Find a Partner
              • Resource Library
              • Security Information

              Company

              • About Us
              • Careers
              • Partners
              • Contact Us
              • Legal
              Our Mission

              We provide leading-edge network security at a fair price - regardless of organizational size or network sophistication. We believe that an open-source security model offers disruptive pricing along with the agility required to quickly address emerging threats.

              Subscribe to our Newsletter

              Product information, software announcements, and special offers. See our newsletter archive to sign up for future newsletters and to read past announcements.

              © 2021 Rubicon Communications, LLC | Privacy Policy