From owner-freebsd-questions@FreeBSD.ORG Wed Jul 24 03:49:51 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 03387524 for ; Wed, 24 Jul 2013 03:49:51 +0000 (UTC) (envelope-from aurfalien@gmail.com) Received: from mail-ob0-x22d.google.com (mail-ob0-x22d.google.com [IPv6:2607:f8b0:4003:c01::22d]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id C23FD26A0 for ; Wed, 24 Jul 2013 03:49:50 +0000 (UTC) Received: by mail-ob0-f173.google.com with SMTP id er7so3373416obc.18 for ; Tue, 23 Jul 2013 20:49:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:mime-version:content-type:from:in-reply-to:date:cc :message-id:references:to:x-mailer; bh=lnbFxKXiL35EZ2S3dFyIHaIsG4R/mCO9eV9sohz6Rp0=; b=Qg0BE2IxQ5wSDore+rWOpp0qu4nmyQJb19Jl6xpy3Ln4zpwIvCp6VclaQ3TNlwFL0V G/nSBqtg3iOAbHau+Qxw3HgkWTDO9ONOjHxcrM06EFDn1qw5JOuLD/NpbmrYrheDS3av N/r1X5lNGXeDbiZ+GZRgLJBaHwa1j7uUmRAvlsEhM05H4Fe1r23zWtz0nh2OqZp+6tsn F86D3SoOBFg2Ll+cbyr1vrBIWUvGitnyAMT0QgNY28FV8Nb9K6u0deHNDGB2Kf6hPBkZ 9+Bba6c6jPovWbEHkRtcB724by6vFAKM4sBumNfOSqJ0K7UU0+GKx3L8su/qDWvanZwl 6qMA== X-Received: by 10.182.87.170 with SMTP id az10mr28607795obb.10.1374637790037; Tue, 23 Jul 2013 20:49:50 -0700 (PDT) Received: from [192.168.1.74] (75-63-29-182.lightspeed.irvnca.sbcglobal.net. [75.63.29.182]) by mx.google.com with ESMTPSA id qa4sm46163020oeb.5.2013.07.23.20.49.47 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 23 Jul 2013 20:49:49 -0700 (PDT) Subject: Re: TRIM and changing mount options Mime-Version: 1.0 (Apple Message framework v1085) From: aurfalien In-Reply-To: <20130724025547.GC82464@dan.emsphone.com> Date: Tue, 23 Jul 2013 20:49:46 -0700 Message-Id: <437A347C-B4E8-4648-ABB4-F8378955F83F@gmail.com> References: <316706C7-F038-4110-BB36-8EDFF9DC6A6B@gmail.com> <20130724025547.GC82464@dan.emsphone.com> To: Dan Nelson X-Mailer: Apple Mail (2.1085) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: FreeBSD Questions X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Jul 2013 03:49:51 -0000 On Jul 23, 2013, at 7:55 PM, Dan Nelson wrote: > In the last episode (Jul 23), aurfalien said: >> I've some what blindly followed a how to on installing FreeBSD 9.1 on = a >> ZFS mirror. >>=20 >> My typing is horrid so I simply ssh'd to a live CD env and pasted = line by >> line as per the how to found here; >>=20 >> = http://wp.strahlert.net/wordpress/zfs-2/installing-freebsd-9-1-using-root-= on-zfs-and-gpt-disks/ >>=20 >> All is well, no issues with replacing disks, testing failures etc... >>=20 >> But seeing that my system drives are SSDs, I thought to perhaps add >> noatime, etc... to avoid slow downs common in excessive SSD usage. >>=20 >> However my fstab is only mounting swap partitions and I have no idea = how >> my file system is being mounted :) >>=20 >> Also, I would like to use tunefs in finding if I have TRIM enabled as = I >> did load it via boot.conf >>=20 >> I kinda feel like I'm willy nilly adding load lines w/o seeing if I >> actually have the TRIM patch installed :) >>=20 >> At any rate, could some one; >>=20 >> a) Explain how I am loading my file system as I'm used to fstab? >> b) How to run tunefs on my zroot >> c) How to determine if I actually have the needed TRIM support in my = kernel >=20 > ZFS automatically opens pools that were previously imported ( this = info is > stored in /boot/zfs/zpool.cache ), and automatically mounts any = filesystems > that have a mountpoint specified, so fstab isn't needed. >=20 > Tunefs is a UFS-only command, Read the man page after sending, sorry for this. I try not to post obvious stuff, meaning ones that you can 'man' :) > so it won't help you here. Most zfs > properties can be set on the fly with the "zfs" command. You can = disable > atime on your ZFS filesytem with "zfs set atime=3Doff zroot". All the > filesystems created in zpool will inherit the value. >=20 > I'm not sure if there's a way to query TRIM status on arbitrary geom > providers, but you can see whether zfs successfully sent any TRIM = requests > by watching the output of "sysctl kstat.zfs.misc.zio_trim". If > .zio_trim.success increments and .unsupported (or .failed) doesn't, = then you > know that it's working. Looks like I don't have it. I keep reading that I must download the patch and make it which is not = an issue. But I can't seem to find it. So I got this; http://blog.multiplay.co.uk/dropzone/freebsd/zfs-trim-patchset83.tbz But I keep reading that I need PJDs zfs patch set in addition. I've been reading this; = http://freebsd.1045724.n5.nabble.com/ZFS-TRIM-support-committed-to-HEAD-td= 5746045.html Do you know how I can pull the source for this? I've dl'd the 9.2 beta in hopes to check its src and see if its there. Looks like all I really need is the current rel. - aurf=