From owner-freebsd-stable@FreeBSD.ORG Wed Apr 1 14:40:59 2015 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 50A49E2 for ; Wed, 1 Apr 2015 14:40:59 +0000 (UTC) Received: from a27-83.smtp-out.us-west-2.amazonses.com (a27-83.smtp-out.us-west-2.amazonses.com [54.240.27.83]) (using TLSv1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 2490382D for ; Wed, 1 Apr 2015 14:40:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=7v7vs6w47njt4pimodk5mmttbegzsi6n; d=amazonses.com; t=1427898658; h=Content-Type:MIME-Version:From:To:CC:Subject:Date:Message-ID:Reply-To:Feedback-ID; bh=BMPEE4O+lyhIpsXSjn224MZWxWsiK68a3gl9vBZ86Kg=; b=ima5dsgDNQoCqGKsYclpY9pgB3iURp3daMRlZ2BvwHLgemDvqppXoMAdhbU/hlzu VZUSF3haQ2Zg2a2A6uAHSoc6GBRwSy9sQ0xCNzsca1b3Es+4t/zzKX0YQhL8q/RrKu0 +1EvwjNOc8KuZ25oi37CRa4Gfvy2A4BqSVi37c7M= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=rmhucqoopiqyt3zo5rxb2jz6js3iyytt; d=dropboxmail.com; t=1427898658; h=Content-Type:MIME-Version:From:To:CC:Subject:Date:Message-ID:Reply-To; bh=BMPEE4O+lyhIpsXSjn224MZWxWsiK68a3gl9vBZ86Kg=; b=TJNoJlBANRTlQ/s42HrSCcLRRslzeQEH5nS48rx/BRC+7DUOfzEnrVBkTrdu6H8O LHrMZdMVRgcOw0eJjbhKiD6y/ck5yzDZLZSe5YC0HqmI6AsbXN9rk7BwxCXZkunXPLQ iIPYQf6cAFO7SE21cLB+WxtoPWLKETBGrMDBLRno= MIME-Version: 1.0 From: Dropbox To: freebsd-stable@freebsd.org CC: Subject: =?utf-8?q?Daniel_Kelles_invited_you_to_check_out_Dropbox?= Date: Wed, 1 Apr 2015 14:30:58 +0000 Message-ID: <0000014c75646ecb-0a3e6c29-2feb-41ae-a483-ce9876cd2782-000000@us-west-2.amazonses.com> X-Dropbox-Message-ID: 4886332085932501467 Reply-To: siteouro@siteouro.com.br X-SES-Outgoing: 2015.04.01-54.240.27.83 Feedback-ID: 1.us-west-2.QMExmXOQO+hfAVykUZJjA9h63TUIipok4C8L+okvtbc=:AmazonSES Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Apr 2015 14:40:59 -0000 Hi there, Daniel Kelles wants you to try Dropbox! Dropbox lets you bring all your pho= tos, docs and videos with you anywhere and share them easily. Get started here. https://www.dropbox.com/l/s6jN8bqyJT9Q0CzL3huhhr?text=3D1 Thanks! - The Dropbox Team ____________________________________________________ To stop receiving invites from Dropbox, please go to https://www.dropbox.co= m/l/19oo1DfxJGE4l8upN3sduj?text=3D1 Dropbox, Inc., PO Box 77767, San Francisco, CA 94107 From owner-freebsd-stable@FreeBSD.ORG Wed Apr 1 21:44:46 2015 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 12F948B2 for ; Wed, 1 Apr 2015 21:44:46 +0000 (UTC) Received: from mail.netplex.net (mail.netplex.net [204.213.176.9]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.netplex.net", Issuer "RapidSSL SHA256 CA - G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id CA74CE98 for ; Wed, 1 Apr 2015 21:44:45 +0000 (UTC) Received: from sea.ntplx.net (sea.ntplx.net [204.213.176.11]) by mail.netplex.net (8.15.1/8.15.1/NETPLEX) with ESMTP id t31LifMk044485; Wed, 1 Apr 2015 17:44:43 -0400 X-Virus-Scanned: by AMaViS and Clam AntiVirus (mail.netplex.net) X-Greylist: Message whitelisted by DRAC access database, not delayed by milter-greylist-4.4.3 (mail.netplex.net [204.213.176.9]); Wed, 01 Apr 2015 17:44:43 -0400 (EDT) Date: Wed, 1 Apr 2015 17:44:41 -0400 (EDT) From: Daniel Eischen X-X-Sender: eischen@sea.ntplx.net Reply-To: Daniel Eischen To: Peter Wemm Subject: Re: Trying to clone a ZFS drive, can't get ashift=12 In-Reply-To: <2588497.o59NqK340E@overcee.wemm.org> Message-ID: References: <2588497.o59NqK340E@overcee.wemm.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-stable@freebsd.org X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Apr 2015 21:44:46 -0000 On Tue, 31 Mar 2015, Peter Wemm wrote: > On Wednesday, April 01, 2015 12:30:46 AM Daniel Eischen wrote: >> I have an Oracle (nee Sun) X4-2 server with identical 300GB SAS >> drives. I did an MBR ZFS install from FreeBSD 10.1-RELEASE CD >> and have it updated to p6: > [..] >> # zpool create -o cachefile=/tmp/newpool.cache bootpoolNew label/boot0 >> # zdb -U /tmp/newpool.cache | grep ashift >> ashift: 9 >> >> What gives? How do I get it to use 4k? > > Before creating the pool, try: > # sysctl vfs.zfs.min_auto_ashift=12 Thanks, and to Dmitri also. This seemed to do the trick. It is interesting that the default in the 10.1-RELEASE CD doesn't match the actual OS that is installed. > But watch your alignment of the MBR slices/partitions. I think you'll find it > easier to manage with gpt for a data disk, eg: > > # gpart create -s gpt da1 > # gpart add -t freebsd-zfs -a 4k da1 > combine that with the sysctl above you should have everything on 4k. > > Setting -a just sets the rounding for the start/end sectors, it doesn't affect > zfs when its sizing the sector size internally. > > btw; for a 300G drive you might not want 4k - this changes the base allocation > size to be 8 times larger. You might find your space efficiency less than ideal > if you have a lot of tiny files. The server is a web server and poudriere package builder, with some postgres and mysql databases as backends for the web services. We don't anticipate user data or home/project directories. My first ZFS install was Solaris 11, which recommended (mandated?) that rpool be from a slice not an entire disk, and boot from an SMI (VTOC) disk. So I followed the same convention when installing FreeBSD. -- DE