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

    ZFS - a possible source of some 2.1 whackiness?

    Scheduled Pinned Locked Moved Problems Installing or Upgrading pfSense Software
    11 Posts 9 Posters 4.6k 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.
    • E
      Ecnerwal
      last edited by

      These show up at boot, post 2.1 upgrade. Unstable behavior is certainly the description as compared to 2.0.3, which I gather did not use ZFS (at least nothing shows up in the logs on a search.)

      I guess we are using ZFS as of 2.1, and it's not liking the tuning:

      Sep 21 11:14:12	kernel: ZFS WARNING: Recommended minimum kmem_size is 512MB; expect unstable behavior.
      Sep 21 11:14:12	kernel: ZFS filesystem version 5
      Sep 21 11:14:12	kernel: ZFS storage pool version 28
      Sep 27 10:52:20	kernel: ZFS WARNING: Recommended minimum kmem_size is 512MB; expect unstable behavior.
      Sep 27 10:52:20	kernel: ZFS filesystem version 5
      Sep 27 10:52:20	kernel: ZFS storage pool version 28
      Oct 1 16:32:32	kernel: ZFS WARNING: Recommended minimum kmem_size is 512MB; expect unstable behavior.
      Oct 1 16:32:32	kernel: ZFS filesystem version 5
      Oct 1 16:32:32	kernel: ZFS storage pool version 28
      

      Mind you, the items in question are not on the system tunables page, so I'm not all that sure how best to resolve them if they were not set correctly in the upgrade process. Sure, theres a + to add to GUI tunables, but syntax and appropriate values are non-obvious (to me anyway - I don't spend much time that far into the guts of the system, normally.)

      Sep 21 11:14:12	kernel: ZFS WARNING: Recommended minimum kmem_size is 512MB; expect unstable behavior.
      Sep 21 11:14:12	kernel: Consider tuning vm.kmem_size and vm.kmem_size_max
      Sep 27 10:52:20	kernel: ZFS WARNING: Recommended minimum kmem_size is 512MB; expect unstable behavior.
      Sep 27 10:52:20	kernel: Consider tuning vm.kmem_size and vm.kmem_size_max
      Oct 1 16:32:32	kernel: ZFS WARNING: Recommended minimum kmem_size is 512MB; expect unstable behavior.
      Oct 1 16:32:32	kernel: Consider tuning vm.kmem_size and vm.kmem_size_max
      

      OK, looking into the log without keyword search, evidently these are in /boot/loader.conf - still not obvious what to set them to.

      $ cat /boot/loader.conf.bak
      autoboot_delay="3"
      vm.kmem_size="435544320"
      vm.kmem_size_max="535544320"
      kern.ipc.nmbclusters="0"
      hw.usb.no_pf="1"
      

      changed to:

      $ cat /boot/loader.conf
      autoboot_delay="3"
      vm.kmem_size="512000000"
      vm.kmem_size_max="535544320"
      kern.ipc.nmbclusters="0"
      legal.intel_ipw.license_ack="1"
      hw.usb.no_pf="1"
      

      Still getting ZFS warning after the above modification (also found the legal.intel_ipw.licence_ack easter egg hiding in the log…that message, 4x over, at least went away.)

      pfSense on i5 3470/DQ77MK/16GB/500GB

      1 Reply Last reply Reply Quote 0
      • M
        maverick_slo
        last edited by

        ZFS is NOT used in 2.1
        This is just a message that should not be there AFAIK…

        Ahhh and link: http://forum.pfsense.org/index.php?topic=62156.0

        1 Reply Last reply Reply Quote 0
        • D
          daehnomel
          last edited by

          This is a major issue for me.  Just upgraded from 2.03 and REGRETTING IT!!!
          My first problem (related to this post) is that my router now boots intermittently,  it pauses or STOPS boot process while displaying the following (copied from above):
          Sep 27 10:52:20 kernel: ZFS filesystem version 5
          Sep 27 10:52:20 kernel: ZFS storage pool version 28

          These messages happen after it finds and loads the driver for the AVRIQ-USB virtual CD-ROM device (my avocent KVM over IP dongle.) Any help in stopping ZFS from trying to instanstiate a storage pool at a boot (which I DID NOT CONFIGURE) would be greatly appreciated.

          Thanks.

          1 Reply Last reply Reply Quote 0
          • D
            daehnomel
            last edited by

            BTW, just tested and the same issue happens when I boot wihtout the AVRIQ-USB dongle, so it's not the driver.  ARRGH!!!

            1 Reply Last reply Reply Quote 0
            • D
              djlax152
              last edited by

              @daehnomel:

              This is a major issue for me.  Just upgraded from 2.03 and REGRETTING IT!!!
              My first problem (related to this post) is that my router now boots intermittently,  it pauses or STOPS boot process while displaying the following (copied from above):
              Sep 27 10:52:20 kernel: ZFS filesystem version 5
              Sep 27 10:52:20 kernel: ZFS storage pool version 28

              These messages happen after it finds and loads the driver for the AVRIQ-USB virtual CD-ROM device (my avocent KVM over IP dongle.) Any help in stopping ZFS from trying to instanstiate a storage pool at a boot (which I DID NOT CONFIGURE) would be greatly appreciated.

              Thanks.

              Got the same exact problem here.  had to waste half a day off blowing out my pfsense and putting all the settings back… really sucks!

              1 Reply Last reply Reply Quote 0
              • C
                cmb
                last edited by

                ZFS isn't used at all, it's simply in the kernel if someone wants to do something with it.

                djlax152: what were you attempting, and what happened?

                1 Reply Last reply Reply Quote 0
                • N
                  NOYB
                  last edited by

                  Although ZFS is not used I also changed the loader.conf settings just to eliminate the warning message.

                  512000000 is not 512 MB

                  512 MB = 512 * 1024^2 = 536870912

                  #vm.kmem_size="435544320"
                  #vm.kmem_size_max="535544320"
                  vm.kmem_size="536870912"
                  vm.kmem_size_max="536870912"

                  1 Reply Last reply Reply Quote 0
                  • johnpozJ
                    johnpoz LAYER 8 Global Moderator
                    last edited by

                    so where exactly do you make this change.. I wouldn't mind removing that error on the boot..

                    An intelligent man is sometimes forced to be drunk to spend time with his fools
                    If you get confused: Listen to the Music Play
                    Please don't Chat/PM me for help, unless mod related
                    SG-4860 24.11 | Lab VMs 2.8, 24.11

                    1 Reply Last reply Reply Quote 0
                    • pttP
                      ptt Rebel Alliance
                      last edited by

                      /boot/loader.conf      ;)

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

                        You should put that in loader.conf.local no?

                        1 Reply Last reply Reply Quote 0
                        • C
                          cmb
                          last edited by

                          @stephenw10:

                          You should put that in loader.conf.local no?

                          Yes, always put user-defined things in .local so upgrades don't overwrite.

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