I moved my KVM instances' HDD images to an ZFS filesystem running over fuse
on Fedora 16. The images in the folder are cloned from tmpl-centos57.img
file. Later they are modified on runtime. So there is only small delta
(change) between the files. In a normal filesystem like ext3 of ext4, the
images will consume full disk space. That is 38.5GB. But in my zfs volume
with deduplication enabled, It is occupying only 5.27GB space. Saved almost
33GB space :)

Note that 'ls' , 'du' like commands are not zfs aware , they may report
wrong sizes.


[root@fedora16 VM]# ls -lh
total 20G
-rwxrwxr-x 1 bkurian bkurian 2.7G Mar  4 14:08 BIND_01.img
-rwxrwxr-x 1 bkurian bkurian 2.7G Mar  4 14:08 BIND_02.img
-rwxrwxr-x 1 bkurian bkurian 2.9G Feb  6 22:39 djb1.img
-rwxrwxr-x 1 bkurian bkurian 2.9G Feb  6 08:51 djb2.img
-rwxrwxr-x 1 bkurian bkurian 3.1G Mar  7 17:49 krb-client.img
-rwxrwxr-x 1 bkurian bkurian 3.1G Mar  9 21:17 krb-kdc1.img
-rwxrwxr-x 1 bkurian bkurian 3.4G Mar  9 16:07 krb-kdc2.img
-rwxrwxr-x 1 bkurian bkurian 3.1G Mar  9 21:17 krb-ldap.img
-rw-r--r-- 1 bkurian bkurian 3.1G Mar  7 00:54 openldap1.img
-rwxrwxr-x 1 bkurian bkurian 3.1G Mar  6 20:06 tmpl-centos57.img
-rwxrwxr-x 1 bkurian bkurian 3.4G Mar  8 15:09 tmpl-centos58.img
-rwxrwxr-x 1 bkurian bkurian 2.8G Jan 28 10:48 tmpl_centos-ds.img



[root@fedora16 ~]# zpool list
NAME   SIZE  ALLOC   FREE    CAP  DEDUP  HEALTH  ALTROOT
VM      57G  5.27G  51.7G     9%  3.64x  ONLINE  -



------------------------------------------------------------------


ZFS configuration on Fedora 16

# yum install zfs-fuse
# zpool create VM /dev/sda7
# service zfs-fuse start
# chkconfig  zfs-fuse on
# zpool create VM /dev/sda7
# zpool list
# zfs set dedup=on VM
# zfs set compression=on VM
# df -h

-- 
Regards

Basil
_______________________________________________
Indian Libre User Group Cochin Mailing List
http://www.ilug-cochin.org/mailing-list/
http://mail.ilug-cochin.org/mailman/listinfo/mailinglist_ilug-cochin.org
#[email protected]

Reply via email to