Cant Write to HDD after failed pool creation

Status
Not open for further replies.

francomartin33

Dabbler
Joined
Aug 23, 2018
Messages
16
Hello! Today I was building a virtualized freenas using vmware and pcie passthru. Everything was going ok until I mistakenly canceled the pool creation. Its a 2tb mirror (2x 2TB).
What I tried:
dd if=/dev/zero of=/dev/theDrive bs=512 count=2 ------> dd: /dev/ada0: Operation not permitted
swapoff ada0 ---->didnt help
gpart destroy -F ada0--------->gpart: Device busy

sg_format ada0 -----> inquiry: transport: (pass1:siisch0:0:0:0): INQUIRY. CDB: 12 00 00 00 24 00
(pass1:siisch0:0:0:0): CAM status: CCB request was invalid

gpart show ----------->
=> 40 3907029088 ada0 GPT (1.8T)
40 88 - free - (44K)
128 4194304 1 freebsd-swap (2.0G)
4194432 3902834688 2 freebsd-zfs (1.8T)
3907029120 8 - free - (4.0K)

I even tried reinstalling freenas to rule out OS problems.

The sg_format caught my attention but I cant find nothing relevant. The drives worked and now I cant use the drive.
Im open to suggestions, it has no data and its a lab so we can do whatever we want.
 

leenux_tux

Patron
Joined
Sep 3, 2011
Messages
238
Might be worth connecting the drive to another system and trying a format from there ? Doesn't matter what OS, Linux, Windows, FreeBSD just another system where the drive isn't "known" to it ?

Sent from my A0001 using Tapatalk
 
Status
Not open for further replies.
Top