From owner-freebsd-questions@FreeBSD.ORG Thu Aug 28 22:24:04 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 E73DA861 for ; Thu, 28 Aug 2014 22:24:04 +0000 (UTC) Received: from mail-pa0-x22b.google.com (mail-pa0-x22b.google.com [IPv6:2607:f8b0:400e:c03::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 BEB3D1A5E for ; Thu, 28 Aug 2014 22:24:04 +0000 (UTC) Received: by mail-pa0-f43.google.com with SMTP id et14so4317150pad.30 for ; Thu, 28 Aug 2014 15:24:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=BPdXrCc06TBFHwfX1fp+ph17+ZtJq8kM9kWEwtn15Ck=; b=fxzw/IwVBLDB90joqZuNe3Vr55D3/S4sFVcTO2Y+GqqljinvKtZMRCwaEVUczz7LGy bpTfi80X1OGQ0/B79OREh1NEapmB2uLpbEhK4Vo/euqDMWsJ+hNImJbe/JOkN3MSmlh8 /Z8+itIlQn/lKHPvXRzDb6bpdmnxO3RfZNlKn2Zn+9n7X4eCYL3p4vLG8EVy/dGLXxN5 xCB9SgACqj5L888vSZLV5m+HmEK5fqMgphgB5us7DHoW4hWCQ//wuFAuWIP5K/c0YG92 uMopV/CZ6ZIr9v6z5EzJnOot9vUHKur3fYCetRPBbMenGbSNAK3Ac2US0MoqLGb11d5i DzzQ== MIME-Version: 1.0 X-Received: by 10.70.10.100 with SMTP id h4mr10385032pdb.162.1409264644365; Thu, 28 Aug 2014 15:24:04 -0700 (PDT) Received: by 10.70.118.132 with HTTP; Thu, 28 Aug 2014 15:24:04 -0700 (PDT) In-Reply-To: <3415139.ffIAe6AYm2@curlew.lan> References: <3415139.ffIAe6AYm2@curlew.lan> Date: Thu, 28 Aug 2014 17:24:04 -0500 Message-ID: Subject: Re: TRIM considerations when repartitioning a SSD From: Adam Vande More To: Mike Clarke Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 Cc: FreeBSD Questions 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: Thu, 28 Aug 2014 22:24:05 -0000 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 -- Adam