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.
Ive tried getting rid of the first and last sectors because I read of the drive hanging onto the GPT partitions but that doesn't seem to work. I've tried doing but then I get an error that the device is busy. I've also tried and then all of the above but that also doesn't let me create a new pool with this disk.
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
Code:
gpart destroy -F /dev/ada1
Code:
swapoff -a