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

    Another Netgate with storage failure, 6 in total so far

    Scheduled Pinned Locked Moved Official Netgate® Hardware
    300 Posts 37 Posters 52.3k 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.
    • JonathanLeeJ
      JonathanLee @fireodo
      last edited by JonathanLee

      @fireodo Thank you for the reply,

      Shell Output - zfs get -r sync pfSense
      NAME                                                                                PROPERTY  VALUE     SOURCE
      pfSense                                                                             sync      standard  default
      pfSense/ROOT                                                                        sync      standard  default
      pfSense/ROOT/23_05_01_clone                                                         sync      standard  default
      pfSense/ROOT/23_05_01_clone/cf                                                      sync      standard  default
      pfSense/ROOT/23_05_01_clone/var_db_pkg                                              sync      standard  default
      pfSense/ROOT/23_05_01_ipv4                                                          sync      standard  default
      pfSense/ROOT/23_05_01_ipv4@2024-01-12-11:46:05-0                                    sync      -         -
      pfSense/ROOT/23_05_01_ipv4@2024-02-29-08:52:57-0                                    sync      -         -
      pfSense/ROOT/23_05_01_ipv4@2024-04-01-12:32:27-0                                    sync      -         -
      pfSense/ROOT/23_05_01_ipv4@2024-06-27-11:52:26-0                                    sync      -         -
      pfSense/ROOT/23_05_01_ipv4@2024-07-03-09:09:28-0                                    sync      -         -
      pfSense/ROOT/23_05_01_ipv4@2025-01-20-10:11:49-0                                    sync      -         -
      pfSense/ROOT/23_05_01_ipv4/cf                                                       sync      standard  default
      pfSense/ROOT/23_05_01_ipv4/cf@2025-01-20-10:11:49-0                                 sync      -         -
      pfSense/ROOT/23_05_01_ipv4/var_cache_pkg                                            sync      standard  default
      pfSense/ROOT/23_05_01_ipv4/var_cache_pkg@2025-01-20-10:11:49-0                      sync      -         -
      pfSense/ROOT/23_05_01_ipv4/var_db_pkg                                               sync      standard  default
      pfSense/ROOT/23_05_01_ipv4/var_db_pkg@2025-01-20-10:11:49-0                         sync      -         -
      pfSense/ROOT/23_05_01_ipv4_Backup                                                   sync      standard  default
      pfSense/ROOT/23_05_01_ipv4_Backup/cf                                                sync      standard  default
      pfSense/ROOT/23_05_01_ipv4_Backup/var_cache_pkg                                     sync      standard  default
      pfSense/ROOT/23_05_01_ipv4_Backup/var_db_pkg                                        sync      standard  default
      pfSense/ROOT/23_05_01_ipv6                                                          sync      standard  default
      pfSense/ROOT/23_05_01_ipv6@2025-04-30-11:18:04-0                                    sync      -         -
      pfSense/ROOT/23_05_01_ipv6/cf                                                       sync      standard  default
      pfSense/ROOT/23_05_01_ipv6/cf@2025-04-30-11:18:04-0                                 sync      -         -
      pfSense/ROOT/23_05_01_ipv6/var_db_pkg                                               sync      standard  default
      pfSense/ROOT/23_05_01_ipv6/var_db_pkg@2025-04-30-11:18:04-0                         sync      -         -
      pfSense/ROOT/23_05_01_ipv6_non_website_test_proxy                                   sync      standard  default
      pfSense/ROOT/23_05_01_ipv6_non_website_test_proxy/cf                                sync      standard  default
      pfSense/ROOT/23_05_01_ipv6_non_website_test_proxy/cf@2024-01-12-11:46:05-0          sync      -         -
      pfSense/ROOT/23_05_01_ipv6_non_website_test_proxy/cf@2024-02-29-08:52:57-0          sync      -         -
      pfSense/ROOT/23_05_01_ipv6_non_website_test_proxy/cf@2024-04-01-12:32:27-0          sync      -         -
      pfSense/ROOT/23_05_01_ipv6_non_website_test_proxy/cf@2024-06-27-11:52:26-0          sync      -         -
      pfSense/ROOT/23_05_01_ipv6_non_website_test_proxy/cf@2024-07-25-15:54:45-0          sync      -         -
      pfSense/ROOT/23_05_01_ipv6_non_website_test_proxy/cf@2025-04-30-12:10:00-0          sync      -         -
      pfSense/ROOT/23_05_01_ipv6_non_website_test_proxy/var_db_pkg                        sync      standard  default
      pfSense/ROOT/23_05_01_ipv6_non_website_test_proxy/var_db_pkg@2024-01-12-11:46:05-0  sync      -         -
      pfSense/ROOT/23_05_01_ipv6_non_website_test_proxy/var_db_pkg@2024-02-29-08:52:57-0  sync      -         -
      pfSense/ROOT/23_05_01_ipv6_non_website_test_proxy/var_db_pkg@2024-04-01-12:32:27-0  sync      -         -
      pfSense/ROOT/23_05_01_ipv6_non_website_test_proxy/var_db_pkg@2024-06-27-11:52:26-0  sync      -         -
      pfSense/ROOT/23_05_01_ipv6_non_website_test_proxy/var_db_pkg@2024-07-25-15:54:45-0  sync      -         -
      pfSense/ROOT/23_05_01_ipv6_non_website_test_proxy/var_db_pkg@2025-04-30-12:10:00-0  sync      -         -
      pfSense/ROOT/23_05_01_ipv6_website_test_proxy_clone                                 sync      standard  default
      pfSense/ROOT/23_05_01_ipv6_website_test_proxy_clone@2024-07-25-15:54:45-0           sync      -         -
      pfSense/ROOT/23_05_01_ipv6_website_test_proxy_clone@2025-04-30-12:10:00-0           sync      -         -
      pfSense/ROOT/23_05_01_ipv6_website_test_proxy_clone/cf                              sync      standard  default
      pfSense/ROOT/23_05_01_ipv6_website_test_proxy_clone/var_db_pkg                      sync      standard  default
      pfSense/ROOT/23_09_01_ipv4_20240703094025                                           sync      standard  default
      pfSense/ROOT/23_09_01_ipv4_20240703094025/cf                                        sync      standard  default
      pfSense/ROOT/23_09_01_ipv4_20240703094025/var_cache_pkg                             sync      standard  default
      pfSense/ROOT/23_09_01_ipv4_20240703094025/var_db_pkg                                sync      standard  default
      pfSense/ROOT/24_03_01_ipv4                                                          sync      standard  default
      pfSense/ROOT/24_03_01_ipv4/cf                                                       sync      standard  default
      pfSense/ROOT/24_03_01_ipv4/var_cache_pkg                                            sync      standard  default
      pfSense/ROOT/24_03_01_ipv4/var_db_pkg                                               sync      standard  default
      pfSense/ROOT/24_03_01_ipv6_20250113135850                                           sync      standard  default
      pfSense/ROOT/24_03_01_ipv6_20250113135850@2024-07-03-09:40:36-0                     sync      -         -
      pfSense/ROOT/24_03_01_ipv6_20250113135850@2024-07-23-10:05:22-0                     sync      -         -
      pfSense/ROOT/24_03_01_ipv6_20250113135850@2025-01-13-13:59:02-0                     sync      -         -
      pfSense/ROOT/24_03_01_ipv6_20250113135850/cf                                        sync      standard  default
      pfSense/ROOT/24_03_01_ipv6_20250113135850/cf@2024-07-03-09:09:28-0                  sync      -         -
      pfSense/ROOT/24_03_01_ipv6_20250113135850/cf@2024-07-03-09:40:36-0                  sync      -         -
      pfSense/ROOT/24_03_01_ipv6_20250113135850/cf@2024-07-23-10:05:22-0                  sync      -         -
      pfSense/ROOT/24_03_01_ipv6_20250113135850/cf@2025-01-13-13:59:02-0                  sync      -         -
      pfSense/ROOT/24_03_01_ipv6_20250113135850/var_cache_pkg                             sync      standard  default
      pfSense/ROOT/24_03_01_ipv6_20250113135850/var_cache_pkg@2024-07-03-09:09:28-0       sync      -         -
      pfSense/ROOT/24_03_01_ipv6_20250113135850/var_cache_pkg@2024-07-03-09:40:36-0       sync      -         -
      pfSense/ROOT/24_03_01_ipv6_20250113135850/var_cache_pkg@2024-07-23-10:05:22-0       sync      -         -
      pfSense/ROOT/24_03_01_ipv6_20250113135850/var_cache_pkg@2025-01-13-13:59:02-0       sync      -         -
      pfSense/ROOT/24_03_01_ipv6_20250113135850/var_db_pkg                                sync      standard  default
      pfSense/ROOT/24_03_01_ipv6_20250113135850/var_db_pkg@2024-07-03-09:09:28-0          sync      -         -
      pfSense/ROOT/24_03_01_ipv6_20250113135850/var_db_pkg@2024-07-03-09:40:36-0          sync      -         -
      pfSense/ROOT/24_03_01_ipv6_20250113135850/var_db_pkg@2024-07-23-10:05:22-0          sync      -         -
      pfSense/ROOT/24_03_01_ipv6_20250113135850/var_db_pkg@2025-01-13-13:59:02-0          sync      -         -
      pfSense/ROOT/auto-default-20240112115753                                            sync      standard  default
      pfSense/ROOT/auto-default-20240112115753@2024-01-12-11:57:53-0                      sync      -         -
      pfSense/ROOT/auto-default-20240112115753/cf                                         sync      standard  default
      pfSense/ROOT/auto-default-20240112115753/cf@2024-01-12-11:57:53-0                   sync      -         -
      pfSense/ROOT/auto-default-20240112115753/var_cache_pkg                              sync      standard  default
      pfSense/ROOT/auto-default-20240112115753/var_cache_pkg@2024-01-12-11:57:53-0        sync      -         -
      pfSense/ROOT/auto-default-20240112115753/var_db_pkg                                 sync      standard  default
      pfSense/ROOT/auto-default-20240112115753/var_db_pkg@2024-01-12-11:57:53-0           sync      -         -
      pfSense/ROOT/quick-20240401123227                                                   sync      standard  default
      pfSense/ROOT/quick-20240401123227/cf                                                sync      standard  default
      pfSense/ROOT/quick-20240401123227/var_db_pkg                                        sync      standard  default
      pfSense/home                                                                        sync      standard  default
      pfSense/reservation                                                                 sync      standard  default
      pfSense/tmp                                                                         sync      disabled  local
      pfSense/var                                                                         sync      disabled  local
      pfSense/var/cache                                                                   sync      disabled  inherited from pfSense/var
      pfSense/var/db                                                                      sync      disabled  inherited from pfSense/var
      pfSense/var/log                                                                     sync      disabled  inherited from pfSense/var
      pfSense/var/tmp                                                                     sync      disabled  inherited from pfSense/var
      

      logs and temp are now excluded from sync

      and I also set

      vfs.zfs.txg.timeout=120
      

      I also use a secondary nvme drive just for package logs I have a mount point and created linker files that direct everything that is write intensive over to it. That helps alot also, and or you can use a usb thumb drive for package logs if anyone is really worried.

      691b97ae-7284-4f19-af85-e2f8ac1c14a8-image.png

      https://forum.netgate.com/topic/195843/unofficial-guide-have-package-logs-record-to-a-secondary-ssd-drive-snort-syslog-squid-and-or-squid-cache-system/

      Make sure to upvote

      1 Reply Last reply Reply Quote 2
      • cmcdonaldC
        cmcdonald Netgate Developer @fireodo
        last edited by

        @fireodo said in Another Netgate with storage failure, 6 in total so far:

        Not here - once set it remains that way even after reboot.

        Yes. This is correct. ZFS properties persist across reboots (unless they are changed by something during startup, say in pfSense-rc, though I don't think we do any of that)

        Need help fast? https://www.netgate.com/support

        1 Reply Last reply Reply Quote 1
        • w0wW w0w referenced this topic
        • D
          dugeem
          last edited by

          One additional issue to be aware of is that up until pfSense+ 24.03 the Netgate SG-1100 (& SG-2100) installation images resulted in eMMC having non aligned flash partitions. This can result in file system activity causing sub optimal block writing (due to sectors crossing erase boundaries) resulting in increased flash wear.

          pfSense Redmine reference -> https://redmine.pfsense.org/issues/15126

          Easy to check - from shell use the command:

          gpart show mmcsd0
          

          and check numbers in first column for either freebsd / freebsd-zfs partitions are divisible by 8 (or a higher power of 2).

          Generally if your SG-1100 (also SG-2100) was originally commissioned prior to pfSense+ 24.03 then you should consider reinstalling and restoring config.

          Relevant Netgate SG-1100 documentation -> https://docs.netgate.com/pfsense/en/latest/solutions/sg-1100/reinstall-pfsense.html

          1 Reply Last reply Reply Quote 3
          • w0wW
            w0w
            last edited by

            Netgate has finally implemented the fix.
            https://redmine.pfsense.org/issues/16210#change-76840
            Thank you, @marcosm, @fireodo, @andrew_cb

            P 1 Reply Last reply Reply Quote 5
            • P
              Patch @w0w
              last edited by Patch

              Looks like it changes the vfs.zfs.txg.timeout default from
              FreeBSD vfs.zfs.txg.timeout = 5
              pfsense vfs.zfs.txg.timeout = 30

              So not as high as 120 suggested but consistent with andrew_cb recommendation

              1 Reply Last reply Reply Quote 1
              • M
                mvikman
                last edited by mvikman

                That patch code also has this: "zfs set sync=always pfSense/ROOT/default/cf"
                Looking at my own system, I don't have that path, as I have only manually named Boot Environments, I have paths like "pfSense/ROOT/24.11_stable/cf ", so that part would fail.

                Should the command be run manually on the current default/active BE path, "pfSense/ROOT/24.11_stable/cf " in my case?

                pfSense Plus 24.11-RELEASE (amd64)
                Dell Optiplex 7040 SFF
                Core i5-6500, 8GB RAM, 2x 240GB SSD (ZFS Mirror)
                HPE 561T (X540-AT2), 2-port 10Gb RJ45
                HPE 562SFP+ (X710-DA2), 2-port 10Gb SFP+

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

                  Yup. Fix incoming.

                  JonathanLeeJ M 2 Replies Last reply Reply Quote 3
                  • JonathanLeeJ
                    JonathanLee @stephenw10
                    last edited by

                    @stephenw10 should the timeout be 120 or 30?

                    Make sure to upvote

                    1 Reply Last reply Reply Quote 1
                    • JonathanLeeJ
                      JonathanLee @andrew_cb
                      last edited by

                      @andrew_cb

                      zfs set sync=always pfSense/ROOT/default/cf

                      does not work on my 2100 I have a SSD should I run a different command for this?

                      Make sure to upvote

                      1 Reply Last reply Reply Quote 0
                      • M
                        marcosm Netgate
                        last edited by

                        A fix will be provided once it's ready on the following redmine:
                        https://redmine.pfsense.org/issues/16212

                        1 Reply Last reply Reply Quote 1
                        • M
                          marcosm Netgate
                          last edited by marcosm

                          A patch is now available for testing on the redmine.

                          1 Reply Last reply Reply Quote 3
                          • M
                            Mission-Ghost @stephenw10
                            last edited by

                            @stephenw10 is there a way to stop python pfblocker logging? I’ve tried to shut off all logging in pfblocker but the python module keeps on logging.

                            I’d prefer to keep using the python module for its benefits but the logging I don’t use often consumes my ssd lifetime at all other times without benefit.

                            S 1 Reply Last reply Reply Quote 0
                            • S
                              SteveITS Galactic Empire @Mission-Ghost
                              last edited by

                              @Mission-Ghost What logging are you seeing?

                              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!

                              M 1 Reply Last reply Reply Quote 0
                              • M
                                Mission-Ghost @SteveITS
                                last edited by

                                @SteveITS dnsbl.log just keeps going and going:

                                d3cf0c7e-cd41-460d-8eec-4290a36600f8-image.png

                                This is useful on rare occasions when I need to find a site to white-list, but I'd like to turn it on only on such occasions and off the rest of the time.

                                S 1 Reply Last reply Reply Quote 1
                                • S
                                  SteveITS Galactic Empire @Mission-Ghost
                                  last edited by SteveITS

                                  @Mission-Ghost That's set for all lists here:
                                  968e538d-da94-4239-817b-192c8225874c-image.png

                                  or else on each list, e.g. on Firewall/pfBlockerNG/IP/IPv4.

                                  With the logging off we have:

                                  File successfully loaded: Total Lines: 0
                                  Log/File Path: /var/log/pfblockerng/dnsbl.log
                                  

                                  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!

                                  M 1 Reply Last reply Reply Quote 1
                                  • M
                                    Mission-Ghost @SteveITS
                                    last edited by Mission-Ghost

                                    @SteveITS Thank you!

                                    I found and set it on the master configuration:

                                    cefdeb75-2539-44f0-b66b-9420b67b975a-image.png

                                    The master setting seems to be working so far.

                                    Why does "Null Block (no logging)" log?

                                    Why does "No Global mode" not log?

                                    Is it just, me, or do the bullet points on the master DNSBL page fail to explain this clearly?

                                    By my way of reading this, "No Global Mode" tells me that the individual settings on each Group will prevail. It doesn't tell me that it is overriding the individual settings on each Group, and sure doesn't tell me that logging is disabled, unlike "no logging" which says it's disabled but it isn't.

                                    I feel like I'm taking crazy pills!

                                    S 1 Reply Last reply Reply Quote 0
                                    • S
                                      SteveITS Galactic Empire @Mission-Ghost
                                      last edited by

                                      @Mission-Ghost No Global should mean it doesn’t override the individual settings. I just set it when creating each list so if the global settings aren’t working I profess ignorance. :)

                                      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!

                                      M 1 Reply Last reply Reply Quote 0
                                      • M
                                        Mission-Ghost @SteveITS
                                        last edited by Mission-Ghost

                                        @SteveITS said in Another Netgate with storage failure, 6 in total so far:

                                        @Mission-Ghost No Global should mean it doesn’t override the individual settings. I just set it when creating each list so if the global settings aren’t working I profess ignorance. :)

                                        Well, I guess it should mean it, but in context to some of of us who didn't develop the software, it isn't clear, particularly when adjacent options include "no logging" which apparently could not mean 'no' logging.

                                        Seems like getting an English major (>gasp!<) intern to help redefine the labels to be more meaningful to customers would be a low cost, easy improvement to the usability of the product.

                                        In any case, thank you for your generous help clarifying this. My problem is solved.

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

                                          @andrew_cb said in Another Netgate with storage failure, 6 in total so far:

                                          25% of the blocks are not available for wear leveling

                                          In the same vein, this is a bit of an edge case, but I've strung a few bugs together.

                                          1. there is a bug in Plus 24.03 and 24.11 where /conf/backup is not limited to 30 files (not auto pruned). Fixed in 25.03. https://redmine.pfsense.org/issues/15994, or the release notes. Workaround is to open the /diag_confbak.php config history page in the web GUI, and wait until it either loads or times out.

                                          2. there's a longstanding bug in pfBlocker where if DNSBL is not enabled it will still update the config file at every cron interval, e.g. hourly.
                                            https://forum.netgate.com/topic/174231/pfblockerng-fills-pfsense-config-history
                                            https://redmine.pfsense.org/issues/14409

                                          3. there's another longstanding bug in pfBlocker for HA setups where changes are not synced to the secondary router unless one manually runs a Force Reload (not a force update). Thus if you have, say, disabled a list, at every cron/update it will remove it from the backup and then when the same cron also runs on the secondary pfBlocker will add it again, generating two historical config files on the secondary router.
                                            https://redmine.pfsense.org/issues/15994
                                            https://forum.netgate.com/topic/179060/pfblockerng-sync-not-working/

                                          With these, one poster in my thread https://forum.netgate.com/topic/197685/config-history-not-pruning-on-ha-pair-has-3400-files/ has 20000 config files on disk. At our file sizes of ~300k that is in the 6 GB range, though it should be compressed on disk, if using ZFS.

                                          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!

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