On Wed, 2 Jun 2010 13:46:31 -0700 (PDT)
brown wrap <[email protected]> wrote:

> 
> I have a ZFS filesystem called zfs-ramos. I'd like to set up dedupe on it, 
> with only one directory being deduped. The directory is gcr or /zfs-ramos/gcr.

You can't dedup only part of a file system.

> I thought the proper syntax was:
> 
>  zfs set dedup=on zfs-ramos/gcr

It is, providing zfs-ramos/gcr is a dataset.

> But I get the error, "cannot open 'zfs-ramos/gcr': dataset does not exist"
> 
> Is there some initial setup to run dedupe? And what is a 'dataset' in zfs 
> terms?

A zfs dataset is a zfs file system, volume or snapshot. You can only
set properties on datasets. If you want to change the property of a
subdirectory on a file system, you need to create a new file system on
that subdirectory. Fortunately, zfs file systems are cheap.

If zfs-ramos is a pool, and zfs-ramos does not exist as a directory
(mv it if it does), the syntax is:

    zfs create -o dedup=on zfs-ramos/gcr

That will create zfs-ramos/gcr as a file system, mounted on
zfs-ramos/gcr, inheriting all properties but dedup from
zfs-ramos. dedup will be set to on. If you moved the old directory out
of the way, copy it's contents back to the new file system.

    <mike
-- 
Mike Meyer <[email protected]>             http://www.mired.org/consulting.html
Independent Network/Unix/Perforce consultant, email for more information.

O< ascii ribbon campaign - stop html mail - www.asciiribbon.org
_______________________________________________
opensolaris-help mailing list
[email protected]

Reply via email to