From owner-freebsd-questions@FreeBSD.ORG Mon Sep 8 21:25:48 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 41372EB5 for ; Mon, 8 Sep 2014 21:25:48 +0000 (UTC) Received: from mail-wg0-x22b.google.com (mail-wg0-x22b.google.com [IPv6:2a00:1450:400c:c00::22b]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id CB9EB1EC2 for ; Mon, 8 Sep 2014 21:25:47 +0000 (UTC) Received: by mail-wg0-f43.google.com with SMTP id x12so2867517wgg.2 for ; Mon, 08 Sep 2014 14:25:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=date:from:to:subject:message-id:in-reply-to:references:mime-version :content-type:content-transfer-encoding; bh=Rn8gZd5Uh98abYj5vrF20IBB/PLgalbtSGnsRcgjaYo=; b=WO++SHIFfFPHK8R9ccUVKH4D53Db8vGdTsrE3r+tVchRbEQdZdBhPjvRVYzTSVsVJA XMhq67HjchAJ7Hs+tXABfGJV6Iz+GxuZolA7WxSGSW/1/y4vu23p9NhF0WigrIEpkoCY BrvDO1sHoS2h2ZrI4uBLOcfCH3TkI1cz/B5zuDHA3EVHXGyjkpQOr/sU3IVmLqSfzQC/ w46/SdGBvtWYZVN8a9zbzl1UlicK5djHPPidop75xaIXAsdf9AUVPTdLQmawwqDQIYS1 prax6nSmBk56LUAZKB3j+RegORVln8uP14jkK41To4Z9iVVuaYDH5JBDt8BPXLlZzIjf pHow== X-Received: by 10.194.23.8 with SMTP id i8mr6949859wjf.104.1410211545728; Mon, 08 Sep 2014 14:25:45 -0700 (PDT) Received: from gumby.homeunix.com (2e40c581.skybroadband.com. [46.64.197.129]) by mx.google.com with ESMTPSA id eh3sm13105304wic.4.2014.09.08.14.25.44 for (version=SSLv3 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 08 Sep 2014 14:25:44 -0700 (PDT) Date: Mon, 8 Sep 2014 22:25:43 +0100 From: RW To: freebsd-questions@freebsd.org Subject: Re: TRIM considerations when repartitioning a SSD Message-ID: <20140908222543.78ce723a@gumby.homeunix.com> In-Reply-To: <3289227.doeQfn2zmQ@curlew.lan> References: <3415139.ffIAe6AYm2@curlew.lan> <3289227.doeQfn2zmQ@curlew.lan> X-Mailer: Claws Mail 3.10.1 (GTK+ 2.24.22; amd64-portbld-freebsd10.0) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Sep 2014 21:25:48 -0000 On Mon, 08 Sep 2014 15:08:26 +0100 Mike Clarke wrote: > On Thursday 28 Aug 2014 17:24:04 Adam Vande More wrote: > > On Thu, Aug 28, 2014 at 4:54 PM, Mike Clarke > > > > wrote: > > > 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? > > Extremely doubtful that it is. You generally must reset the drive > > eg > > > > camcontrol security da4 -s buhbyesweetdata -e buhbyesweetdata > > I've tried this but it failed newfs -tE will trim the free space on the UFS filesystem it creates. Even if you don't want UFS, you could run it on the raw drive, the difference is most likely negligible.