David Dyer-Bennet
Patron
- Joined
- Jul 13, 2013
- Messages
- 286
Using another system (Windows 10 diskpart "clean" command) on the three new disks I wanted to use in a new pool (along with some old disks from an old pool I destroyed) worked.
That won't have cleaned all the blocks that need to be cleaned for ZFS, but happy to hear that it worked for you.Using another system (Windows 10 diskpart "clean" command) on the three new disks I wanted to use in a new pool (along with some old disks from an old pool I destroyed) worked.
The dd command seemed to be working on partition 2 of the disk... seems a little strange to me that in wiping a whole disk, you would bother to wipe the partitions first,
Detaching them does not automatically wipe them, you have to select 'Mark as new' to wipe the disks.
Anyways, as they are blank, try running the following:
sysctl kern.geom.debugflags=0x10
This will let you run the next set of commands as it removes the safeties on freenas where it wants to protect your disks, be very careful after this. It is not persistent and will be reset once you reboot the system.
dd if=/dev/zero of=/dev/ada2 bs=1m count=1
This should zero out the beginning of the disk
dd if=/dev/zero of=/dev/ada2 bs=1m oseek=`diskinfo ada2 | awk '{print int($3 / (1024*1024)) - 4;}'`
This should zero out the end of the disk. Replaced the 'ada2' with any other other drives then you can try gpart again.
I recommend rebooting after zeroing out the beginning and end of the disks just to swap that debugflag back off.
Detaching them does not automatically wipe them, you have to select 'Mark as new' to wipe the disks.
Anyways, as they are blank, try running the following:
sysctl kern.geom.debugflags=0x10
This will let you run the next set of commands as it removes the safeties on freenas where it wants to protect your disks, be very careful after this. It is not persistent and will be reset once you reboot the system.
dd if=/dev/zero of=/dev/ada2 bs=1m count=1
This should zero out the beginning of the disk
dd if=/dev/zero of=/dev/ada2 bs=1m oseek=`diskinfo ada2 | awk '{print int($3 / (1024*1024)) - 4;}'`
This should zero out the end of the disk. Replaced the 'ada2' with any other other drives then you can try gpart again.
I recommend rebooting after zeroing out the beginning and end of the disks just to swap that debugflag back off.
zpool status
zpool destroy tank
Detaching them does not automatically wipe them, you have to select 'Mark as new' to wipe the disks.
Anyways, as they are blank, try running the following:
sysctl kern.geom.debugflags=0x10
This will let you run the next set of commands as it removes the safeties on freenas where it wants to protect your disks, be very careful after this. It is not persistent and will be reset once you reboot the system.
dd if=/dev/zero of=/dev/ada2 bs=1m count=1
This should zero out the beginning of the disk
dd if=/dev/zero of=/dev/ada2 bs=1m oseek=`diskinfo ada2 | awk '{print int($3 / (1024*1024)) - 4;}'`
This should zero out the end of the disk. Replaced the 'ada2' with any other other drives then you can try gpart again.
I recommend rebooting after zeroing out the beginning and end of the disks just to swap that debugflag back off.
sg_format --format --size=512 -6 -v -e -v /dev/da0
sg_turs /dev/da0