enabling dedup on pool or dataset
Added by Geoff Nordli about 1 year ago
I have tried a few ways to enable dedup.
I am running NexentaCore 3.0 (Hardy 8.04/b133+).
When I enable compression, it works, but when I try to enable dedup, it gives me a "cannot set property error"
root@zfs1:/zfspool# zfs set compression=on zfspool/lucid root@zfs1:/zfspool# zfs set dedup=on zfspool/lucid cannot set property for 'zfspool/lucid': dataset does not exist
Am I missing something?
thanks,
Geoff
Replies
RE: enabling dedup on pool or dataset - Added by Anil Gulecha about 1 year ago
Does zfspool/lucid exist?
If yes, is this a fresh install? It could be that the disk is setup using a previous version of zfs.. and dedup property may not be available.
~Anil
RE: enabling dedup on pool or dataset - Added by Geoff Nordli about 1 year ago
Hi Anil.
Yes, the dataset exists, and I was able to set the compression on it.
I can also view the properties on the dataset to see that compression did get turned on.
This isn't a new install, so you are right, maybe I need to update the zfs file system. I wasn't sure about this part. Will version 4 work with dedup?
root@zfs1:/zfspool# zfs upgrade This system is currently running ZFS filesystem version 4. All filesystems are formatted with the current version.
thanks,
Geoff
RE: enabling dedup on pool or dataset - Added by Geoff Nordli about 1 year ago
You are right, I needed to upgrade
root@zfs1:/zfspool# zpool upgrade zfspool This system is currently running ZFS pool version 22. Successfully upgraded 'zfspool' from version 18 to version 22 root@zfs1:/zfspool# zfs set dedup=on zfspool/lucid
thanks for your guidance.
Geoff