OK, I think I tried what you suggested. Is this something only used in recent
versions:
r...@guajome-dome:~# more /etc/release
OpenSolaris 2009.06 snv_111b X86
Copyright 2009 Sun Microsystems, Inc. All Rights Reserved.
Use is subject to license terms.
Assembled 07 May 2009
r...@guajome-dome:~#
r...@guajome-dome:~# df -h /zfs-ramos/
Filesystem Size Used Avail Use% Mounted on
zfs-ramos 146G 903M 145G 1% /zfs-ramos
r...@guajome-dome:~#
When I tried setting dedupe on the filesystem zfs-ramos, it says missing
dataset name. Isn't zfs-ramos the dataset name?
r...@guajome-dome:~# zfs create -o dedup=on zfs-ramos
cannot create 'zfs-ramos': missing dataset name
r...@guajome-dome:~#
--- On Wed, 6/2/10, Mike Meyer <[email protected]> wrote:
> From: Mike Meyer <[email protected]>
> Subject: Re: [osol-help] Is there dedupe in OpenSolaris ?
> To: "brown wrap" <[email protected]>
> Cc: [email protected]
> Date: Wednesday, June 2, 2010, 1:58 PM
> 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]