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

    Clean install of 21.02 on ZFS filesystem not booting

    Scheduled Pinned Locked Moved Problems Installing or Upgrading pfSense Software
    9 Posts 4 Posters 1.7k 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.
    • S
      svengru
      last edited by svengru

      Hi,

      has anybody successfully done a clean install of 21.02 using ZFS as the file system? ZFS root does not mount during the boot.

      I have no issue installing the prior version that way and no issue installing 21.02 using UFS on the exact same device.

      @johnpoz I saw in a different discussion that you tried this as well. Any luck?

      -Sven

      S 1 Reply Last reply Reply Quote 0
      • S
        svengru @svengru
        last edited by

        Looks like this issue: https://redmine.pfsense.org/issues/11483

        S 1 Reply Last reply Reply Quote 0
        • S
          svengru @svengru
          last edited by

          Found the fix.

          The installer does not add zfs_load="YES" to /boot/loader.conf

          Adding it manually after the installation will fix this issue.

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

            Yeah I did run into this.. I was working with Steve who created that redmine..

            I just did UFS, and was going to move to ZFS at later time. Your saying it just forget to set the Load - haha, that is pretty funny actually..

            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.7.2, 24.11

            S 1 Reply Last reply Reply Quote 0
            • S
              svengru @johnpoz
              last edited by

              Yeah. I debugged the issue for over 1h before I finally read the error message again...

              "Mounting from zfs:zroot/ROOT/default failed with error 2: unknown file system."

              "unknown file system" was the clue and it only took a few minutes to fix after I realized what was going on.

              johnpozJ L 2 Replies Last reply Reply Quote 1
              • johnpozJ
                johnpoz LAYER 8 Global Moderator @svengru
                last edited by

                Yeah I didn't really have time to even look at it.. As I kind of pulled the trigger on update at wrong time.. Figure what could it take a few minutes ;) before back up and running..

                Had my config all copied to the usb, figured hey it would pretty much reboot and be up ;)

                Then I ran into it not booting..Then started to get hey you doing anything with the internet yell from the wife.. So just had to do ufs, and was back up in a couple of minutes.

                So if I wanted to say move to zfs tmrw morning before wife gets up.. Where exactly in the install process do need to make the change? And where exactly?

                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.7.2, 24.11

                1 Reply Last reply Reply Quote 0
                • L
                  lnguyen @svengru
                  last edited by

                  @svengru I have been beating my head against the wall for the last few hours trying to clean install pfSense+ 21.02 on a XG-1537. Will give this a try.

                  If I may ask, are you selecting ZFS (UEFI)?

                  1 Reply Last reply Reply Quote 0
                  • S
                    svengru
                    last edited by svengru

                    I am running ZFS in UEFI.

                    To answer @johnpoz question:
                    Do a normal install using the USB stick and select ZFS. At the end of the process, it will ask if you want to make changes to the system installed. The fault answer is "NO". Select "YES" and you will get to the shell.

                    In the sell you can edit /boot/loader.conf using vi and add the line to it.
                    If vi is not a tool you like than the following should do the same:

                    echo 'zfs_load="YES"' >> /boot/loader.conf

                    SebMS 1 Reply Last reply Reply Quote 3
                    • SebMS
                      SebM @svengru
                      last edited by SebM

                      @svengru said in Clean install of 21.02 on ZFS filesystem not booting:

                      I am running ZFS in UEFI.

                      To answer @johnpoz question:
                      Do a normal install using the USB stick and select ZFS. At the end of the process, it will ask if you want to make changes to the system installed. The fault answer is "NO". Select "YES" and you will get to the shell.

                      In the sell you can edit /boot/default.conf using vi and add the line to it.
                      If vi is not a tool you like than the following should do the same:

                      echo 'zfs_load="YES"' >> /boot/loader.conf

                      I confirm that running this command in the shell at the end of the installation worked well for me, and enabled me to perform a clean install of 21.02-p1 with ZFS on my SG-5100.

                      echo 'zfs_load="YES"' >> /boot/loader.conf
                      
                      1 Reply Last reply Reply Quote 0
                      • First post
                        Last post
                      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.