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

    Trim

    Scheduled Pinned Locked Moved Hardware
    ssdtrimdefragmentlevelingzfs
    6 Posts 2 Posters 825 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
      last edited by JonathanLee

      Does anyone know how to run trim on a SG-2100MAX?

      Screenshot 2023-12-09 at 12.43.47 PM.png

      I ran zfs scrub and it shows 46% fragmented I want to trim it for the first time

      Make sure to upvote

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

        Like:

        [23.09.1-RELEASE][admin@2100-3.stevew.lan]/root: zpool status
          pool: pfSense
         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
        	pfSense     ONLINE       0     0     0
        	  ada0s3a   ONLINE       0     0     0
        
        errors: No known data errors
        [23.09.1-RELEASE][admin@2100-3.stevew.lan]/root: zpool trim pfSense
        [23.09.1-RELEASE][admin@2100-3.stevew.lan]/root: zpool status
          pool: pfSense
         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
        	pfSense     ONLINE       0     0     0
        	  ada0s3a   ONLINE       0     0     0  (trimming)
        
        errors: No known data errors
        
        1 Reply Last reply Reply Quote 1
        • stephenw10S
          stephenw10 Netgate Administrator
          last edited by

          But you probably don't need to because:

          [23.09.1-RELEASE][admin@2100-3.stevew.lan]/root: zpool get autotrim
          NAME     PROPERTY  VALUE     SOURCE
          pfSense  autotrim  on        local
          
          1 Reply Last reply Reply Quote 2
          • JonathanLeeJ
            JonathanLee
            last edited by

            What do you think about this github?

            https://github.com/clara-j/pfsense_zfs_check

            It has a bash program to auto run zfs scrub on every pool

            Make sure to upvote

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

              I wouldn't expect to need to scrub at every boot. Though I probably reboot more often than most!

              You can also see if trim is required using:

              [23.09.1-RELEASE][admin@2100-3.stevew.lan]/root: zpool status -t
                pool: pfSense
               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
              	pfSense     ONLINE       0     0     0
              	  ada0s3a   ONLINE       0     0     0  (100% trimmed, completed at Mon Dec 11 19:41:30 2023)
              
              errors: No known data errors
              
              JonathanLeeJ 1 Reply Last reply Reply Quote 1
              • JonathanLeeJ
                JonathanLee @stephenw10
                last edited by

                @stephenw10 I have the cron job for it set to scrub once a month.

                Make sure to upvote

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