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

    Make pfsense resilient to sudden power outages?

    Scheduled Pinned Locked Moved General pfSense Questions
    17 Posts 7 Posters 2.3k 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
      spyshagg
      last edited by

      Hi

      Is there any way to make pfsense resilient to sudden power losses?  The first thing that comes to mind is to add  "sync" into fstab.

      Any more suggestions?

      thanks

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

        Thing that comes to mind to me would be a UPS ;)  duh!!!

        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
        • S
          spyshagg
          last edited by

          sure, but that was not the question :)

          1 Reply Last reply Reply Quote 0
          • KOMK
            KOM
            last edited by

            Excessive syncing will kill performance from what I remember, and a UPS is a much better solution.

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

              There is an UPS but the automatic shutdown is being problematic to say the least.  And having the software itself be resilient to sudden power outages is always a good practice.

              Does anyone else can think of anything else?

              thanks

              1 Reply Last reply Reply Quote 0
              • W
                W4RH34D
                last edited by

                @spyshagg:

                There is an UPS but the automatic shutdown is being problematic to say the least.  And having the software itself be resilient to sudden power outages is always a good practice.

                Does anyone else can think of anything else?

                thanks

                I'd love some sort of unattended install that will look for a config.xml where you could just leave a cd-rom copy in the drive and some sort of conditional reinstall if no interaction within 5 minutes upon boot.

                I'd also love a bugatti, so..you know.  Can't hurt to shoot for the stars, though.

                Did you really check your cables?

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

                  I am running pfsense virtualized and what you said is possible. Have a script on the host with some variables to test the good working order of pfsense. If it fails = restore "good" cloned VDI.

                  Thats actually a pretty good idea thanks.  It depends on the host to being resilient it self. But My ups refuses to work under centos 6.8.

                  1 Reply Last reply Reply Quote 0
                  • W
                    W4RH34D
                    last edited by

                    I think that would be the most hassle free way to go about it to be honest.

                    Did you really check your cables?

                    1 Reply Last reply Reply Quote 0
                    • D
                      doktornotor Banned
                      last edited by

                      Using 2.4 with ZFS is your only hope. UFS is anything but resilient. It may completely cripple itself on a single power failure, if not, fsck will gradually finish it with its clueless attempts on "fixing" things.

                      1 Reply Last reply Reply Quote 0
                      • H
                        Honest Bob
                        last edited by

                        amen! I've had to reload pfsense twice out of the 5 times I've shut it down unexpectedly. I keep a backup of my config of course but it shouldnt be so easily killed.

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

                          So  fstab /  0 0  to avoid checkdisk

                          got it

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

                            What UPS do you have, and what is your HOST running?  I would say your primary goal here would be to get your host to shutdown correctly on power loss… Or you could have problems with the host even coming back, or any other vms you have running on it.

                            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
                            • S
                              spyshagg
                              last edited by

                              Centos 6.8 x64

                              Phasak 9469 usb
                              Eaton 5E usb

                              The Eaton throws usb errors in linux kernel immediately after plugging it in. It does this in all red hat distros I tired.

                              drivers/hid/usbhid/hid-core.c: usb_submit_urb(ctrl) failed

                              The newer revisions of phasak 9469 fail to sustain reliable usb communication phasak very own virtualpower app, and nut cannot even recognize the damn ups. The older revision 9465 as exactly the same usb controller and works well, but are no longer available.

                              So, two shots two failures. I cant try any more ups. These are it.

                              1 Reply Last reply Reply Quote 0
                              • W
                                W4RH34D
                                last edited by

                                At least with Linux you could probably pay someone to make you a driver that will work.

                                Did you really check your cables?

                                1 Reply Last reply Reply Quote 0
                                • D
                                  doktornotor Banned
                                  last edited by

                                  @spyshagg:

                                  So  fstab /  0 0  to avoid checkdisk

                                  got it

                                  Seriously, this solves nothing when the filesystem is utter junk. Even reiser4 was more stable than this.

                                  1 Reply Last reply Reply Quote 0
                                  • H
                                    heper
                                    last edited by

                                    @doktornotor:

                                    Seriously, this solves nothing when the filesystem is utter junk. Even reiser4 was more stable than this.

                                    theres a slim line between brilliance and being a psychopatic murderer ….. reiser4 combined both those personalities :D

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

                                      Are you guys familiar with "bad file descriptor" error which essentially bricks pfsense at  boot time?

                                      I can reproduce this error everytime the virtualbox machine closes without proper shutdown.  Everytime. Luckily, to fix this I just have to copy the backup VDI I keep stored.

                                      I am anticipating a world of hurt once the UPS's lose their batteries and the server goes down on power failures.

                                      Thinking of testing 2.4 with zfs before deploying another 15 machines.

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