Bill Sommerfeld wrote:
> On Thu, 2008-06-05 at 23:04 +0300, Cyril Plisko wrote:
>   
>> 1. Are there any reasons to *not* enable compression by default ?
>>     
>
> Not exactly an answer:
>
> Most of the systems I'm running today on ZFS root have compression=on
> and copies=2 for rpool/ROOT 
>   

I've been experimenting with this, too, and will likely settle
on the same: copies=2, compression=on

IIRC, grub ZFS does lzjb, but not gzip

>> 2. How can I do it ? (I think I can run "zfs set compression=on
>> rpool/ROOT/snv_90" in the other window, right after the installation
>> begins, but I would like less hacky way.)
>>     
>
> what I did was to migrate via live upgrade, creating the pool and the
> pool/ROOT filesystem myself, tweaking both  copies and compression on
> pool/ROOT before using lucreate.
>
> I haven't tried this on a fresh install yet.
>   

Two ways to do this from DVD/LiveCD:
    1. change the parameters after the rpool is created, but before packages
       are being installed. This can be a little tricky to get the 
timing right,
       especially for OpenSolaris -- it is easier with SXCE because 
there is a
       fair amount of time required to build the dump and swap volumes prior
       to building the root file system.  Anyway, I just open a terminal
       window and type the appropriate zfs commands.

    2. replace /sbin/zpool with a script that does what you want prior to
       beginning the installation -- ugly but possible.

JumpStart may allow you more flexibility, if you do JumpStarts you
should check the docs to see if there is an easier way.
 -- richard

_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to