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

    Restore a new ZFS install from a config file made on a UFS install

    Scheduled Pinned Locked Moved Problems Installing or Upgrading pfSense Software
    43 Posts 5 Posters 7.9k 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.
    • C
      chrcoluk
      last edited by

      If using default pfsense zfs installer, this should work.

      zfs set copies=3 zroot

      pfSense CE 2.8.0

      R 1 Reply Last reply Reply Quote 0
      • R
        RickyBaker @chrcoluk
        last edited by

        @chrcoluk said in Restore a new ZFS install from a config file made on a UFS install:

        If using default pfsense zfs installer, this should work.

        zfs set copies=3 zroot

        Thanks, i wish this cleared it up more, but where exactly do I type this in? Can I do it after I've already installed pfsense or will I have to reinstall? I used the guided installer too, will I need to do something from the command line?

        1 Reply Last reply Reply Quote 0
        • C
          chrcoluk
          last edited by

          in the root shell

          Its a live command, not even a reboot needed.

          If you want to revert to default the command will be 'zfs set copies=1 zroot'.

          pfSense CE 2.8.0

          1 Reply Last reply Reply Quote 0
          • R
            RickyBaker @stephenw10
            last edited by

            @stephenw10 said in Restore a new ZFS install from a config file made on a UFS install:

            Run a packet capture, make sure it's sending DHCP requests. See what, if anything, comes back.

            So I figured out how to run a Packet Capture (still working on the DHCP logs, honestly I forgot until I came back to this post). This is what I got when I ran it on the WAN

            Screen Shot 2019-04-17 at 8.45.15 PM.png

            I apologize for needing further assistance, but I'm not really sure how to decipher this (but it doesn't look right). Anything else I should do?

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

              The logs are available in the GUI in Status > System Logs > DHCP tab. Look for dhclient entries on WAN.

              That pcap shows all IPv6 packets so either it was filtered by IPv6 only or the WAN is not trying to pull an IP over v4. That fact there are no incoming v4 packets either makes it seem more like it was set to v6 only.

              Steve

              R 1 Reply Last reply Reply Quote 0
              • R
                RickyBaker @stephenw10
                last edited by

                @stephenw10 said in Restore a new ZFS install from a config file made on a UFS install:

                That fact there are no incoming v4 packets either makes it seem more like it was set to v6 only.

                Well that's interesting. I'll try to run the logs tonight, Where would that "v6 only" setting most likely be set? in the set up for the interface? or on the modem? It's a Motorola MB7621 btw if that's useful. Would this not be a setting carried over when I restore from the backup of the currently-working zotac/barebones Ufs install?

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

                  In the packet capture. You can set filtering options there including 'Address Family: IPv6 Only'. It isn't set by default there though it would usually capture all packets so if that was not filtered then it's very odd to see no v4 traffic.

                  Try hitting DHCP lease renew or connect when the cap is running to at least send some v4 packets.

                  Steve

                  R 1 Reply Last reply Reply Quote 0
                  • R
                    RickyBaker @stephenw10
                    last edited by

                    @stephenw10 said in Restore a new ZFS install from a config file made on a UFS install:

                    Try hitting DHCP lease renew or connect when the cap is running to at least send some v4 packets.

                    OK I will. I ran it without intentionally making any modifications to the pcap. Just selected WAN and started it. Is there a length of time that's recommended to run it? Is it possible I just stopped it too soon? I will do the DHCP lease renew when it's running and the second suggestion is DHCP lease CONNECT?

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

                      That looks like you ran it for 10s only so it's possible nothing happened there. I would run for a few minutes at least. If you set the pcap to IPv4 only that will make it easier to read. You should also increasr the maximum capture size to, say, 1000 packets.

                      Steve

                      R 1 Reply Last reply Reply Quote 0
                      • R
                        RickyBaker @stephenw10
                        last edited by

                        @stephenw10 said in Restore a new ZFS install from a config file made on a UFS install:

                        You should also increasr the maximum capture size to, say, 1000 packets

                        Is the setting you're referring to the "Count" value? Currently set at the default 100?

                        And where do I renew the dhcp lease? Is this under Status->DHCP leases? Or Services->DHCP Services? And I suppose in either case, what do I press after I'm in that subsection? There's a refresh button in the upper right corner that displays "Restart Service" on hover, but both of these sections seem more to do with the lan than the wan...

                        Pcap is currently running filtered my ip4 traffic...

                        1 Reply Last reply Reply Quote 0
                        • R
                          RickyBaker
                          last edited by

                          Here is the ip4 filtered few minutes long pcap:

                          Screen Shot 2019-04-19 at 8.02.06 PM.png

                          1 Reply Last reply Reply Quote 0
                          • R
                            RickyBaker
                            last edited by

                            Also, I realize this may not be neither here nor there, but the output on the attached monitor acknowledges that the ethernet is attached to both interfaces

                            IMG_20190419_204909.jpg

                            And the WAN gives a N/A when the modem is not attached, and 0.0.0.0 when it is. This may be something obvious to you guys but it gives me hope:)

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

                              Mmm, OK so you can see it sending DHCP broadcast requests there and nothing coming back at all.

                              Did you reset the modem? Or spoof the MAC address? Many modems will lock to one MAC until reset.

                              Steve

                              1 Reply Last reply Reply Quote 1
                              • R
                                RickyBaker
                                last edited by

                                So I have in the past during this issue done a tiered reset of all the devices and it still had a 0.0.0.0 for the IP but I didn't reset the modem during or before this pcap. I just took the ethernet plug out of the working pfsense install and plugged it into the new non-working one. Now that you say it, besides the service (which is the same isp) the modem is the one thing that changed when I moved over. But the old pfsense install worked right when I plugged it in.

                                And you can tell from the pcap what it's getting the dhcp renew you asked for? Cause I didn't do anything while the pcap was running. Just wait...

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

                                  The only thing you can see in that pcap is that it's looking for a DHCP server and nothing is responding.

                                  Either the requests is not making it to the server or it's configured not to respond that that MAC address.

                                  Steve

                                  1 Reply Last reply Reply Quote 0
                                  • R
                                    RickyBaker
                                    last edited by

                                    So are you thinking this is a bad setting on modem or still some setting issue on the pfsense? What should I do to further test?

                                    1 Reply Last reply Reply Quote 0
                                    • R
                                      RickyBaker
                                      last edited by

                                      I'm not sure how to do the spoof business you mentioned but would happily try...

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

                                        On the WAN interface config page you can enter a different MAC address to use. Try setting it to the same MAC the other firewall has.

                                        Steve

                                        1 Reply Last reply Reply Quote 0
                                        • R
                                          RickyBaker
                                          last edited by

                                          I will and report back, thank you for that...

                                          1 Reply Last reply Reply Quote 0
                                          • R
                                            RickyBaker
                                            last edited by

                                            Well I hunkered down for a long list of troubleshooting, listed out the various things I was gonna try in the order I'd try them.

                                            • I released and renewed DHCP under Status->Interfaces->WAN (while running a pcap)
                                            • I restarted the modem with the WAN ethernet cable plugged in and the pfsense box powered on the whole time
                                            • etc

                                            And I never got to spoofing the mac address or anything. The WAN IP was still 0.0.0.0 and the pcap looked the same after the first step but after a restart of the modem it grabbed an IP address!!!! I swear I power cycled the devices many times in a multitude of different orders of operations and it never worked. Maybe the release and renew of the dhcp, though not working before a modem restart, actually did something to help on the next modem restart. In any event, fingers crossed, i seem to finally be up. I don't understand why I had issues with only the Dell installation but at least I have learned a few things along the way:) Thanks for all your help!

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