Migration from Legacy to UEFI

ewans

Cadet
Joined
Dec 9, 2020
Messages
3
Hello,
I'm using FreeNAS several years on my old computer (just boot flash drive and one data hard drive, one pool, plex jail). Now I bought new Asrock motherboard, but this MB can only UEFI boot and my boot flash drive uses legacy.
Before start I updated on TrueNAS 12.0 and made backup.
I tried to make new installation drive and new UEFI boot system, but after I import my backup, my pool is offline, but disk is visible.
I tried:
Code:
root@freenas[~]# zpool status -v
  pool: boot-pool
 state: ONLINE
config:

        NAME        STATE     READ WRITE CKSUM
        boot-pool   ONLINE       0     0     0
          ada0p2    ONLINE       0     0     0

errors: No known data errors
root@freenas[~]#

which shows boot pool only, but in disk list is ada1 - my data drive
Code:
root@freenas[~]# geom disk list
Geom name: ada0
Providers:
1. Name: ada0
   Mediasize: 500107862016 (466G)
   Sectorsize: 512
   Mode: r2w2e4
   descr: WDC WD5000AAKS-00A7B0
   lunid: 50014ee0563fc182
   ident: WD-WMASY4390812
   rotationrate: unknown
   fwsectors: 63
   fwheads: 16

Geom name: ada1
Providers:
1. Name: ada1
   Mediasize: 2000397852160 (1.8T)
   Sectorsize: 512
   Stripesize: 4096
   Stripeoffset: 0
   Mode: r0w0e0
   descr: WDC WD20EZRX-00D8PB0
   lunid: 50014ee20aa8e5ab
   ident: WD-WCC4N9JYUVDJ
   rotationrate: 5400
   fwsectors: 63
   fwheads: 16


Now I noticed critical alert, but I'm not sure if it's cause or consequence:
Code:
CRITICAL
Failed to check for alert VolumeStatus: Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/middlewared/plugins/alert.py", line 706, in __run_source alerts = (await alert_source.check()) or [] File "/usr/local/lib/python3.8/site-packages/middlewared/alert/source/volume_status.py", line 31, in check for vdev in await self.middleware.call("pool.flatten_topology", pool["topology"]): File "/usr/local/lib/python3.8/site-packages/middlewared/main.py", line 1233, in call return await self._call( File "/usr/local/lib/python3.8/site-packages/middlewared/main.py", line 1202, in _call return await self.run_in_executor(prepared_call.executor, methodobj, *prepared_call.args) File "/usr/local/lib/python3.8/site-packages/middlewared/main.py", line 1106, in run_in_executor return await loop.run_in_executor(pool, functools.partial(method, *args, **kwargs)) File "/usr/local/lib/python3.8/site-packages/middlewared/utils/io_thread_pool_executor.py", line 25, in run result = self.fn(*self.args, **self.kwargs) File "/usr/local/lib/python3.8/site-packages/middlewared/plugins/pool.py", line 431, in flatten_topology d = deque(sum(topology.values(), [])) AttributeError: 'NoneType' object has no attribute 'values'

Can you help me import pool into system? I'm not an advanced user, I've some linux knowledge, but on FreeBSD is everything slightly different.
Thank you
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
Can you help me import pool into system?

Have you already tried Storage | Pools | Add | Import existing pool ?

You can check that the pool is recognised by testing with:
zpool import

which will list the pool without actually importing it.

There's a reasonable chance that you didn't export your pool on the original install (and if your config backup had restored properly, you would not have needed to), so the pool will need to be imported with the -f flag.

at CLI:
zpool import -f <poolname>

Then:
zpool export <poolname>

Then import it from the GUI.
 
Last edited:

ewans

Cadet
Joined
Dec 9, 2020
Messages
3
I'm not at home now, but I think I tried
Code:
zpool import 
with message like "Nothing to import". I can try to rebuild hard drive to my old "server" (I still have boot flash drive too) and try
Code:
zpool export <poolname>

I'll post progress, thank you.
 

ewans

Cadet
Joined
Dec 9, 2020
Messages
3
Hello,
even on my old server
root@freenas[~]# zpool import no pools available to import
Probably I brick my pool when I tried to import them during install :-(
I was quite confused with 2 flash drives for start from scratch and I probably break my filesystem when I hit yes on screen bellow (with choosen my hard drive):
installer-drive-warning.png

because I expected this screen: (I want to upgrade legacy on uefi (How dumb I was.))
upgrade1.png

and on screen bellow I quit the installation, but probably late...
installer-root-password.png

I think there is no possibility to repair this problem, am I right? Did I lost my pool as same as my data? Is there any possibility to recover (backup) data in some linux distro?
Thank you for answer
 
Top