« SVT-ECO | Main

My ZFS Deduplication Notebook Backup

As soon as I had the time I tried immediately deduplication with ZFS, so I got the Opensolaris built  128a from the develop repository and with my notebook I did an interesting test .

Of course I started from the  Jeff Bonwick's Blog

I used an external USB hard disk ( 80 GB) , create a new pool "usbdrive" and zfs filesistem "backup" with dedup enabled .

root@ghost:~# zpool create usbdrive c6t0d0p0

root@ghost:~# zfs create usbdrive/backup

root@ghost:~# zfs set dedup=on usbdrive/backup

Then I copied the contents of  data partition (16.073 items, totaling 26.6 GB) for 4 times on the new file system into 4 directory  with some  minor modifications ....

Here are the results.

root@ghost:~# df -k
Filesystem           1K-blocks      Used Available Use% Mounted on
rpool/ROOT/Built-128-dedup-1
                      61922974  49032482  12890492  80% /
swap                    914596       388    914208   1% /etc/svc/volatile   
/usr/lib/libc/libc_hwcap1.so.1
                      61922974  49032482  12890492  80% /lib/libc.so.1
swap                    914220        12    914208   1% /tmp
swap                    914264        56    914208   1% /var/run
/dev/dsk/c4t0d0p0:c   30701264  28692976   2008288  94% /Workspace
rpool/export          25982046  13091555  12890492  51% /export
rpool/export/compress
                      13411628    521137  12890492   4% /export/compress
rpool/export/home     12890513        21  12890492   1% /export/home
rpool/export/home/giacomo
                      13012255    121763  12890492   1% /export/home/giacomo
rpool/export/zones    12890512        20  12890492   1% /export/zones
rpool                 12890568        77  12890492   1% /rpool
usbdrive              47858295        23  47858272   1% /usbdrive
usbdrive/backup      164127285 116269013  47858272  71% /usbdrive/backup

root@ghost:~# ls /usbdrive/backup
Backup-1  Backup-2  Backup-3  Backup4
 
root@ghost:~# zfs get all usbdrive/backup
NAME             PROPERTY              VALUE                  SOURCE
usbdrive/backup  type                  filesystem             -
usbdrive/backup  creation              Sun Dec  6 23:55 2009  -
usbdrive/backup  used                  111G                   -
usbdrive/backup  available             45.6G                  -
usbdrive/backup  referenced            111G                   -
usbdrive/backup  compressratio         1.00x                  -
usbdrive/backup  mounted               yes                    -
usbdrive/backup  quota                 none                   default
usbdrive/backup  reservation           none                   default
usbdrive/backup  recordsize            128K                   default
usbdrive/backup  mountpoint            /usbdrive/backup       default
usbdrive/backup  sharenfs              off                    default
usbdrive/backup  checksum              on                     default
usbdrive/backup  compression           off                    default
usbdrive/backup  atime                 on                     default
usbdrive/backup  devices               on                     default
usbdrive/backup  exec                  on                     default
usbdrive/backup  setuid                on                     default
usbdrive/backup  readonly              off                    default
usbdrive/backup  zoned                 off                    default
usbdrive/backup  snapdir               hidden                 default
usbdrive/backup  aclmode               groupmask              default
usbdrive/backup  aclinherit            restricted             default
usbdrive/backup  canmount              on                     default
usbdrive/backup  shareiscsi            off                    default
usbdrive/backup  xattr                 on                     default
usbdrive/backup  copies                1                      default
usbdrive/backup  version               4                      -
usbdrive/backup  utf8only              off                    -
usbdrive/backup  normalization         none                   -
usbdrive/backup  casesensitivity       sensitive              -
usbdrive/backup  vscan                 off                    default
usbdrive/backup  nbmand                off                    default
usbdrive/backup  sharesmb              off                    default
usbdrive/backup  refquota              none                   default
usbdrive/backup  refreservation        none                   default
usbdrive/backup  primarycache          all                    default
usbdrive/backup  secondarycache        all                    default
usbdrive/backup  usedbysnapshots       0                      -
usbdrive/backup  usedbydataset         111G                   -
usbdrive/backup  usedbychildren        0                      -
usbdrive/backup  usedbyrefreservation  0                      -
usbdrive/backup  logbias               latency                default
usbdrive/backup  dedup                 on                     local
usbdrive/backup  mlslabel              none                   default

root@ghost:/usbdrive/backup# zpool list usbdrive
NAME       SIZE  ALLOC   FREE    CAP  DEDUP  HEALTH  ALTROOT
usbdrive  74.5G  26.4G  48.1G    35%  4.23x  ONLINE  -

So it's true , it is real ...  we have ZFS DEDUPLICATION !

Jim

« SVT-ECO | Main
Comments:

this is definitely a great feature
there might be some (proprietary) alternatives to ZFS but hey, we have it all integrated w/ OpenSolaris in a package that truly rocks… why would we do w/o it ?
Arnaud ZIEBA

Posted by Arnaud ZIEBA on dicembre 08, 2009 at 02:53 AM CET #

Post a Comment:
Comments are closed for this entry.
About

Giacomo Bonini

Search

Categories
Archives
« aprile 2014
lunmarmergiovensabdom
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
    
       
Today