Difference between revisions of "ZFS deduplication"
Jump to navigation
Jump to search
↑ https://wiki.ubuntu.com/ZFS
(Created page with " <code>zfs set dedup=on POOL_NAME/FS_NAME</code> == See also == * {{ZFS}}") |
|||
(22 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
+ | * Automatic deduplication and compression of data, selectable per volume or filesystem according to administrator policy<ref>https://wiki.ubuntu.com/ZFS</ref> | ||
+ | <code>zfs set dedup=on POOL_NAME/FS_NAME</code> | ||
+ | |||
+ | * <code>[[zpool list]]</code> | ||
+ | * <code>[[zpool list]] POOL_NAME</code> | ||
+ | |||
+ | Before activating deduplication: | ||
+ | <pre> | ||
+ | zpool list ZPOOL_NAME | ||
+ | NAME SIZE ALLOC FREE EXPANDSZ FRAG CAP DEDUP HEALTH ALTROOT | ||
+ | ZPOOL_NAME 7.25T 163G 7.09T - 0% 2% 1.00x ONLINE - | ||
+ | </pre> | ||
+ | |||
+ | After activating dedupration: DEDUP 1.05x | ||
+ | zpool list | ||
+ | NAME SIZE ALLOC FREE EXPANDSZ FRAG CAP DEDUP HEALTH ALTROOT | ||
+ | ZPOOL_NAME 7.25T 105G 7.15T - 0% 1% 1.05x ONLINE - | ||
+ | |||
+ | <code>zpool get dedupratio</code> | ||
+ | zpool get dedupratio | ||
+ | NAME PROPERTY VALUE SOURCE | ||
+ | YOUR_POOL dedupratio 1.33x - | ||
+ | |||
+ | |||
+ | zpool get all ZPOOL_NAME | grep dedup | ||
+ | zfs get all | grep dedup | ||
+ | |||
+ | |||
+ | |||
+ | [[zpool status]] -D ZPOOL_NAME | ||
+ | pool: ZPOOL_NAME | ||
+ | state: ONLINE | ||
+ | scan: none requested | ||
+ | config: | ||
+ | |||
+ | NAME STATE READ WRITE CKSUM | ||
+ | ZPOOL_NAME ONLINE 0 0 0 | ||
+ | sdc ONLINE 0 0 0 | ||
+ | |||
+ | errors: No known data errors | ||
+ | |||
+ | dedup: DDT entries 259792, size 437B on disk, 141B in core | ||
+ | |||
+ | bucket allocated referenced | ||
+ | ______ ______________________________ ______________________________ | ||
+ | refcnt blocks LSIZE PSIZE DSIZE blocks LSIZE PSIZE DSIZE | ||
+ | ------ ------ ----- ----- ----- ------ ----- ----- ----- | ||
+ | 1 251K 31.4G 31.4G 31.4G 251K 31.4G 31.4G 31.4G | ||
+ | 4 2.54K 325M 325M 325M 17.8K 2.22G 2.22G 2.22G | ||
+ | Total 254K 31.7G 31.7G 31.7G 269K 33.6G 33.6G 33.6G | ||
− | <code>zfs | + | Ref: https://unix.stackexchange.com/questions/438955/zfs-deduplication-does-not-work |
+ | |||
+ | |||
+ | == Related terms == | ||
+ | * <code>[[zfs snapshot]]</code> | ||
== See also == | == See also == | ||
* {{ZFS}} | * {{ZFS}} | ||
+ | * {{deduplication}} | ||
+ | * {{Storage}} | ||
+ | |||
+ | [[Category:ZFS]] |
Latest revision as of 15:29, 29 September 2020
- Automatic deduplication and compression of data, selectable per volume or filesystem according to administrator policy[1]
zfs set dedup=on POOL_NAME/FS_NAME
zpool list
zpool list POOL_NAME
Before activating deduplication:
zpool list ZPOOL_NAME NAME SIZE ALLOC FREE EXPANDSZ FRAG CAP DEDUP HEALTH ALTROOT ZPOOL_NAME 7.25T 163G 7.09T - 0% 2% 1.00x ONLINE -
After activating dedupration: DEDUP 1.05x
zpool list NAME SIZE ALLOC FREE EXPANDSZ FRAG CAP DEDUP HEALTH ALTROOT ZPOOL_NAME 7.25T 105G 7.15T - 0% 1% 1.05x ONLINE -
zpool get dedupratio
zpool get dedupratio NAME PROPERTY VALUE SOURCE YOUR_POOL dedupratio 1.33x -
zpool get all ZPOOL_NAME | grep dedup zfs get all | grep dedup
zpool status -D ZPOOL_NAME pool: ZPOOL_NAME state: ONLINE scan: none requested config: NAME STATE READ WRITE CKSUM ZPOOL_NAME ONLINE 0 0 0 sdc ONLINE 0 0 0 errors: No known data errors dedup: DDT entries 259792, size 437B on disk, 141B in core bucket allocated referenced ______ ______________________________ ______________________________ refcnt blocks LSIZE PSIZE DSIZE blocks LSIZE PSIZE DSIZE ------ ------ ----- ----- ----- ------ ----- ----- ----- 1 251K 31.4G 31.4G 31.4G 251K 31.4G 31.4G 31.4G 4 2.54K 325M 325M 325M 17.8K 2.22G 2.22G 2.22G Total 254K 31.7G 31.7G 31.7G 269K 33.6G 33.6G 33.6G
Ref: https://unix.stackexchange.com/questions/438955/zfs-deduplication-does-not-work
Related terms[edit]
See also[edit]
- ZFS: ZFS deduplication,
ZFS snapshot
,zfs list
,zpool status
,zpool create
,zfs create, zfs get all, zfs set, zfs mount, zfs umount, zfs rollback
- Deduplication, ZFS deduplication
- Storage: Fibre Channel, Disk arrays, Disk array shelves, Disk array controller, CD-ROM, DVD, Tape library, LTO, HDD, SSD, SCSI, iSCSI, SAS, SATA, SEDs, OPAL, Magnetic storage, WORM
Advertising: