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

ZFS - config.xml recovery fails

Scheduled Pinned Locked Moved 2.5.2 Release Candidate Snapshots (Retired)
8 Posts 3 Posters 1.5k 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.
  • B
    bigsy
    last edited by Jun 6, 2021, 8:26 AM

    Testing pfSense-CE-memstick-serial-2.5.2-BETA-amd64-20210604-0300 on an APU2E4

    ZFS install defaults to a pool name of pfSense instead of zroot as previously.

    Screenshot 2021-06-06 at 09.22.01.png

    If this default is accepted, subsequent reinstallation selecting 'Recover config.xml from a previous install' fails as the script appears to be looking for pool 'zroot' and not 'pfSense':

    Attempting to recover config.xml from ada0p3.
    ZFS NOTICE: Prefetch is disabled by default if less than 4GB of RAM is present;
                to enable, add "vfs.zfs.prefetch_disable=0" to /boot/loader.conf.
    ZFS filesystem version: 5
    ZFS storage pool version: features support (5000)
    cannot import 'zroot': no such pool available
    mount: zroot/ROOT/default: No such file or directory
    ada0p3 does not contain a readable config.xml for recovery.
    
    J 1 Reply Last reply Jun 6, 2021, 11:48 AM Reply Quote 1
    • J
      JeGr LAYER 8 Moderator @bigsy
      last edited by Jun 6, 2021, 11:48 AM

      @bigsy Just a quick question: if one modifies the pool name to zroot - does it work then?

      Don't forget to upvote 👍 those who kindly offered their time and brainpower to help you!

      If you're interested, I'm available to discuss details of German-speaking paid support (for companies) if needed.

      B 1 Reply Last reply Jun 6, 2021, 12:49 PM Reply Quote 0
      • B
        bigsy @JeGr
        last edited by bigsy Jun 6, 2021, 1:06 PM Jun 6, 2021, 12:49 PM

        @jegr I hadn't tried that until now but it doesn't seem to work. I changed the pool name to zroot for installation, and then later tried to reinstall with the config recovery option.

        First time round this was the message:

        Attempting to recover config.xml from ada0p3.
        ZFS NOTICE: Prefetch is disabled by default if less than 4GB of RAM is present;
                    to enable, add "vfs.zfs.prefetch_disable=0" to /boot/loader.conf.
        ZFS filesystem version: 5
        ZFS storage pool version: features support (5000)
        ada0p3 does not contain a readable config.xml for recovery.
        mkdir: /tmp/bsdinstall_etc: File exists
        

        and on subsequent attempts:

        
        Attempting to recover config.xml from ada0p3.
        kldload: can't load zfs: module already loaded or in kernel
        cannot import 'zroot': a pool with that name is already created/imported,
        and no additional pools with that name were found
        mount: zroot/ROOT/default: Device busy
        ada0p3 does not contain a readable config.xml for recovery.
        mkdir: /tmp/bsdinstall_etc: File exists
        

        As a sanity check I then did a default install/reinstall with 2.4.5p1, and the config recovery works as expected in this version:

        Attempting to recover config.xml from ada0p3.
        ZFS NOTICE: Prefetch is disabled by default if less than 4GB of RAM is present;
                    to enable, add "vfs.zfs.prefetch_disable=0" to /boot/loader.conf.
        ZFS filesystem version: 5
        ZFS storage pool version: features support (5000)
        Recovered config.xml from ada0p3, stored in /tmp/recovered_config.
        Warning: memory type solaris leaked memory on destroy (11 allocations, 2880 bytes leaked).
        mkdir: /tmp/bsdinstall_etc: File exists
        
        

        And upgrading 2.4.5p1 to 2.5.2-beta also picks up the config.xml correctly.

        J 1 Reply Last reply Jun 6, 2021, 4:39 PM Reply Quote 0
        • J
          JeGr LAYER 8 Moderator @bigsy
          last edited by Jun 6, 2021, 4:39 PM

          @bigsy Huh... OK that looks strange. Was hoping, it's something one could workaround by using the old pool name so the importer can read it later. But seems something ZFS related is bonkers in 2.5.2betas

          Don't forget to upvote 👍 those who kindly offered their time and brainpower to help you!

          If you're interested, I'm available to discuss details of German-speaking paid support (for companies) if needed.

          1 Reply Last reply Reply Quote 0
          • J
            jimp Rebel Alliance Developer Netgate
            last edited by Jun 7, 2021, 2:16 PM

            We're working on making a more optimal ZFS filesystem layout and that's something we haven't accounted for yet in the recovery script.

            That said, at this point most people who would need the recovery feature would be recovering from older installs which still have the old zroot name, so it needs to try both.

            Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

            Need help fast? Netgate Global Support!

            Do not Chat/PM for help!

            1 Reply Last reply Reply Quote 0
            • J
              jimp Rebel Alliance Developer Netgate
              last edited by Jun 7, 2021, 2:21 PM

              https://redmine.pfsense.org/issues/12005

              Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

              Need help fast? Netgate Global Support!

              Do not Chat/PM for help!

              J 1 Reply Last reply Jun 7, 2021, 2:48 PM Reply Quote 1
              • J
                JeGr LAYER 8 Moderator @jimp
                last edited by Jun 7, 2021, 2:48 PM

                @jimp is "more optimal layout" a step towards making use of things like snapshots or file mirroring feature of the filesystem? Especially snapshots and using them in bigger updates to roll back would be a big help in remote locations to have another safety net available :)

                Don't forget to upvote 👍 those who kindly offered their time and brainpower to help you!

                If you're interested, I'm available to discuss details of German-speaking paid support (for companies) if needed.

                1 Reply Last reply Reply Quote 0
                • J
                  jimp Rebel Alliance Developer Netgate
                  last edited by Jun 7, 2021, 2:51 PM

                  Not quite ready to share all the details yet, but it is progress in making ZFS more "officially supported" in its integration compared to its more experimental nature in past releases.

                  Since the layout can't be changed post-install, the groundwork needs to be laid there early.

                  Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                  Need help fast? Netgate Global Support!

                  Do not Chat/PM for help!

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