Date: Mon, 03 Jun 2013 16:12:40 -0700 From: Xin Li <delphij@delphij.net> To: freebsd-stable@freebsd.org Subject: Re: ZFS LZ4 Upgrade Message-ID: <51AD22E8.8000600@delphij.net> In-Reply-To: <20130603185200.5BB956F487@smtp.hushmail.com> References: <20130603185200.5BB956F487@smtp.hushmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 On 06/03/13 11:52, 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: > > - 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. > > 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 This should work, you don't have to have the pool created on a -STABLE system and can always do 'zpool upgrade' when necessary. Please note that if you want to upgrade the root pool, make sure that you have a fresh bootblock before rebooting ("zpool upgrade" should give you a reminder). The FreeBSD ZFS boot code supports booting from LZ4 compressed datasets. I would recommend using a dedicated root pool by the way, it have a lot of advantages, like you can use a separate ZIL device for the non-root pool, etc. and have the flexibility of using different RAID-Z layout for different purpose (e.g. mirror for boot pool and RAID-Z for the rest), so your remote hands would be able to just remove one disk and your system is bootable, in the case when the first disk's boot partition is physically damaged. Cheers, - -- Xin LI <delphij@delphij.net> https://www.delphij.net/ FreeBSD - The Power to Serve! Live free or die -----BEGIN PGP SIGNATURE----- iQEcBAEBCgAGBQJRrSLoAAoJEG80Jeu8UPuzLW8IAMRJJHloskYlrikKGw/Iao8A jlifL2sDpnztgqhGtfltXOIyfKJL7EDw8s8ccJq8Xy1vKy2pndOgCc7GRfuvYS64 07kGrEKQKAv0BcrD6uddtMFstDdrI7cnK3btyAavNJhXR/b2A8f8/jze13mPpdUJ DS2PBJ0rwmHqU7VXxkCq/M8atZGT7pq2ednPcHXX3QaqPmpopUtX89x6D99S39U7 a1UKN2Ic78CAc5R01I80y6II85yBylwIlT5lRPE/SVYbtBFsidhQQ8/Hx/Fcz3qI 7ceK6CiAoQy7ntBvE+uBbQ2630Z3m6kOmInFJD/DnQnf1n6twmBxqwsFTjITbHw= =pCl7 -----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?51AD22E8.8000600>