chad.campbell at cummins.com
2010-Mar-02 15:40 UTC
[zfs-discuss] compressed root pool at installation time with flash archive predeployment script
I was trying to think of a way to set compression=on at the beginning of a jumpstart. The only idea I''ve come up with is to do so with a flash archive predeployment script. Has anyone else tried this approach? Thanks, Chad -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.opensolaris.org/pipermail/zfs-discuss/attachments/20100302/1c9807ab/attachment.html>
Richard Elling
2010-Mar-02 16:03 UTC
[zfs-discuss] compressed root pool at installation time with flash archive predeployment script
On Mar 2, 2010, at 7:40 AM, chad.campbell at cummins.com wrote:> I was trying to think of a way to set compression=on at the beginning of a jumpstart. The only idea I''ve come up with is to do so with a flash archive predeployment script. Has anyone else tried this approach?It depends on how you are installing. For JumpStart (with or without flars) you can use a preinstall script. For AI, you can use a preinstall script (are they still called preinstall scripts?) For GUI installers or text-based autoinstallers (OpenSolaris LiveCD or Nexenta) you can just set the parameter in a separate shell after the rpool or syspool is created -- or -- you can use a clever script like Glenn describes here: http://blogs.sun.com/glagasse/entry/howto_enable_zfs_compression_when -- richard ZFS storage and performance consulting at http://www.RichardElling.com ZFS training on deduplication, NexentaStor, and NAS performance http://nexenta-atlanta.eventbrite.com (March 16-18, 2010)
Miles Nordin
2010-Mar-02 20:57 UTC
[zfs-discuss] compressed root pool at installation time with flash archive predeployment script
>>>>> "cc" == chad campbell <chad.campbell at cummins.com> writes:cc> I was trying to think of a way to set compression=on cc> at the beginning of a jumpstart. are you sure grub/ofwboot/whatever can read compressed files? -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 304 bytes Desc: not available URL: <http://mail.opensolaris.org/pipermail/zfs-discuss/attachments/20100302/7d6ed94c/attachment.bin>
Bill Sommerfeld
2010-Mar-02 21:08 UTC
[zfs-discuss] compressed root pool at installation time with flash archive predeployment script
On 03/02/10 12:57, Miles Nordin wrote:>>>>>> "cc" == chad campbell<chad.campbell at cummins.com> writes: > > cc> I was trying to think of a way to set compression=on > cc> at the beginning of a jumpstart. > > are you sure grub/ofwboot/whatever can read compressed files?Grub and the sparc zfs boot blocks can read lzjb-compressed blocks in zfs. I have compression=on (and copies=2) for both sparc and x86 roots; I''m told that grub''s zfs support also knows how to fall back to ditto blocks if the first copy fails to be readable or has a bad checksum. - Bill