On Mon, 23 Apr 2007, Eric Schrock wrote:

> On Mon, Apr 23, 2007 at 11:48:53AM -0700, Lyle Merdan wrote:
> > So If I send a snapshot of a filesystem to a receive command like this:
> > zfs send tank/[EMAIL PROTECTED] | zfs receive backup/jump
> >
> > In order to get compression turned on, am I correct in my thought that
> > I need to start the send/receive and then in a separate window set the
> > compression property?
>
> Yes.  For doing this automatically, you want:

OK, I guess this is a 'depends on what you want' kind of question.  If you
want the receiving filesystem to automatically inherit the properties of
the sent snapshot, then, as Eric said, that's being worked on.  But if
you're just interested in compression (or any other inheritible property),
then you can set it on the filesystem above the one you're receiving into,
and it will be set when the receive filesystem is created.

If you don't want to set it on the whole 'backup' pool, you could create
an intermediate filesystem.

# zfs get compression backup
NAME    PROPERTY     VALUE     SOURCE
backup  compression  off       default
# zfs create -o compression=on backup/compressed
# zfs get compression backup/compressed
NAME               PROPERTY     VALUE              SOURCE
backup/compressed  compression  on                 local
# zfs send tank/[EMAIL PROTECTED] | zfs receive backup/compressed/jump
# zfs get -r compression backup
NAME                      PROPERTY     VALUE                     SOURCE
backup                    compression  off                       default
backup/compressed         compression  on                        local
backup/compressed/jump    compression  on                        inherited from 
backup/compressed
backup/compressed/[EMAIL PROTECTED]  compression  -                         -
#

That way you could store both compressed and uncompressed datasets in the
same pool.


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

Reply via email to