May 16, 20242 yr Hi, i've just decided to migrate from my current Truenas SCALE to Unraid because I don't really like k3s system and find it too complex, plus I would like to have arr suite done with Unraid. I have a mirror of two 12Tb disks with Truenas with datas I don't want to loose. From there, is there a solution I can choose to do this migration? Detach one disk from the mirror, format it and install Unraid on it, and then import the other disk to keep its data intact? Regards.
May 16, 20242 yr Community Expert Depending on the TrueNAS release you were running/pool was created, you may be able to import the pool directly, post the output of: zpool import
May 16, 20242 yr Author Thanks for your help! TrueNAS-SCALE-23.10.2 Cobia. Had migrated from Truenas CORE last week, kept the pool. root@truenas[~]# zpool import no pools available to import root@truenas[~]# Edited May 16, 20242 yr by bjornz
May 16, 20242 yr Community Expert If the pool was created with Cobia it won't be importable with v6.12, only with v6.13, but it should still show up under 'zpool import', assuming it's connected.
May 16, 20242 yr Author OK. I've created the pool under Truenas CORE, not SCALE Cobia. I wonder if I should detach the first disk drive from mirror, format it with Unraid and import the second one in Unraid.
May 16, 20242 yr Community Expert 8 minutes ago, bjornz said: I've created the pool under Truenas CORE Then it should be importable, please note that the pool won't show up under zpool import if it's already imported, if the pool is connected, post the output of zpool status
May 16, 20242 yr Author Do I need an other hard drive to install unraid? My disk drive under truenas scale contains the pool, right?
May 16, 20242 yr Community Expert You can just boot Unraid with the flash drive and if the pool is connected it will show up and zpool import.
May 16, 20242 yr Community Expert 46 minutes ago, bjornz said: Do I need an other hard drive to install unraid? Unraid is not installed in the way is common with many other OS. Instead it is loaded into RAM on boot from the flash drive and runs from there. In that sense it is more like firmware on other systems.
May 16, 20242 yr Author Alright so I've booted on the flash drive, then at zpool import here I have : root@NAS:~# zpool status no pools available root@NAS:~# zpool import pool: boot-pool id: 11697965585323355504 state: ONLINE status: Some supported features are not enabled on the pool. (Note that they may be intentionally disabled if the 'compatibility' property is set.) action: The pool can be imported using its name or numeric identifier, though some features will not be available without an explicit 'zpool upgrade'. config: boot-pool ONLINE ata-PNY_CS900_120GB_SSD_PNY21252106250101206 ONLINE pool: Pool1 id: 17572593702881592873 state: ONLINE status: The pool was last accessed by another system. action: The pool can be imported using its name or numeric identifier and the '-f' flag. see: https://openzfs.github.io/openzfs-docs/msg/ZFS-8000-EY config: Pool1 ONLINE c279bd8f-bbae-11ee-add4-a8a159db65e9 ONLINE root@NAS:~# What should I do now to recover my truenas pool (data)? Edited May 16, 20242 yr by bjornz
May 16, 20242 yr Author I just did zpool import Pool1 -f, not sure what to do now. Will I loose my data if I set one of my two disks on arrays and boot the array? Stuck at this point / Not sure what I do to be honest. Edited May 16, 20242 yr by bjornz
May 16, 20242 yr Community Expert Didn't you say that you had a mirror? Post the output of zpool status -LP
May 16, 20242 yr Community Expert And don't format anything, Unraid will not delete any existing pool unless you format it (or assign a disk to parity)
May 16, 20242 yr Community Expert Then 3 hours ago, bjornz said: I just did zpool import Pool1 -f, Did you export the pool? If you did import it again and post the output of the above.
May 16, 20242 yr Author 5 minutes ago, JorgeB said: Then Did you export the pool? If you did import it again and post the output of the above. in Unraid right? ^^ I just did : That's where I don't know what to do. Put the disks into array? Or it doesn't matter now? Edited May 16, 20242 yr by bjornz
May 16, 20242 yr Community Expert 2 minutes ago, bjornz said: Or it doesn't matter now? It doesn't matter for now, import the pool manually with -f and post the output of zpool status -LP
May 16, 20242 yr Author Ok I did a mistake with the name of the pool, which I changed earlier in the day. With "toto" :
May 16, 20242 yr Community Expert OK, now export the pool with zpool export toto and post the output of: fdisk -l /dev/sdb Looks like the is a swap partition, you will need to remove it first, I'll post a link.
May 16, 20242 yr Community Expert Solution Make sure the pool is exported and then see below for how to remove swap and make partition #2>#1 https://forums.unraid.net/topic/153274-how-to-non-irreversibly-migrate-from-truenas-core-with-zfs-to-unraid/?do=findComment&comment=1369139 After that go to Tools - New Config and reset the array, then assign sdb to a pool, not to the array, you also need to assign at least one data array device, you can assign the other disk or an old flash drive for example, start the array and the pool should import.
May 16, 20242 yr Author Ok it is loading, I think it is doing the job. Yes, it worked perfectly. Thank you!!!
May 16, 20242 yr Author The only last problem is that the array device (the other disk) says it is unmountable : unsupported partition layout. Should I format the unmountable disk? Edited May 16, 20242 yr by bjornz
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.