Re: ZFS LZ4 Upgrade

看板FB_stable作者時間12年前 (2013/06/04 07:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串3/3 (看更多)
-----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----- _______________________________________________ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org"
文章代碼(AID): #1HhITouZ (FB_stable)
文章代碼(AID): #1HhITouZ (FB_stable)