OPNsense Forum

Archive => 22.1 Legacy Series => Topic started by: harshw on January 29, 2022, 03:02:52 AM

Title: issues with importing config from an existing install
Post by: harshw on January 29, 2022, 03:02:52 AM
Upgraded to 22.1 (well sort of) from 21.7. But I had trouble importing the config from during the install:

I have two disks - ada0 (SanDisk) and ada1 (ADATA). One disk always has the older install so that I can switch and revert

$ geom disk list
Geom name: ada0
Providers:
1. Name: ada0
   Mediasize: 240057409536 (224G)
   Sectorsize: 512
   Mode: r3w3e8
   descr: SanDisk SDSSDX240GG25
...
Geom name: ada1
Providers:
1. Name: ada1
   Mediasize: 128035676160 (119G)
   Sectorsize: 512
   Mode: r0w0e0
   descr: ADATA SU800NS38



When I booted from from the 22.1 installer USB, ada0 contained an older version - 21.1 and ada1 contained the current 21.7.

I tried both installing from the initial 22.1 installer screen (logging in as installer) and also by installing to ada0 and running opnsense-importer to grab the config from ada1 - for some reason it doesn't like the partition layout created for 21.7. Both disks use UFS and not ZFS


$sudo opnsense-importer

<SanDisk SDSSDX240GG25 R201>       at scbus0 target 0 lun 0 (ada0,pass0)
<ADATA SU800NS38 R0427ANR>         at scbus4 target 0 lun 0 (ada1,pass1)
<AHCI SGPIO Enclosure 2.00 0001>   at scbus6 target 0 lun 0 (ses0,pass2)

Select device to import from (e.g. ada0) or leave blank to exit: ada1

Starting import for partition '/dev/ada1p3'.

Running fsck...done.
mount: /dev/ada1p3: No such file or directory
The device could not be mounted.

<SanDisk SDSSDX240GG25 R201>       at scbus0 target 0 lun 0 (ada0,pass0)
<ADATA SU800NS38 R0427ANR>         at scbus4 target 0 lun 0 (ada1,pass1)
<AHCI SGPIO Enclosure 2.00 0001>   at scbus6 target 0 lun 0 (ses0,pass2)

Select device to import from (e.g. ada0) or leave blank to exit:


In the end I backed up the config from the 21.7 and then used the GUI to load the config. But I am wondering why I could not do it during the install (or indeed even afterwards). Did the partition layout change between 21.1 - 21.7 and 22.1 ?

EDIT: I should add, once the config was imported and the plugins installed (and other than all the tunables that do NOT apply anymore for FreeBSD 13.0) - no problems so far. Will continue testing and report back