From owner-freebsd-fs@FreeBSD.ORG Mon Jun 3 19:24:58 2013 Return-Path: Delivered-To: freebsd-fs@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 B1E92CF1; Mon, 3 Jun 2013 19:24:58 +0000 (UTC) (envelope-from lists@jnielsen.net) Received: from ns1.jnielsen.net (secure.freebsdsolutions.net [69.55.234.48]) by mx1.freebsd.org (Postfix) with ESMTP id 99BB91154; Mon, 3 Jun 2013 19:24:58 +0000 (UTC) Received: from [10.10.1.32] (office.betterlinux.com [199.58.199.60]) (authenticated bits=0) by ns1.jnielsen.net (8.14.4/8.14.4) with ESMTP id r53J7oNX086079 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NOT); Mon, 3 Jun 2013 15:07:50 -0400 (EDT) (envelope-from lists@jnielsen.net) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 6.3 \(1503\)) Subject: Re: ZFS LZ4 Upgrade From: John Nielsen In-Reply-To: <20130603185200.5BB956F487@smtp.hushmail.com> Date: Mon, 3 Jun 2013 13:07:52 -0600 Content-Transfer-Encoding: quoted-printable Message-Id: References: <20130603185200.5BB956F487@smtp.hushmail.com> To: Kenta Suzumoto X-Mailer: Apple Mail (2.1503) X-DCC-sonic.net-Metrics: ns1.jnielsen.net 1156; Body=3 Fuz1=3 Fuz2=3 X-Virus-Scanned: clamav-milter 0.97.5 at ns1.jnielsen.net X-Virus-Status: Clean Cc: freebsd-fs@freebsd.org, freebsd-stable@freebsd.org X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Jun 2013 19:24:58 -0000 On Jun 3, 2013, at 12:52 PM, Kenta Suzumoto wrote: > Hi. I'm planning on doing a ZFS root installation on a remote server = very soon. The company only offers a 9.0 and 9.1 installation and = "rescue" (nfs/pxe boot with ramdisk basically) system. I'd like to use = LZ4 with the ZFS root pool, so I'm going to be upgrading to -STABLE once = I have the initial system installed. Here's what I'll do: >=20 > - install the 9.1 system > - svn source, buildworld/kernel, install, reboot > - upon booting the -STABLE system, begin enabling LZ4 compression on = /usr/ports /usr/src etc. >=20 > Will this work, or do I need to find some way to initially create the = zpool with a -STABLE system? Is it just a matter of running "zfs = upgrade" and "zpool upgrade" before enabling LZ4, or am I missing = something? Thanks That should work. Just keep in mind that blocks written before you = enable compression won't be compressed. So you may want to create a = _new_ ZFS for src (and ports if it already exists as well) after your = source upgrade, then copy the contents of /usr/src over to it. (Then = update the mountpoints as desired, etc.) JN