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

    Pfsense keeps crashing

    General pfSense Questions
    4
    20
    1.7k
    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.
    • T
      tjabas @Gertjan
      last edited by

      @Gertjan

      the disk i have monted in the router now is a msata 256gb, i found another msata at home but only 16gb, i also found a 250gb 2,5" ssd sata disk, but what happens when i remove the faulty disk, and replace it with one of the new ones, will i also loose the boot meny settings or are they stored in the motherboard?
      will 16gb be enough?

      T GertjanG 2 Replies Last reply Reply Quote 0
      • T
        tjabas @tjabas
        last edited by

        i found an old ssd 256gb harddrive , this is now installed and the system is up running, it will be interesting to see if the problem is still there.

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

          16GB is probably fine. The boot settings will be stored in flash not on the disk. You will have to reinstall pfSense obviously but you must have done that already.
          That error is definitely a drive or drive controller problem, almost certainly a bad drive.

          Steve

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

            @tjabas said in Pfsense keeps crashing:

            will i also loose the boot

            No, of course not.
            That why you make these regular daily Diagnostics > Backup & Restore Backup & Restore
            And that's why you've set up Services > Auto Configuration Backup > Settings

            A new disk means of course : you need a install media, an USB drive with the 'latest'.
            After install, import de config. Reboot. Done.

            @tjabas said in Pfsense keeps crashing:

            icap interface,clam antivirus,squid and squidguard

            These can produce a lot of disk activity.
            If the drive is 'small', a lot of sectors will be rewritten often. That's what kills even the best SSD.

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

            T 1 Reply Last reply Reply Quote 0
            • T
              tjabas @Gertjan
              last edited by tjabas

              thanks for your help, maybee ill have to stop using these programs i use in pfsense, the last pfsense hardware i used lasted for 12years without any problems at all, and this brand new device lasted 2 weeks.

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

                Even the worst current SSD should last waaaaay longer than that. There were some early SSDs that had bad firmware or controllers in which the wear leveling was completely broken. But if that was 256GB it probably wasn't one of them. Just a bad device.

                Steve

                T 1 Reply Last reply Reply Quote 0
                • T
                  tjabas @stephenw10
                  last edited by

                  @stephenw10 yes that sucks, someone in this tread mentioned autoconfig backup, i usually do backups and save them on my laptop, but what does the autoconfig backup do? and where do pfsense store that backup?

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

                    ACB encrypts the config file and sends it to our servers. The key remains in the firewall, we are unable to see those configs.

                    It can be configured to backup periodically or at every config change.

                    https://docs.netgate.com/pfsense/en/latest/backup/autoconfigbackup.html

                    Steve

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

                      @tjabas

                      If you have some 'always or often on' Windows, Linux, iOS device, look here.

                      It will login in over SSH, get a copy of the config.xml, keepts the latest xx days

                      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 0
                      • M
                        mentisdominus
                        last edited by

                        I was running into the same issue with my SSD. I decided to run pfSense with RAM disk enabled with hourly writes of system logs, RRD, and DHCP leases. The only package that I have running that requires an SSD/HDD is pfBlockerNG. It's been stable for over a week now (8 Days 06 Hours). Whereas before, I would have to hard reset every day.

                        It might be worth trying doing the same just to see if it works for you. It might save you some time.

                        I'm hesitant to buy another SSD (I live where returning items isn't so easy) because I found another person on reddit ahcich1 timeout, CAM command timeout who experienced the same issue on the same device running pfSense that I do (HP T620 Plus). That person experienced the same issue with a new SSD in two separate devices of the same model (HP T620 Plus). Before enabling RAM drive, I tried various settings in the BIOS and sysctl no avail.

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

                          @mentisdominus said in Pfsense keeps crashing:

                          I would have to hard reset every day

                          That's the perfect way to break your drive 'logically' : the file system becomes a mess, the drive partition becomes read-only, which triggers run time failures, as the OS can't write files anymore.
                          Easy to understand : take your own PC : remove power / remove battery, repeat several times and your system goes into eternal blue screen mode. It's re install time, version 'from the ground up' which mans : partition hard drive, destructive re format, the big total.

                          A normal (== good ?) pfSense system never reboots or fails.
                          Netgate devices tend to deliver on that criteria.

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

                          M 1 Reply Last reply Reply Quote 0
                          • M
                            mentisdominus @Gertjan
                            last edited by mentisdominus

                            @Gertjan The system was suspended showing the error message along the lines of "Solaris: zpool 'pfSense' has encountered an uncorrectable I/O error the system is suspended". There was no way to login/ssh into it to restart it or enter a keyboard command to restart. Hard resetting Hard reboot was the only way I know how to restart it.

                            Edit: I previously wrote "hard reset" in my previous comments as instead of "hard reboot"; as in, physically holding down the power button to turn it off and then pressing it again to power it back on. I went back to correct that part.

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

                              Yes, from there you can really only reset.

                              That sounds like a possible drive controller issue though if it happens repeatedly even after reinstalling. Or across multiple drives.

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