Help getting UFS pool back in freenas 11

Status
Not open for further replies.

coneill

Cadet
Joined
Nov 22, 2018
Messages
2
So I recently upgraded from 9.3 to 11 and my old pool with a single UFS drive isn't loading. I saw UFS is pretty much gone now in freenas 11. Ok no problem, Its just a single backup disk anyway. However I've spent the last 5 hours trying to import the single disk back as a single drive ZFS but I keep getting these errors every time I try to create a new pool with it.

Code:
Nov 22 13:45:43 freenas GEOM_ELI: Device mirror/swap1.eli destroyed.
Nov 22 13:45:43 freenas GEOM_MIRROR: Device swap1: provider destroyed.
Nov 22 13:45:43 freenas GEOM_MIRROR: Device swap1 destroyed.
Nov 22 13:45:44 freenas notifier: 32+0 records in
Nov 22 13:45:44 freenas notifier: 32+0 records out
Nov 22 13:45:44 freenas notifier: 33554432 bytes transferred in 0.362878 secs (92467551 bytes/sec)
Nov 22 13:45:44 freenas GEOM: ada1: corrupt or invalid GPT detected.
Nov 22 13:45:44 freenas GEOM: ada1: GPT rejected -- may not be recoverable.
Nov 22 13:45:44 freenas notifier: dd: /dev/ada1: short write on character device
Nov 22 13:45:44 freenas notifier: dd: /dev/ada1: end of device
Nov 22 13:45:44 freenas notifier: 33+0 records in
Nov 22 13:45:44 freenas notifier: 32+1 records out
Nov 22 13:45:44 freenas notifier: 33644544 bytes transferred in 0.517276 secs (65041827 bytes/sec)
Nov 22 13:45:46 freenas uwsgi: [middleware.exceptions:36] [MiddlewareError: Unable to create the pool: cannot open '/dev/gptid/d1fdd612-ee86-11e8-86f5-bc5ff4457497': No such file or directory, ]
Nov 22 13:45:58 freenas GEOM_MIRROR: Device mirror/swap1 launched (2/2).
Nov 22 13:45:58 freenas GEOM_ELI: Device mirror/swap1.eli created.
Nov 22 13:45:58 freenas GEOM_ELI: Encryption: AES-XTS 128
Nov 22 13:45:58 freenas GEOM_ELI:	 Crypto: software


Ive tried getting rid of the first and last sectors
Code:
dd of=/dev/zero if=/dev/ada1 count=100
dd of=/dev/zero if=/dev/ada1 count=100 seek=39007029067
 
because I read of the drive hanging onto the GPT partitions but that doesn't seem to work. I've tried doing
Code:
gpart destroy -F /dev/ada1
but then I get an error that the device is busy. I've also tried
Code:
swapoff -a
and then all of the above but that also doesn't let me create a new pool with this disk.
 

Chris Moore

Hall of Famer
Joined
May 2, 2015
Messages
10,080
UFS is not supported in modern versions of FreeNAS. It has not been supported for several years. I don't know what you are trying to accomplish with all those commands. Are you trying to destroy your data?
If you want to wipe the disk and create a ZFS pool on it, you do that from the GUI.
 

coneill

Cadet
Joined
Nov 22, 2018
Messages
2
understood that UFS is no longer supported. I used this UFS disk in Freenas9 to do local backups so I wanted to turn it into a ZFS pool in FreeNAS 11 to keep doing local backups to it. When I wasn't able to create the pool at first in the GUI I saw some posts on here with something about old drives from another FreeNAS install keeping information on some sectors of the disk so I figured I'd just wipe the disk so it was clean and then like you said use the GUI to create a new pool and then just rsync all my data back to it. But every step of the way the using GUI generates an error. Last night I let the Wipe -> Full with Zeros command run from the GUI on the disk and still this morning I can't create a pool with it. I keep getting the same error messages every time that I posted above no matter what I try to do to make the disk look "clean" to FreeNAS

If there is any additional information I can provide Id be happy to.
 
Status
Not open for further replies.
Top