I've got a couple of SSDs that I want to repurpose for ZIL and L2ARC. I want to ensure the previous usage doesn't negatively affect performance. I remember in the past that a secure erase was the only way to restore performance and I haven't found anything to the contrary yet. I investigated doing a secure erase, but my Google-Fu is failing to give me a solid answer beyond yanking the drive and running a Windows utility. In camcontrol() I see
Would
The other thing I'm curious of is 4k alignment on the drives. In my googling I didn't find anything similar to the gnop trick. So would the below be all I needed to ensure 4k alignment?
I appreciate it.
camcontrol sanitize
and camcontrol security
, but the man page didn't inspire confidence that was what I was looking for; I'm not interested in setting a password if it needs to be put in after each reboot. I've also read that newfs -E
may get the job done, but my understanding is it just writes zeros and doesn't activate any kind of garbage collection or do a secure erase.Would
camcontrol security da0 -s Erase -e Erase
do it and is there anything else I need to do to prep the drive?The other thing I'm curious of is 4k alignment on the drives. In my googling I didn't find anything similar to the gnop trick. So would the below be all I needed to ensure 4k alignment?
gpart create -s gpt da0
gpart create -s gpt da1
gpart add -t freebsd-zfs -a 4k -l tanklog-0 -s 200G da0
gpart add -t freebsd-zfs -a 4k -l tankcache-0 -s 200G da1
zpool add tank log tanklog-0
zpool add tank cache cache-0
I appreciate it.