How to "reset" a HDD which has the ZFS Datasystem

Nowo

Cadet
Joined
Mar 27, 2019
Messages
4
Hello,
I want to remove a disk from my FreeNAS Server and use the disk at an other place. My problem is that zfs is the datasystem from the disk, but I want to use an other. So I want to know, how to reset the disk into the original format.
I read, that I can use
Code:
zfs destroy
to reset the disk, is that right or what I have to do?
Thank you :D
 

Mr. Slumber

Contributor
Joined
Mar 10, 2019
Messages
182
You've got lots of possibilities to solve this. E.g. create a live Ubuntu boot stick, boot your FreeNAS box with it and format your HDD using Ubuntu. Some hints given here.
 

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,504
zfs destroy
Not the right answer. zpool labelclear will do the job, or just delete the partition table with any tool that understands GPT partition tables.
 

jgreco

Resident Grinch
Joined
May 29, 2011
Messages
18,680
Pretty much any disk partitioning tool. If you put the HDD into a new system with no other disks, DBAN is a good tool to clear the disk. If you are going to be using the disk yourself, you can use it in "zero only" mode to clear the disk.
 
Top