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

    Should "GUI auto update" be folllowed by a "Dublicate bootup slice"?

    Scheduled Pinned Locked Moved Problems Installing or Upgrading pfSense Software
    6 Posts 3 Posters 1.2k 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.
    • T
      Tillebeck
      last edited by

      I have read in this forum that the embedded versions runs with two partitions and that one will be boot partition. The other is a spare. The two partitions share the config file.

      Upgrade using the GUI AUTO update will update the spare partion and then set that as boot partition. After the upgrade the box will reboote and now be on the previous spare that now is the current boot partion and latest version too. The old boot partion is unchanged and one can manuelly revert back to that partion if the newly upgraded spare partions for some reason is no good as boot partion.

      Ok. So far I get it. But what's next?

      • If everything is OK should I then just do nothing?

      • Somehow repeat the upgrade for the current spare?

      • Dublicate the current boot to the spare

      • Dublicate the current boot to the spare AND change boot slice back to 1 (is 1 better?)

      • Something completely different?

      BR. Anders

      1 Reply Last reply Reply Quote 0
      • stephenw10S
        stephenw10 Netgate Administrator
        last edited by

        The slices have no priority, 1 is not better than 2 in any way.

        No you probably don't want to duplicate the slice. If your new upgrade turns out to be problematic for some reason you need to keep the previous version so you can revert to it if necessary.
        The only time you might want to duplicate the slice is if you've had to boot the backup because the current has been corrupted somehow.

        Others may have a different opinion.

        Steve

        1 Reply Last reply Reply Quote 0
        • T
          Tillebeck
          last edited by

          OK, thanks.

          I was in doubt because when visiting:
          Diagnostics -> NanoBSD -> View upgrade log

          then first line would read:
          "NanoBSD Firmware upgrade in progress…"

          but that must just be log info written at the time the system was beeing updated.

          Thanks again to clarify the procedure.

          1 Reply Last reply Reply Quote 0
          • P
            phil.davis
            last edited by

            After running a new official release for "some time" (as judged by you), and finding that it works well (or at least better than the previous version), I would duplicate the slice, switch to it and reboot (so I know the duplicated slice works). Then if "something odd" happens to the currently booted slice, I can always switch slices (from GUI, or manually) and reboot using the other slice.
            But as stephenw10 says, there will be varied opinions about what is best system management practice.

            As the Greek philosopher Isosceles used to say, "There are 3 sides to every triangle."
            If I helped you, then help someone else - buy someone a gift from the INF catalog http://secure.inf.org/gifts/usd/

            1 Reply Last reply Reply Quote 0
            • stephenw10S
              stephenw10 Netgate Administrator
              last edited by

              @phil.davis:

              switch to it and reboot (so I know the duplicated slice works).

              That is a good call. You don't want to find out your backup slice is corrupt only when you boot to it in a crisis!
              I've yet to experience a corrupt slice though so perhaps my habits may change if/when that happens.  ;)

              Steve

              1 Reply Last reply Reply Quote 0
              • T
                Tillebeck
                last edited by

                Thanks for input. +1 for dublicating after a "burn in" period.

                Other argument to do so
                If booting the other slice means booting an old version, then it just might need the old config (from backup) to be restored at the same time. And if the old slice cannot boot without the old config then one will end up with only one functional slice.

                conclusion:
                dublicating slice so there is two identical slices that can use the same config file seems to be the preferred solution.

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