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

    Recovery from failed drive

    Scheduled Pinned Locked Moved General pfSense Questions
    5 Posts 2 Posters 167 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.
    • T
      Troutpocket
      last edited by

      One of our HA members died over the weekend. It's a XG-7100. HA worked beautifully and nobody even noticed that the primary firewall died.

      I can access the console via serial and it's at a "boot:" prompt:
      c0666bb3-7973-4137-94af-09d8aaccb247-image.png

      That's me trying whatever to get a meaningful response out of the prompt. Worst case, the whole drive is unrecoverable. I'm hopeful that the drive only ate the boot sectors. I'd like to try to get the /conf/config.xml file off the root partition if it's still readable. Is the best way to go about this by booting a pfsense install via USB and attempting recovery?

      This is an old enough HA pair that it's still probably UFS which I intend to replace with ZFS. Once I have the config.xml I intend to install a new internal USB drive on one of the SATA headers since I don't trust the soldered storage any more.

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

        @Troutpocket said in Recovery from failed drive:

        Is the best way to go about this by booting a pfsense install via USB and attempting recovery?

        Yes. It should automatically find the config if the partition is still accessible.

        Did you have auto config-backup configured?

        Steve

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

          @stephenw10 The storage was totally dead. I couldn't even get an alternate superblock to work for recovery. Examining the raw data of the disk seemed futile.

          I did have ACB configured, but couldn't find the key. Fortunately, the other HA member spilled it's config over when I got the replacement online.

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

            If you need it we can probably recover the old key from the NDI which will be unchanged.

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

              @stephenw10 That's good to know. This event has prompted me to review and record all the firewalls we manage and note down their keys.

              TBH, the pfsense HA config is like magic when restoring. I always expect it to be more of a hassle to rebuild a firewall that has lots of interfaces, vlans, DMZs, and special rules but it always works out like magic!

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