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



  • I just got a used Dell r210 ii to load pfSense and the install and restore from backup was delightfully smooth. I was super nervous about it so I thought best not to throw too many variables in and just did the classic UFS restore, but now that I'm up and running and cause I'm a glutton for punishment, I'm thinking I should redo the whole process and turn my new install into a ZFS one.

    My question is, can I restore it with the config backup generated on my old UFS install? Is there an easier/better way than just reinstalling from scratch?


  • Rebel Alliance Netgate Administrator

    The underlying file system will have no impact on the backed up config file.

    You might want to try our new Config Backup (have a copy of it locally and use the online version to restore).

    Follow the instructions below, as this might be your first time before doing any changes I would get a local copy downloaded in case there is a setting missed (password or key).

    https://www.netgate.com/docs/pfsense/backup/autoconfigbackup.html



  • Thanks! I know this is a broad question, but would you recommend I redo my new setup now to ZFS now that I'm running on a backup (the original machine)?


  • Netgate Administrator

    UFS is still the default and recommended install FS type. However it's likely we will move to ZFS at some point.

    Right now UFS is far more widely tested, because it's the default, so you're far less likely to hit some obscure edge case issue.

    ZFS does have significant advantages; better resilience to power failure, system snapshots. It does use more memory though, in some cases a lot more. You shouldn't attempt to run it on a low RAM machine with a large drive.

    Steve



  • I would be running it on a Dell r210 ii with 8gb of ram so I think that would be plenty, however I'm far from a power user and am worried I'll experience more headache with idiosyncrasies of the new file system that benefit I'd derive from it. Thanks for your input...


  • Netgate Administrator

    In all probability you would not experience any issues with either filesystem. If you can run ZFS more people running it to expose any issues that might be there is good. ๐Ÿ˜‰

    Steve



  • I'm a glutton for punishment so I'll probably give it a try;)



  • Well, I finally got around to giving it a try, but I got stumped during the install. None of the "Pool Type/Disks:" options worked for me. They all are raids (which is kind of my understanding as being related to the benefits of ZFS) but I only have the one disk currently in my R210 ii. I thought I had read somewhere else that ZFS was still of benefit by "mirroring itself" or something. Any advice would be appreciated, but in the meantime I'll just stick with UFS.



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

    Well, I finally got around to giving it a try, but I got stumped during the install. None of the "Pool Type/Disks:" options worked for me.

    It's really easy select "Auto (ZFS)", set the pool to stripe for a single disk, mark the disk that should be used and let it install. As for redundancy on a single disk read up on the "copies" attribute, but be aware that it is far inferior to a real mirror.



  • I kept selecting the default option, selecting my disk, and it saying "failure, not enough disks 0<1" or something to that affect.


  • Netgate Administrator

    The installer doesn't make it obvious as I recall but that means that you really don't have any disks selected. You have to select at least one drive to continue at this point after just accepting all the other defaults:

     pfSense Installer
     โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
    
    
    
    
     โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ZFS Configurationโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
     โ”‚ โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚
     โ”‚ โ”‚[*] ada0         NT-32                                                  โ”‚ โ”‚
     โ”‚ โ”‚[ ] da0          IS917 innostor                                         โ”‚ โ”‚
     โ”‚ โ”‚[ ] label/swap0  GEOM LABEL device                                      โ”‚ โ”‚
     โ”‚ โ”‚[ ] mmcsd0       MMCHC M32508 5.2 SN 0B455B3B MFG 02/2018 by 112 0x0000 โ”‚ โ”‚
     โ”‚ โ”‚[ ] mmcsd0boot0  MMCHC M32508 5.2 SN 0B455B3B MFG 02/2018 by 112 0x0000 โ”‚ โ”‚
     โ”‚ โ”‚[ ] mmcsd0boot1  MMCHC M32508 5.2 SN 0B455B3B MFG 02/2018 by 112 0x0000 โ”‚ โ”‚
     โ”‚ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ”‚
     โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
     โ”‚                       <  OK  >            < Back >                         โ”‚
     โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
    
    

    Use space to select a drive. I've selected ada0 there.

    Steve



  • @stephenw10 OOOOOOOOOOO Thanks!l I'll give it a shot tomorrow and report back!



  • So I was able to upgrade to the ZFS install of the latest PFSense. I used the manual Restore method and everything seems alright (just wasn't that comfortable with the Autobackup and the other was so easy). I'll have to fully slot it in place of my current PFSense box to see if it's 100% working (and re-add my vlan) but seems good. One question: since I only have 1 hdd in the Del r210ii right now, is adding a mirror drive relatively easy? I assume it's from the command line and I'll need to learn a few ZFS commands, but guaging how easy to retrofit the mirror is (as opposed to building it that way from the start).


  • Netgate Administrator

    Hmm, interesting question, I've never tried.
    My instinct there is that is would require reinstalling but ZFS is far more capable so....
    More research needed.

    Steve



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

    I assume it's from the command line and I'll need to learn a few ZFS commands, but guaging how easy to retrofit the mirror is (as opposed to building it that way from the start).

    Shouln't be a problem, though I haven't tried it myself: https://www.freebsd.org/doc/handbook/zfs-zpool.html the only thing that might be a bit risky is updating the bootcode with the correct one if you use UEFI boot. On the other hand, reinstalling pfSense with config recovery is likely to be equally as fast, if not faster.



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

    Shouln't be a problem, though I haven't tried it myself: https://www.freebsd.org/doc/handbook/zfs-zpool.html the only thing that might be a bit risky is updating the bootcode with the correct one if you use UEFI boot. On the other hand, reinstalling pfSense with config recovery is likely to be equally as fast, if not faster

    Well shoot, i was thinking it would be easier than that. Oh well, guess I'll look into installing another harddrive and do this again:)