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
    283 Posts 35 Posters 41.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.
    • fireodoF
      fireodo @w0w
      last edited by fireodo

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

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

      But I have (go to extreme 1800), and the writes are significantly reduced but also the risk is higher to get trouble when a sudden powerloss happends ...

      This risk is still lower than that for UFS with the same sudden power loss, and way lower than the risk of ending up with a dead eMMC

      That is correct.
      I begun in 2021 to investigate the problem after a (at the time there was no eMMC problematic or no one was avare of it) Kingston SSD was suddenly get killed in my machine:
      https://forum.netgate.com/topic/165758/average-writes-to-disk/62?_=1743795093996

      Kettop Mi4300YL CPU: i5-4300Y @ 1.60GHz RAM: 8GB Ethernet Ports: 4
      SSD: SanDisk pSSD-S2 16GB (ZFS) WiFi: WLE200NX
      pfsense 2.7.2 CE
      Packages: Apcupsd Cron Iftop Iperf LCDproc Nmap pfBlockerNG RRD_Summary Shellcmd Snort Speedtest System_Patches.

      1 Reply Last reply Reply Quote 1
      • A
        andrew_cb @tinfoilmatt
        last edited by

        @tinfoilmatt We use Zabbix, along with the script and template created by rbicelli.
        I have my own fork of the script and template that I can post later.

        Zabbix Agent and Proxy packages are available in pfSense (including Zabbix 7.0 in 24.11!).

        You will need to set up a Zabbix server, which is pretty easy to do.

        vfs.dev.write is the agent function for getting disk write activity.

        1 Reply Last reply Reply Quote 2
        • fireodoF
          fireodo @andrew_cb
          last edited by fireodo

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

          I am interested to see how my data compares with a larger sample size.

          Here they come:

          2021 - 2025
          GBW/Day - 19,45 initial and default settings (timeout=5)
          GBW/Day - 1,79 vfs.zfs.txg.timeout=120
          GBW/Day - 0,78 vfs.zfs.txg.timeout=240
          GBW/Day - 0,72 vfs.zfs.txg.timeout=360
          GBW/Day - 0,59 vfs.zfs.txg.timeout=600
          GBW/Day - 0,42 vfs.zfs.txg.timeout=900
          GBW/Day - 0,36 vfs.zfs.txg.timeout=1200
          GBW/Day - 0,28 vfs.zfs.txg.timeout=1800
          

          (I have no "/s" values - this are median per day values)
          (GBW - GigaByteWritten)

          Edit 23.04.2025: Today I had a Power failure that exhausted the UPS Battery. The timeout was set at 2400. The pfsense has shudown as set in the apcupsd and after Power has come back the pfsense came up without any issues.

          Kettop Mi4300YL CPU: i5-4300Y @ 1.60GHz RAM: 8GB Ethernet Ports: 4
          SSD: SanDisk pSSD-S2 16GB (ZFS) WiFi: WLE200NX
          pfsense 2.7.2 CE
          Packages: Apcupsd Cron Iftop Iperf LCDproc Nmap pfBlockerNG RRD_Summary Shellcmd Snort Speedtest System_Patches.

          A tinfoilmattT 2 Replies Last reply Reply Quote 2
          • JonathanLeeJ
            JonathanLee
            last edited by

            Has this been be added as a redmine so it can be merged ? This fix should be used to mitigate the high risk of failure.

            Make sure to upvote

            1 Reply Last reply Reply Quote 0
            • bmeeksB bmeeks referenced this topic on
            • A
              andrew_cb @fireodo
              last edited by

              @fireodo Awesome, thanks for sharing!

              Your GBW/Day at the default timeout of 5 is similar to what I am seeing. Most devices are doing about 23GBW/Day (nearly 1GB per hour).

              1 Reply Last reply Reply Quote 1
              • A
                andrew_cb
                last edited by

                Introduction

                While further researching ZFS settings, I found this enlightening 2016 FreeBSD article Tuning ZFS. The introduction states:

                The most important tuning you can perform for a database is the dataset block size—through the recordsize property. The ZFS recordsize for any file that might be overwritten needs to match the block size used by the application.
                Tuning the block size also avoids write amplification. Write amplification happens when changing a small amount of data requires writing a large amount of data. Suppose you must change 8 KB in the middle of a 128 KB block. ZFS must read the 128 KB, modify 8 KB somewhere in it, calculate a new checksum, and write the new 128 KB block. ZFS is a copy-on-write filesystem, so it would wind up writing a whole new 128 KB block just to change that 8 KB. You don’t want that.
                Now multiply this by the number of writes your database makes. Write amplification eviscerates performance.
                It can also affect the life of SSDs and other flash-based storage that can handle a limited volume of writes over their lifetimes
                ...
                ZFS metadata can also affect databases. When a database is rapidly changing, writing out two or three copies of the metadata for each change can take up a significant number of the available IOPS of the backing storage. Normally, the quantity of metadata is relatively small compared to the default 128 KB record size. Databases work better with small record sizes, though. Keeping three copies of the metadata can cause as much disk activity, or more, than writing actual data to the pool.
                Newer versions of OpenZFS also contain a redundant_metadata property, which defaults to all.

                (emphasis added)

                Interpretation

                My understanding of this is that even if only a few entries are added to a log file, ZFS will write an entire 128 KB block to disk. At the default interval of 5 seconds, there are likely dozens of 128 KB blocks that need to be written, even though each block might only contain a few KB of new data. For example, if a log file is written every 1 second, then in the span of 5 seconds there could be 640 KB (5 x 128 KB blocks) of data to write, just for that single log file.

                When the interval is increased, the pending writes can be more efficiently coalesced into fewer, fuller 128 KB blocks, which results in less data needing to be written overall.

                Block Size

                The block size can be checked with the command :

                zfs get recordsize
                

                Which produces an output similar to the following:

                NAME                                                      PROPERTY    VALUE    SOURCE
                pfSense                                                   recordsize  128K     default
                pfSense/ROOT                                              recordsize  128K     default
                pfSense/ROOT/auto-default-20221229181755                  recordsize  128K     default
                pfSense/ROOT/auto-default-20221229181755/cf               recordsize  128K     default
                pfSense/ROOT/auto-default-20221229181755/var_cache_pkg    recordsize  128K     default
                pfSense/ROOT/auto-default-20221229181755/var_db_pkg       recordsize  128K     default
                pfSense/ROOT/auto-default-20230729144653                  recordsize  128K     default
                pfSense/ROOT/auto-default-20230729144653/cf               recordsize  128K     default
                pfSense/ROOT/auto-default-20230729144653/var_cache_pkg    recordsize  128K     default
                pfSense/ROOT/auto-default-20230729144653/var_db_pkg       recordsize  128K     default
                pfSense/ROOT/auto-default-20230729145845                  recordsize  128K     default
                pfSense/ROOT/auto-default-20230729145845/cf               recordsize  128K     default
                pfSense/ROOT/auto-default-20230729145845/var_cache_pkg    recordsize  128K     default
                pfSense/ROOT/auto-default-20230729145845/var_db_pkg       recordsize  128K     default
                pfSense/ROOT/auto-default-20240531032905                  recordsize  128K     default
                pfSense/ROOT/auto-default-20240531032905/cf               recordsize  128K     default
                pfSense/ROOT/auto-default-20240531032905/var_cache_pkg    recordsize  128K     default
                pfSense/ROOT/auto-default-20240531032905/var_db_pkg       recordsize  128K     default
                pfSense/ROOT/default                                      recordsize  128K     default
                pfSense/ROOT/default@2022-12-29-18:17:55-0                recordsize  -        -
                pfSense/ROOT/default@2023-07-29-14:46:53-0                recordsize  -        -
                pfSense/ROOT/default@2023-07-29-14:58:45-0                recordsize  -        -
                pfSense/ROOT/default@2024-05-31-03:29:05-0                recordsize  -        -
                pfSense/ROOT/default@2024-05-31-03:36:02-0                recordsize  -        -
                pfSense/ROOT/default/cf                                   recordsize  128K     default
                pfSense/ROOT/default/cf@2022-12-29-18:17:55-0             recordsize  -        -
                pfSense/ROOT/default/cf@2023-07-29-14:46:53-0             recordsize  -        -
                pfSense/ROOT/default/cf@2023-07-29-14:58:45-0             recordsize  -        -
                pfSense/ROOT/default/cf@2024-05-31-03:29:05-0             recordsize  -        -
                pfSense/ROOT/default/cf@2024-05-31-03:36:02-0             recordsize  -        -
                pfSense/ROOT/default/var_cache_pkg                        recordsize  128K     default
                pfSense/ROOT/default/var_cache_pkg@2022-12-29-18:17:55-0  recordsize  -        -
                pfSense/ROOT/default/var_cache_pkg@2023-07-29-14:46:53-0  recordsize  -        -
                pfSense/ROOT/default/var_cache_pkg@2023-07-29-14:58:45-0  recordsize  -        -
                pfSense/ROOT/default/var_cache_pkg@2024-05-31-03:29:05-0  recordsize  -        -
                pfSense/ROOT/default/var_cache_pkg@2024-05-31-03:36:02-0  recordsize  -        -
                pfSense/ROOT/default/var_db_pkg                           recordsize  128K     default
                pfSense/ROOT/default/var_db_pkg@2022-12-29-18:17:55-0     recordsize  -        -
                pfSense/ROOT/default/var_db_pkg@2023-07-29-14:46:53-0     recordsize  -        -
                pfSense/ROOT/default/var_db_pkg@2023-07-29-14:58:45-0     recordsize  -        -
                pfSense/ROOT/default/var_db_pkg@2024-05-31-03:29:05-0     recordsize  -        -
                pfSense/ROOT/default/var_db_pkg@2024-05-31-03:36:02-0     recordsize  -        -
                pfSense/ROOT/default_20240531033558                       recordsize  128K     default
                pfSense/ROOT/default_20240531033558/cf                    recordsize  128K     default
                pfSense/ROOT/default_20240531033558/var_cache_pkg         recordsize  128K     default
                pfSense/ROOT/default_20240531033558/var_db_pkg            recordsize  128K     default
                pfSense/cf                                                recordsize  128K     default
                pfSense/home                                              recordsize  128K     default
                pfSense/reservation                                       recordsize  128K     default
                pfSense/tmp                                               recordsize  128K     default
                pfSense/var                                               recordsize  128K     default
                pfSense/var/cache                                         recordsize  128K     default
                pfSense/var/db                                            recordsize  128K     default
                pfSense/var/log                                           recordsize  128K     default
                pfSense/var/tmp                                           recordsize  128K     default
                

                As you can see, the recordsize of all mount points is 128 KB.

                Redundant Metadata

                The redundant_metadata setting can be checked with

                zfs get redundant_metadata
                
                NAME                                                      PROPERTY            VALUE      SOURCE
                pfSense                                                   redundant_metadata  all        default
                pfSense/ROOT                                              redundant_metadata  all        default
                pfSense/ROOT/auto-default-20221229181755                  redundant_metadata  all        default
                pfSense/ROOT/auto-default-20221229181755/cf               redundant_metadata  all        default
                pfSense/ROOT/auto-default-20221229181755/var_cache_pkg    redundant_metadata  all        default
                pfSense/ROOT/auto-default-20221229181755/var_db_pkg       redundant_metadata  all        default
                pfSense/ROOT/auto-default-20230729144653                  redundant_metadata  all        default
                pfSense/ROOT/auto-default-20230729144653/cf               redundant_metadata  all        default
                pfSense/ROOT/auto-default-20230729144653/var_cache_pkg    redundant_metadata  all        default
                pfSense/ROOT/auto-default-20230729144653/var_db_pkg       redundant_metadata  all        default
                pfSense/ROOT/auto-default-20230729145845                  redundant_metadata  all        default
                pfSense/ROOT/auto-default-20230729145845/cf               redundant_metadata  all        default
                pfSense/ROOT/auto-default-20230729145845/var_cache_pkg    redundant_metadata  all        default
                pfSense/ROOT/auto-default-20230729145845/var_db_pkg       redundant_metadata  all        default
                pfSense/ROOT/auto-default-20240531032905                  redundant_metadata  all        default
                pfSense/ROOT/auto-default-20240531032905/cf               redundant_metadata  all        default
                pfSense/ROOT/auto-default-20240531032905/var_cache_pkg    redundant_metadata  all        default
                pfSense/ROOT/auto-default-20240531032905/var_db_pkg       redundant_metadata  all        default
                pfSense/ROOT/default                                      redundant_metadata  all        default
                pfSense/ROOT/default@2022-12-29-18:17:55-0                redundant_metadata  -          -
                pfSense/ROOT/default@2023-07-29-14:46:53-0                redundant_metadata  -          -
                pfSense/ROOT/default@2023-07-29-14:58:45-0                redundant_metadata  -          -
                pfSense/ROOT/default@2024-05-31-03:29:05-0                redundant_metadata  -          -
                pfSense/ROOT/default@2024-05-31-03:36:02-0                redundant_metadata  -          -
                pfSense/ROOT/default/cf                                   redundant_metadata  all        default
                pfSense/ROOT/default/cf@2022-12-29-18:17:55-0             redundant_metadata  -          -
                pfSense/ROOT/default/cf@2023-07-29-14:46:53-0             redundant_metadata  -          -
                pfSense/ROOT/default/cf@2023-07-29-14:58:45-0             redundant_metadata  -          -
                pfSense/ROOT/default/cf@2024-05-31-03:29:05-0             redundant_metadata  -          -
                pfSense/ROOT/default/cf@2024-05-31-03:36:02-0             redundant_metadata  -          -
                pfSense/ROOT/default/var_cache_pkg                        redundant_metadata  all        default
                pfSense/ROOT/default/var_cache_pkg@2022-12-29-18:17:55-0  redundant_metadata  -          -
                pfSense/ROOT/default/var_cache_pkg@2023-07-29-14:46:53-0  redundant_metadata  -          -
                pfSense/ROOT/default/var_cache_pkg@2023-07-29-14:58:45-0  redundant_metadata  -          -
                pfSense/ROOT/default/var_cache_pkg@2024-05-31-03:29:05-0  redundant_metadata  -          -
                pfSense/ROOT/default/var_cache_pkg@2024-05-31-03:36:02-0  redundant_metadata  -          -
                pfSense/ROOT/default/var_db_pkg                           redundant_metadata  all        default
                pfSense/ROOT/default/var_db_pkg@2022-12-29-18:17:55-0     redundant_metadata  -          -
                pfSense/ROOT/default/var_db_pkg@2023-07-29-14:46:53-0     redundant_metadata  -          -
                pfSense/ROOT/default/var_db_pkg@2023-07-29-14:58:45-0     redundant_metadata  -          -
                pfSense/ROOT/default/var_db_pkg@2024-05-31-03:29:05-0     redundant_metadata  -          -
                pfSense/ROOT/default/var_db_pkg@2024-05-31-03:36:02-0     redundant_metadata  -          -
                pfSense/ROOT/default_20240531033558                       redundant_metadata  all        default
                pfSense/ROOT/default_20240531033558/cf                    redundant_metadata  all        default
                pfSense/ROOT/default_20240531033558/var_cache_pkg         redundant_metadata  all        default
                pfSense/ROOT/default_20240531033558/var_db_pkg            redundant_metadata  all        default
                pfSense/cf                                                redundant_metadata  all        default
                pfSense/home                                              redundant_metadata  all        default
                pfSense/reservation                                       redundant_metadata  all        default
                pfSense/tmp                                               redundant_metadata  all        default
                pfSense/var                                               redundant_metadata  all        default
                pfSense/var/cache                                         redundant_metadata  all        default
                pfSense/var/db                                            redundant_metadata  all        default
                pfSense/var/log                                           redundant_metadata  all        default
                pfSense/var/tmp                                           redundant_metadata  all        default
                

                Conclusion

                It did not make sense to me why ZFS would have so much data to flush every 5 seconds when the actual amount of changed data is low.

                The 128 KB block size and redundant_metadata setting are the missing links as to why the write activity is so much higher with ZFS.

                Further Testing

                The effects of changing the recordsize to values smaller than 128 KB and changing redundant_metadata to "most" instead of "all" needs to be tested.

                S C 2 Replies Last reply Reply Quote 0
                • A
                  andrew_cb
                  last edited by andrew_cb

                  It looks like the ZFS block size can be changed with the command

                   sudo zfs set recordsize=[size] [dataset name]
                  

                  However, this will not change the block size of existing files.
                  In theory, this should help with log files since a new file is created at rotation.

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

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

                    For example, if a log file is written every 1 second, then in the span of 5 seconds there could be 640 KB (5 x 128 KB blocks) of data to write, just for that single log file.

                    Maybe, but it could also be one block if all updates fit into the one block. (there is also compression)
                    (Edit: 5 updates to one log file, or to 5 log files)

                    Note the amount of metadata changes with recordsize (there are more blocks per file), as do things like write speed.

                    It stands to reason though most of the writing on pfSense is log files, or periodic file updates like pfBlocker feeds.

                    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 1
                    • keyserK keyser referenced this topic
                    • A
                      andrew_cb
                      last edited by andrew_cb

                      I was able to do some testing of different zfs_txg_timeout values. I am using Zabbix to call a PHP script every 60 seconds and store the value in an item. Attached to the item is a problem trigger that fires whenever the value changes. The data is visualized using Grafana, with an annotation query that overlays the "problems" (each time the value changes) as vertical red lines. There is a slight delay before Zabbix detects the change, so the red lines do not always align exactly with changes on the graph.

                      The testing was performed on 3 active firewalls performing basic functions, so they are representative of real-world performance in our environment and likely many others. Notice how the graphs for all 3 firewalls are nearly identical, reinforcing that the underlying OS drives this behavior.

                      Changing from 5s to 120s results in a 90% reduction in write activity. The change numbers shown on the graph are a bit low because some data from the previous 10s value is included from before changing to 5s at the start of the test period. Interestingly, values of 45 and 90 seem to produce more variation in the write rate compared to other values.

                      79bfadce-86d1-4e74-9e90-2774ede2ad22-image.png

                      Looking at just the change from 5s to 10s, the average write rate has been reduced by 35%.

                      77934358-0328-4742-a85d-9156f76d22dc-image.png

                      Changing from 10s to 15s gives a further 30% average reduction in write rate.

                      1b6f51ed-ddbe-4175-b3b2-e74f841e0515-image.png

                      There are diminishing returns from values above 30.
                      The gain from 15s to 120s is 32%, specifically, 15s to 30s is 16%, and from 30s to 120s is an additional 16%.

                      Calculating for a 16GB storage device with a TBW of 48 gives us the following:

                      timeout (s)	kb/s	change		lifespan (days)		lifespan (years)
                      5		309			656			1.8
                      10		175	-43%		1159			3.2
                      15		129	-58%		1572			4.3
                      20		104	-66%		1950			5.3
                      30		81	-74%		2503			6.9
                      45		66	-79%		3072			8.4
                      60		59	-81%		3437			9.4
                      90		39	-87%		5199			14.2
                      120		31	-90%		6541			17.9
                      
                      

                      Based on this data, changing the default value of zfs_txg_timeout to 10 or 15 will double the lifespan of devices with eMMC storage without causing too much data loss in the event of an unclean shutdown.

                      This change, combined with improved eMMC monitoring, would nearly eliminate unexpected eMMC failures due to wearout.

                      cmcdonaldC 1 Reply Last reply Reply Quote 6
                      • tinfoilmattT
                        tinfoilmatt
                        last edited by tinfoilmatt

                        Leaving this here for reference: https://openzfs.github.io/openzfs-docs/Performance%20and%20Tuning/Module%20Parameters.html#zfs-txg-timeout

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

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

                          Based on this data, changing the default value of zfs_txg_timeout to 10 or 15 will double the lifespan of devices with eMMC storage without causing too much data loss in the event of an unclean shutdown.

                          This is a great write-up. Thanks

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

                          1 Reply Last reply Reply Quote 2
                          • P Patch referenced this topic
                          • tinfoilmattT
                            tinfoilmatt @fireodo
                            last edited by

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

                            Edit 23.04.2025: Today I had a Power failure that exhausted the UPS Battery. The timeout was set at 2400. The pfsense has shudown as set in the apcupsd and after Power has come back the pfsense came up without any issues.

                            Such a high timout (40 minutes) doesn't make you start to worry about filesystem resiliance/consistency?

                            I found some interesting remarks on the vfs.zfs.txg.timeout parameter in Calomel's FreeBSD Tuning and Optimization guide (CTRL+f'ing for it).

                            fireodoF 1 Reply Last reply Reply Quote 1
                            • fireodoF
                              fireodo @tinfoilmatt
                              last edited by fireodo

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

                              high timout (40 minutes) doesn't make you start to worry about filesystem resiliance/consistency?

                              I'm experimenting ... I dont know what happends if the Power will suddenly dissapear without clean shutdown ...

                              Kettop Mi4300YL CPU: i5-4300Y @ 1.60GHz RAM: 8GB Ethernet Ports: 4
                              SSD: SanDisk pSSD-S2 16GB (ZFS) WiFi: WLE200NX
                              pfsense 2.7.2 CE
                              Packages: Apcupsd Cron Iftop Iperf LCDproc Nmap pfBlockerNG RRD_Summary Shellcmd Snort Speedtest System_Patches.

                              1 Reply Last reply Reply Quote 0
                              • JonathanLeeJ
                                JonathanLee
                                last edited by

                                Is this considered a maintenance/revision item with respects to software development or a regression? I can't understand the amount of debugging by way of brute force that must have taken place with this. YOU ARE AMAZING !!! Thank you for sharing how you fixed this.

                                Make sure to upvote

                                1 Reply Last reply Reply Quote 0
                                • A
                                  andrew_cb
                                  last edited by

                                  We had a 6100 die on Sunday. It was installed in May 2023, which means it lasted 1.9 years, so my calculation of 1.8 years was pretty close! I had recently set zfs.txg.timeout to 60 seconds, but it was clearly too little, to late. I have now set all high-wear devices to 3600s and am hoping they will survive a bit longer until we can upgrade or replace them.

                                  Getting B+M key NVMe drives has been a major challenge - the KingSpec NE 2242 is pretty much the only option and it's hard to get in Canada. Combined with the fact that many devices are at remote sites, upgrading all devices to SSDs is taking much longer than desired.

                                  When I look at storage wear by model, nearly all of the 110% devices are 2-3 year old 4100 and 6100. The 6-7 year old 3100 and 7100 are mostly at 50% or less. I suspect that the 3100 being limited to UFS only and the 7100 having 32GB of eMMC and being on ZFS for less than 3 years explain why they are outlasting the 4100 and 6100.

                                  For some good news, we were able to revive a non-booting 4100 by desoldering the eMMC chip using a heatgun. The eMMC had failed and I had got it running from a USB flash drive, but after a few reboots it stopped showing anything on the console and the orange light was pulsing instead of solid. Once the eMMC chip was removed, it boots to the NVMe drive and works great.

                                  @marcosm is working on a patch to reduce write rates while ensuring configuration changes are immediately committed to disk.

                                  w0wW 1 Reply Last reply Reply Quote 2
                                  • w0wW
                                    w0w @andrew_cb
                                    last edited by w0w

                                    @andrew_cb
                                    There are some dumb adapters from 2242 to 2230. Looks like 2230 nvme is a common thing, you can buy it almost everywhere.
                                    Of course, there's no certainty that it will work, but if I had enough devices and no better options available, I would give this approach a try.

                                    A 1 Reply Last reply Reply Quote 1
                                    • arriA
                                      arri
                                      last edited by

                                      I've had no issues with the old Western Digital SN520 NVMe drives in my 4100's. The key to finding the older key B+M key in an NON sata interface (which seems more common) is that SN520 line. Here's my verbatim search which does pretty well at locating them without limiting it to the length or capacity:
                                      "sn520" "nvme" "m.2" "x2"

                                      I usually just go for the full length 80mm ones by adding "2280" to the search so I don't have to use any of those adapters which always seem so flimsy.

                                      A 1 Reply Last reply Reply Quote 2
                                      • C
                                        chrcoluk @andrew_cb
                                        last edited by chrcoluk

                                        @andrew_cb recordsize is an upper limit, ashift is the lower limit (should be 4k on modern storage devices, which is a value of 12, set on pool creation time and is viewable on the pool variables).

                                        The record will be from one ashift allocation up to record size in multiples of ashift. The bigger the difference between ashift and recordsize, the higher potential for compression gains, as compression can only work on multiples of ashift inside the recordsize.

                                        So if e.g. a write is 7KB, then it will be a 8KB write not 128KB.

                                        The one change should just be boost zfs txg timeout to something like 60-120 seconds as a default.

                                        pfSense CE 2.7.2

                                        A 1 Reply Last reply Reply Quote 1
                                        • A
                                          andrew_cb @w0w
                                          last edited by

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

                                          @andrew_cb
                                          There are some dumb adapters from 2242 to 2230. Looks like 2230 nvme is a common thing, you can buy it almost everywhere.
                                          Of course, there's no certainty that it will work, but if I had enough devices and no better options available, I would give this approach a try.

                                          I have seen those adapters, but I was hoping to avoid adding yet another component and point of failure to the "fix." However, we may have to, as it would make it much easier to source compatible drives.

                                          1 Reply Last reply Reply Quote 0
                                          • A
                                            andrew_cb @arri
                                            last edited by

                                            @arri From what I can tell, the WD SN520 was released in 2018 and is no longer in production. I cannot find any that will ship to Canada. It seems like NVMe drives in B+M key format never really caught on so there are few options available.

                                            We just received 10 of the KingSpec drives so that will allow us to begin replacements on all our 110% wear devices.

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