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

    What's the best approach to replace both disks of the ZFS mirror on which pfSense is installed

    Scheduled Pinned Locked Moved Hardware
    10 Posts 4 Posters 896 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.
    • W
      Wholelottapfsense
      last edited by

      As I mentioned here, I have pfSense installed on 2 Supermicro SATA DOM SSDs (SSD-DM032-SMCMVN1) set up as a zfs mirror.

      The SSDs are about 4 years old and their SMART status is showing as failed.

      I bought 2 new SSDs (same model, same size) and, as I see it, I have 2 options:

      1. replacing them all at once, doing a new install and putting back my backed up config
      2. replacing them one by one and resilver each time the new disk

      Which of these 2 options would be the best way to go forward?

      By the way, the zpool and gpart info is as follows:

      [2.7.2-RELEASE][admin@pfSense.ad.somedomain.com]/root: zpool status
        pool: zroot
       state: ONLINE
      status: Some supported and requested features are not enabled on the pool.
              The pool can still be used, but some features are unavailable.
      action: Enable all features using 'zpool upgrade'. Once this is done,
              the pool may no longer be accessible by software that does not support
              the features. See zpool-features(7) for details.
      config:
      
              NAME        STATE     READ WRITE CKSUM
              zroot       ONLINE       0     0     0
                mirror-0  ONLINE       0     0     0
                  ada0p3  ONLINE       0     0     0
                  ada1p3  ONLINE       0     0     0
      
      errors: No known data errors
      [2.7.2-RELEASE][admin@pfSense.ad.somedomain.com]/root: gpart show ada0
      =>      40  61865904  ada0  GPT  (30G)
              40      1024     1  freebsd-boot  (512K)
            1064       984        - free -  (492K)
            2048   4194304     2  freebsd-swap  (2.0G)
         4196352  57667584     3  freebsd-zfs  (27G)
        61863936      2008        - free -  (1.0M)
      
      [2.7.2-RELEASE][admin@pfSense.ad.somedomain.com]/root: gpart show ada1
      =>      40  61865904  ada1  GPT  (30G)
              40      1024     1  freebsd-boot  (512K)
            1064       984        - free -  (492K)
            2048   4194304     2  freebsd-swap  (2.0G)
         4196352  57667584     3  freebsd-zfs  (27G)
        61863936      2008        - free -  (1.0M)
      
      S 1 Reply Last reply Reply Quote 0
      • S
        SteveITS Galactic Empire @Wholelottapfsense
        last edited by

        @Wholelottapfsense reinstalling and restoring is going to take like 10-15 minutes, I would do that.

        Seems odd 4yo drives are failing though. Is your router doing a high amount of logging or other disk writes?
        (Ref https://www.netgate.com/supported-pfsense-plus-packages )

        Pre-2.7.2/23.09: Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
        When upgrading, allow 10-15 minutes to restart, or more depending on packages and device speed.
        Upvote ๐Ÿ‘ helpful posts!

        W 1 Reply Last reply Reply Quote 2
        • provelsP
          provels
          last edited by provels

          I just replaced the 2x3TB ZFS mirror in my FreeBSD NAS with 2x10TB drives.
          I did a resilver for both drives then expanded the array. Whereas mine took a couple days, yours will probably take minutes.

          Old > New
          New < New
          Expand

          (PS - DON"T upgrade the zpool features on pfSense. I did it once and toasted the install.)

          Peder

          MAIN - pfSense+ 24.11-RELEASE - Adlink MXE-5401, i7, 16 GB RAM, 64 GB SSD. 500 GB HDD for SyslogNG
          BACKUP - pfSense+ 23.01-RELEASE - Hyper-V Virtual Machine, Gen 1, 2 v-CPUs, 3 GB RAM, 8GB VHDX (Dynamic)

          1 Reply Last reply Reply Quote 0
          • W
            Wholelottapfsense @SteveITS
            last edited by

            @SteveITS Indeed, I also find it strange. I didn't change anything in the default logging settings.

            The packages I have installed are:

            • acme

            • avahi

            • freeradius3

            • haproxy

            • iperf

            • ntopng

            • openvpn-client-export

            • pfBlockerNG-devel

            S 1 Reply Last reply Reply Quote 0
            • S
              SteveITS Galactic Empire @Wholelottapfsense
              last edited by

              @Wholelottapfsense said in What's the best approach to replace both disks of the ZFS mirror on which pfSense is installed:

              ntopng

              https://www.netgate.com/supported-pfsense-plus-packages

              ๐Ÿ˜ฌ

              Pre-2.7.2/23.09: Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
              When upgrading, allow 10-15 minutes to restart, or more depending on packages and device speed.
              Upvote ๐Ÿ‘ helpful posts!

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

                Yup, ntopng can log a lot.

                And, yes, I would also just replace both drives and re-install.

                1 Reply Last reply Reply Quote 2
                • W
                  Wholelottapfsense @SteveITS
                  last edited by

                  @SteveITS @stephenw10 Thanks a lot for your advice. I will do a re-install and disable the ntopng package which I anyway didn't use much.

                  W 1 Reply Last reply Reply Quote 0
                  • W
                    Wholelottapfsense @Wholelottapfsense
                    last edited by Wholelottapfsense

                    I reinstalled pfSense and everything went well except that none of the packages are being reinstalled ๐Ÿ˜ง

                    I followed this Netgate tutorial, choosing the console option with a flash drive containing \config\config.xml

                    My settings were applied correctly and all the interfaces are correctly configured, but I have a bunch of messages (relating to pfBlockerNG) because none of the packages are installed.

                    I did not tick the option 'Do not backup package information.' when backing up my config. Besides, I checked the config.xml file with Notepad++ and the package related info is included.

                    What could have gone wrong?

                    [EDIT]: I now tried restoring the backed up config via the GUI and by the time I logged in after the reboot, all the packages were there ๐Ÿ™‚

                    S 1 Reply Last reply Reply Quote 0
                    • S
                      SteveITS Galactic Empire @Wholelottapfsense
                      last edited by

                      @Wholelottapfsense it should reinstall all the packages after booting. Check the logs?

                      You can also install them manually. Thereโ€™s an option I think on the backup page to reinstall all packages, that might work depending on what state itโ€™s in.

                      Pre-2.7.2/23.09: Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
                      When upgrading, allow 10-15 minutes to restart, or more depending on packages and device speed.
                      Upvote ๐Ÿ‘ helpful posts!

                      W 1 Reply Last reply Reply Quote 0
                      • W
                        Wholelottapfsense @SteveITS
                        last edited by

                        @SteveITS Restoring the backed up config via the GUI did the trick, all the packages are there now ๐Ÿ‘

                        Instead of uninstalling the ntopng package, I disabled it in the settings. So with that, I'm crossing my fingers that my SSDs will last longer this time :-o

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