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

    Box dead after reboot, caused by UFS corruption ? ZFS vs UFS?

    Scheduled Pinned Locked Moved Problems Installing or Upgrading pfSense Software
    13 Posts 5 Posters 1.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.
    • H
      heper @MarekAndreansky
      last edited by

      @marekandreansky
      https://docs.netgate.com/pfsense/en/latest/troubleshooting/filesystem-check.html

      don't bother with zfs, get a small UPS instead

      M 2 Replies Last reply Reply Quote 1
      • M
        MarekAndreansky @heper
        last edited by

        @heper Thanks, did find that article but space was not working when I tried it.

        Using an apu box, and can get into the boot menu via F10, but then it loads Pfsense and starts looping, then restarts.

        Will retry space again, see if I need to press it sooner.

        And why not use ZFS? Any performance impact or other risks?

        And can the file system check help restore the box?

        A UPS would not help in my case, as user A did not have internet due to network going down on provider P, and colleague B told A to power down the box. When I got to A it was too late, box was already down and the network did not come up as the box was corrupted.

        And sadly can't lock the box away. And honestly, you can imagine how happy I was that they restarted the router when it was a provider issue...

        bingo600B 1 Reply Last reply Reply Quote 0
        • bingo600B
          bingo600 @MarekAndreansky
          last edited by bingo600

          @marekandreansky
          ZFS is more robust wrt. powerfailure.
          Change to ZFS is a good thing.

          Adding an UPS is a better choice , but then comes battery maintenance etc.

          If no UPS , ZFS is the best choice.
          In fact it is even if you have an UPS

          Edit:
          ZFS wont prevent corruption 100% , it's just better to survive it than UFS

          If you find my answer useful - Please give the post a šŸ‘ - "thumbs up"

          pfSense+ 23.05.1 (ZFS)

          QOTOM-Q355G4 Quad Lan.
          CPUĀ  : Core i5 5250U, Ram : 8GB Kingston DDR3LV 1600
          LANĀ  : 4 x Intel 211, DiskĀ  : 240G SAMSUNG MZ7L3240HCHQ SSD

          M 1 Reply Last reply Reply Quote 1
          • M
            MarekAndreansky @bingo600
            last edited by

            @bingo600 said in Box dead after reboot, caused by UFS corruption ? ZFS vs UFS?:

            @marekandreansky
            ZFS is more robust wrt. powerfailure.
            Change to ZFS is a good thing.

            Adding an UPS is a better choice , but then comes battery maintenance etc.

            If no UPS , ZFS is the best choice.
            In fact it is even if you have an UPS

            Thanks, why is ZFS a better choice? One point it gets is it can survive a power failure. Any other benefits? And are there drawbacks compared to UFS?

            bingo600B 1 Reply Last reply Reply Quote 0
            • bingo600B
              bingo600 @MarekAndreansky
              last edited by bingo600

              @marekandreansky
              ZFS was designed as an embeded filesystem with flash & corruption in mind. Look it up ...

              Edit: When you install ZFS , and it complains ....
              Remember you have to select minimum 1 disk for ZFS use.

              So it requires 2 more clicks than UFS , during install

              If you find my answer useful - Please give the post a šŸ‘ - "thumbs up"

              pfSense+ 23.05.1 (ZFS)

              QOTOM-Q355G4 Quad Lan.
              CPUĀ  : Core i5 5250U, Ram : 8GB Kingston DDR3LV 1600
              LANĀ  : 4 x Intel 211, DiskĀ  : 240G SAMSUNG MZ7L3240HCHQ SSD

              M 1 Reply Last reply Reply Quote 0
              • M
                MarekAndreansky @bingo600
                last edited by

                @bingo600 said in Box dead after reboot, caused by UFS corruption ? ZFS vs UFS?:

                @marekandreansky
                ZFS was designed as an embeded filesystem with flash & corruption in mind. Look it up ...

                Will do. Any idea why its not the default option for pfSense?

                bingo600B GertjanG 2 Replies Last reply Reply Quote 0
                • bingo600B
                  bingo600 @MarekAndreansky
                  last edited by

                  @marekandreansky said in Box dead after reboot, caused by UFS corruption ? ZFS vs UFS?:

                  @bingo600 said in Box dead after reboot, caused by UFS corruption ? ZFS vs UFS?:

                  @marekandreansky
                  ZFS was designed as an embeded filesystem with flash & corruption in mind. Look it up ...

                  Will do. Any idea why its not the default option for pfSense?

                  My guess ...

                  Noone dared to change the default

                  If you find my answer useful - Please give the post a šŸ‘ - "thumbs up"

                  pfSense+ 23.05.1 (ZFS)

                  QOTOM-Q355G4 Quad Lan.
                  CPUĀ  : Core i5 5250U, Ram : 8GB Kingston DDR3LV 1600
                  LANĀ  : 4 x Intel 211, DiskĀ  : 240G SAMSUNG MZ7L3240HCHQ SSD

                  bingo600B 1 Reply Last reply Reply Quote 0
                  • bingo600B
                    bingo600 @bingo600
                    last edited by

                    @MarekAndreansky
                    When you install ZFS , and it complains ....
                    Remember you have to select minimum 1 disk for ZFS use.

                    So it requires 2 more clicks than UFS , during install

                    If you find my answer useful - Please give the post a šŸ‘ - "thumbs up"

                    pfSense+ 23.05.1 (ZFS)

                    QOTOM-Q355G4 Quad Lan.
                    CPUĀ  : Core i5 5250U, Ram : 8GB Kingston DDR3LV 1600
                    LANĀ  : 4 x Intel 211, DiskĀ  : 240G SAMSUNG MZ7L3240HCHQ SSD

                    1 Reply Last reply Reply Quote 0
                    • M
                      MarekAndreansky @heper
                      last edited by MarekAndreansky

                      @heper said in Box dead after reboot, caused by UFS corruption ? ZFS vs UFS?:

                      @marekandreansky
                      https://docs.netgate.com/pfsense/en/latest/troubleshooting/filesystem-check.html

                      don't bother with zfs, get a small UPS instead

                      The file system check worked, needed to press space after the boot menu and it allowed me to activate the console as a single user.

                      After that, checking the filesystem six times and rebooting booted up the box. Thank you!

                      Unrelated, but any idea how to configure putty to not show duplicate letters like this in the console output? using Putty

                        b
                          b
                          o
                            o
                            o
                              o
                              t
                                t
                                /
                                  /
                                  k
                                    k
                                    e
                                      e
                                      r
                                        r
                                        n
                                          n
                                          e
                                            e
                                            l
                                              l
                                              /
                                                /
                                                k
                                                  k
                                                  e
                                                    e
                                                    r
                                                      r
                                                      n
                                                        n
                                                        e
                                                          e
                                                          l
                                                            l
                      
                      
                                                              t
                                                                t
                                                                e
                                                                  e
                                                                  x
                                                                    x
                                                                    t
                                                                      t
                                                                      =
                                                                        =
                                                                        0
                                                                          0
                                                                          x
                                                                            x
                                                                            1
                                                                              1
                                                                              8
                                                                                8
                                                                                d
                                                                                  d
                                                                                  6
                                                                                    6
                                                                                    9
                                                                                      9
                                                                                      2
                                                                                        2
                                                                                        8
                                                                                          8
                      
                      
                      H T 2 Replies Last reply Reply Quote 0
                      • H
                        heper @MarekAndreansky
                        last edited by

                        @marekandreansky

                        Probably match your serial settings on pfsense with whatever you configured in your terminal software

                        1 Reply Last reply Reply Quote 0
                        • T
                          Tzvia @MarekAndreansky
                          last edited by

                          @marekandreansky Could be local echo needs to be turned off. Check in Configuration/Terminal, try force local echo OFF.

                          Tzvia

                          Current build:
                          Hunsn/CWWK Pentium Gold 8505, 6x i226v 'micro firewall'
                          16 gigs ram
                          500gig WD Blue nvme
                          Using modded BIOS (enabled CSTATES)
                          PFSense 2.72-RELEASE
                          Enabled Intel SpeedShift
                          Snort
                          PFBlockerNG
                          LAN and 5 VLANS

                          1 Reply Last reply Reply Quote 0
                          • GertjanG
                            Gertjan @MarekAndreansky
                            last edited by Gertjan

                            @marekandreansky said in Box dead after reboot, caused by UFS corruption ? ZFS vs UFS?:

                            Any idea why its not the default option for pfSense?

                            Read this.
                            The bad news, and good news : ZFS is already build into the kernel, which makes it much bigger.
                            Also, processing and maintaining all this information will take many more CPU cycles. Ok if you have a 'big' processor. ZFS won't work on small drives, and needs a lot more RAM.
                            A router / firewall is normally not file system bound, it use the storage device to boot, and store some boot settings and operational settings.
                            So, I guess, by default, it's very overkill to use ZFS as the default.

                            But these days people have firewalls have multi cores, with 250GB++ (raid ?!) drives, and several GB if memory, so ZFS could be an option.

                            The next time I re install pfSense, I'll choose ZFS, if I remember the option. The thing is, it will take years before I have the occasion to do so ^^

                            No "help me" PM's please. Use the forum, the community will thank you.
                            Edit : and where are the logs ??

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