From owner-freebsd-fs@FreeBSD.ORG Tue May 20 13:45:34 2014 Return-Path: Delivered-To: freebsd-fs@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 82362385; Tue, 20 May 2014 13:45:34 +0000 (UTC) Received: from smtp1.multiplay.co.uk (smtp1.multiplay.co.uk [85.236.96.35]) by mx1.freebsd.org (Postfix) with ESMTP id 42EBC26F3; Tue, 20 May 2014 13:45:34 +0000 (UTC) Received: by smtp1.multiplay.co.uk (Postfix, from userid 65534) id 40C4520E7088C; Tue, 20 May 2014 13:45:32 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on smtp1.multiplay.co.uk X-Spam-Level: ** X-Spam-Status: No, score=2.0 required=8.0 tests=AWL,BAYES_00,DOS_OE_TO_MX, FSL_HELO_NON_FQDN_1,HELO_NO_DOMAIN,RDNS_DYNAMIC autolearn=no version=3.3.1 Received: from r2d2 (82-69-141-170.dsl.in-addr.zen.co.uk [82.69.141.170]) by smtp1.multiplay.co.uk (Postfix) with ESMTPS id 7E26D20E7088A; Tue, 20 May 2014 13:45:28 +0000 (UTC) Message-ID: <7FB2155517174DB8856518F49301DA34@multiplay.co.uk> From: "Steven Hartland" To: "Michael Jung" References: <1129127016.20140517185154@supranet.net> <1198503903.20140518030907@supranet.net> <236659679.20140518035326@supranet.net> <3E3DCC6DED864A519B02A398B92D1994@multiplay.co.uk> <1879018434.20140519191844@supranet.net> <2dce8d576665e2f89fef4567e54589e4@mail.mikej.com> Subject: Re: ZFS snapshot restore not quite working; missing steps? Date: Tue, 20 May 2014 14:45:20 +0100 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=response Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.5931 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 Cc: freebsd-fs@freebsd.org, owner-freebsd-fs@freebsd.org X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 May 2014 13:45:34 -0000 ----- Original Message ----- From: "Michael Jung" To: "Steven Hartland" Cc: "Jeff Chan" ; ; Sent: Tuesday, May 20, 2014 1:49 PM Subject: Re: ZFS snapshot restore not quite working; missing steps? > On , Steven Hartland wrote: >> ----- Original Message ----- From: "Jeff Chan" >> >> >>> Update: using the most current FreeBSD 9.0 - 9.2 ZFS instructions >>> on the wiki page for the initial configuration caused the booting >>> to ZFS to work: >>> >>> https://wiki.freebsd.org/RootOnZFS/GPTZFSBoot/9.0-RELEASE >>> >>> including the GNOP trick, since these drives are "advanced format" and >>> greater than 2TB size, and the -a 4k alignment to 4k sectors when >>> creating the ZFS partitions. >> >> On later versions you can set vfs.zfs.min_auto_ashift=12 to achieve the >> same thing as the GNOP trick, but thats only needed if your drive >> doesn't >> have a 4k quirk in our codebase. > > Steve, > > FreeBSD firewall 10.0-STABLE FreeBSD 10.0-STABLE #0 r266313: Sat May 17 > 11:52:18 EDT 2014 root@firewall:/usr/obj/usr/src/sys/VT amd64 > > > Even though /boot/loader.conf contains vfs.zfs.min_auto_ashift=12 the > value does not get set. > > [mikej@firewall ~]$ cat /boot/loader.conf > zfs_load="YES" > kern.maxswzone=16777216 > vfs.zfs.min_auto_ashift=12 > [mikej@firewall ~]$ > > > [mikej@firewall ~]$ sysctl -a | grep ashift > vfs.zfs.max_auto_ashift: 13 > vfs.zfs.min_auto_ashift: 9 > [mikej@firewall ~]$ Due to the restrictions in the current tunable / sysctl interface only sysctl's can be proc backed, which is needed for validation of the input values for these values, hence both those values are are sysctl only and not tunables. If you put them in /etc/sysctl.conf instead it will work. Regards Steve