Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 Aug 2014 22:54:55 +0100
From:      Mike Clarke <jmc-freebsd2@milibyte.co.uk>
To:        freebsd-questions@freebsd.org
Subject:   TRIM considerations when repartitioning a SSD
Message-ID:  <3415139.ffIAe6AYm2@curlew.lan>

next in thread | raw e-mail | index | archive | help

FreeBSD 9.3-RELEASE

I may soon need to repartition a SSD which has a zpool on it and was 
wondering what is the best method of ensuring that all blocks get 
marked as no longer in use.

Is gpart sufficiently TRIM aware to be able to just use gpart delete?

If not then I expect I'll need some or all of the following steps in 
order:

     rm -rf <filesystem>
     zfs destroy -r <zfs_filesystem>
     zpool destroy <pool>
     gpart delete -i <index> <geom>

How far down that list would be the best point to start?

-- 
Mike Clarke



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3415139.ffIAe6AYm2>