bjornz Posted May 16 Share Posted May 16 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. Quote Link to comment
JorgeB Posted May 16 Share Posted May 16 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 Quote Link to comment
bjornz Posted May 16 Author Share Posted May 16 (edited) 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 by bjornz Quote Link to comment
JorgeB Posted May 16 Share Posted May 16 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. Quote Link to comment
bjornz Posted May 16 Author Share Posted May 16 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. Quote Link to comment
JorgeB Posted May 16 Share Posted May 16 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 Quote Link to comment
bjornz Posted May 16 Author Share Posted May 16 Do I need an other hard drive to install unraid? My disk drive under truenas scale contains the pool, right? Quote Link to comment
JorgeB Posted May 16 Share Posted May 16 You can just boot Unraid with the flash drive and if the pool is connected it will show up and zpool import. Quote Link to comment
itimpi Posted May 16 Share Posted May 16 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. Quote Link to comment
bjornz Posted May 16 Author Share Posted May 16 (edited) 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 by bjornz Quote Link to comment
bjornz Posted May 16 Author Share Posted May 16 (edited) 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 by bjornz Quote Link to comment
JorgeB Posted May 16 Share Posted May 16 Didn't you say that you had a mirror? Post the output of zpool status -LP Quote Link to comment
JorgeB Posted May 16 Share Posted May 16 And don't format anything, Unraid will not delete any existing pool unless you format it (or assign a disk to parity) Quote Link to comment
bjornz Posted May 16 Author Share Posted May 16 root@NAS:~# zpool status -LP no pools available Quote Link to comment
JorgeB Posted May 16 Share Posted May 16 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. Quote Link to comment
bjornz Posted May 16 Author Share Posted May 16 (edited) 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 by bjornz Quote Link to comment
JorgeB Posted May 16 Share Posted May 16 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 Quote Link to comment
bjornz Posted May 16 Author Share Posted May 16 Ok I did a mistake with the name of the pool, which I changed earlier in the day. With "toto" : Quote Link to comment
JorgeB Posted May 16 Share Posted May 16 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. Quote Link to comment
Solution JorgeB Posted May 16 Solution Share Posted May 16 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. Quote Link to comment
bjornz Posted May 16 Author Share Posted May 16 I delete partition number one right? Don't want to loose on such mistake... Quote Link to comment
JorgeB Posted May 16 Share Posted May 16 Yes, you delete the small swap partition (#1) Quote Link to comment
bjornz Posted May 16 Author Share Posted May 16 Ok it is loading, I think it is doing the job. Yes, it worked perfectly. Thank you!!! 1 Quote Link to comment
bjornz Posted May 16 Author Share Posted May 16 (edited) 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 by bjornz Quote Link to comment
Recommended Posts
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.