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

pfSense crash after Blackout

Scheduled Pinned Locked Moved General pfSense Questions
7 Posts 3 Posters 830 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.
  • K
    keen
    last edited by Sep 17, 2019, 10:19 PM

    Hi People,
    I have an APU 2C4 with pfsense version 2.4.4 bios 4.10.0.0
    pfsense is installed on SSD msata with ZFS file system.
    here is the problem, after a blackout my system doesn't boot correctly anyway, and i must reinstalled it from scratch.
    I checked with serial cable and there is the video output:
    FreeBSD/amd64 (Amnesiac) (ttyu0)

    Warning: Failed loading Zend extension 'opcache.so' (tried: /usr/local/lib/php/20131226/opcache.so (Cannot open "/usr/local/lib/php/20131226/opcache.so"), /usr/local/lib/php/20131226/opcache.so.so (Cannot open "/usr/local/lib/php/20131226/opcache.so.so")) in Unknown on line 0

    Warning: PHP Startup: Unable to load dynamic library 'session.so' (tried: /usr/local/lib/php/20131226/session.so (Cannot open "/usr/local/lib/php/20131226/session.so"), /usr/local/lib/php/20131226/session.so.so (Cannot open "/usr/local/lib/php/20131226/session.so.so")) in Unknown on line 0

    what is happened ? how can i resolve for the future blackout ?
    I use ZFS because i know that is a strong file system but...
    tell me
    bye

    1 Reply Last reply Reply Quote 0
    • K
      keen
      last edited by Sep 17, 2019, 10:24 PM

      here is the complete video serial output
      https://drive.google.com/file/d/1Ugwh7-AqhgQscX34lbSVeIXQUQxaok-s/view?usp=sharing

      1 Reply Last reply Reply Quote 0
      • B
        bmeeks
        last edited by Sep 18, 2019, 1:45 PM

        Your filesystem is damaged. Not even ZFS is guaranteed to survive a sudden power off condition intact if the underlying disk hardware is not enterprise class. Most consumer-level disks (even SSDs) will tell the operating system something is written to disk before it actually is. This is a result of internal caching within the disk electronics itself. So if power is lost at the right time, data can get scrambled even using ZFS.

        You always need a UPS on a computer, and most certainly on a firewall. You also need to run one of the UPS packages available for pfSense (nut or apcupsd) with a connection to the UPS so that the UPS can signal the firewall when battery exhaustion is near and the firewall can shutdown gracefully.

        I'm not a ZFS expert. There may be some command in ZFS that is similar to the old fsck command used by UFS. Google would be your friend.

        Another option is to attempt to grab the config.xml file from the firewall and perform a fresh install while importing the old configuration.

        N 1 Reply Last reply Sep 18, 2019, 9:12 PM Reply Quote 0
        • N
          NollipfSense @bmeeks
          last edited by Sep 18, 2019, 9:12 PM

          @bmeeks said in pfSense crash after Blackout:

          Your filesystem is damaged. Not even ZFS is guaranteed to survive a sudden power off condition intact if the underlying disk hardware is not enterprise class. Most consumer-level disks (even SSDs) will tell the operating system something is written to disk before it actually is. This is a result of internal caching within the disk electronics itself. So if power is lost at the right time, data can get scrambled even using ZFS.

          You always need a UPS on a computer, and most certainly on a firewall. You also need to run one of the UPS packages available for pfSense (nut or apcupsd) with a connection to the UPS so that the UPS can signal the firewall when battery exhaustion is near and the firewall can shutdown gracefully.

          I'm not a ZFS expert. There may be some command in ZFS that is similar to the old fsck command used by UFS. Google would be your friend.

          Another option is to attempt to grab the config.xml file from the firewall and perform a fresh install while importing the old configuration.

          I recently had a self-induced power cut while I was vacuuming and must have accidentally hit the power button on the surged protector. Rebooted and my ZFS was running down the screen (scramble). Good thing I had a recent backup...did fresh install and restored config. Thought this ZFS was made of iron...not so it seems.

          pfSense+ 23.09 Lenovo Thinkcentre M93P SFF Quadcore i7 dual Raid-ZFS 128GB-SSD 32GB-RAM PCI-Intel i350-t4 NIC, -Intel QAT 8950.
          pfSense+ 23.09 VM-Proxmox, Dell Precision Xeon-W2155 Nvme 500GB-ZFS 128GB-RAM PCIe-Intel i350-t4, Intel QAT-8950, P-cloud.

          B 1 Reply Last reply Sep 18, 2019, 9:34 PM Reply Quote 0
          • B
            bmeeks @NollipfSense
            last edited by bmeeks Sep 18, 2019, 9:34 PM Sep 18, 2019, 9:34 PM

            @NollipfSense :

            Found some posts elsewhere on the web that provided an explanation of why, sometimes, even ZFS can die. It has to do with the internal electronics of the disk drives themselves. Many provide caching, and some of those that do cache report a "write complete" operation to the OS when in reality the write is still sitting in the onboard cache of the drive controller. While the actual write happens a few milliseconds later, if power goes out at that very instant the data could in fact be lost. Many enterprise class disk drives have specially designed power storage capacitors integrated into their electronics for precisely this reason. They provide a half second's worth of power to allow flushing of any cache data. Cheaper consumer-level drives cut out this feature to save a few cents on the per-unit cost.

            N 1 Reply Last reply Sep 19, 2019, 5:25 PM Reply Quote 0
            • N
              NollipfSense @bmeeks
              last edited by Sep 19, 2019, 5:25 PM

              @bmeeks Got to get me a UPS!

              pfSense+ 23.09 Lenovo Thinkcentre M93P SFF Quadcore i7 dual Raid-ZFS 128GB-SSD 32GB-RAM PCI-Intel i350-t4 NIC, -Intel QAT 8950.
              pfSense+ 23.09 VM-Proxmox, Dell Precision Xeon-W2155 Nvme 500GB-ZFS 128GB-RAM PCIe-Intel i350-t4, Intel QAT-8950, P-cloud.

              B 1 Reply Last reply Sep 19, 2019, 9:06 PM Reply Quote 0
              • B
                bmeeks @NollipfSense
                last edited by Sep 19, 2019, 9:06 PM

                @NollipfSense said in pfSense crash after Blackout:

                @bmeeks Got to get me a UPS!

                I highly recommend it. Can save you from a mini disaster during a blackout or even temporary power blip.

                1 Reply Last reply Reply Quote 0
                7 out of 7
                • First post
                  7/7
                  Last post
                Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                  This community forum collects and processes your personal information.
                  consent.not_received