Debian jessie 㧠ZFS ã使ç¨ãã
èªå® ã®ãã¡ã¤ã«ãµã¼ãã Gentoo ãã Debian ã«å¤æ´ããã¤ãã§ã«ã¹ãã¬ã¼ã¸é¨åã« ZFS ã使ç¨ãã¦ã¿ããã¨æã£ãã®ã§ãDebian 㧠ZFS ã使ãçºã®ãã¹ãã¡ã¢ã§ãã
次ã®ãªã³ã¯å
ãèªã¿ãªããé²ããã¤ããã§ãã
How to install and configure ZFS on Linux using Debian Jessie 8.1
ã¾ãã¯ãã¹ã㧠Debian jessie 8.3 ã®ä¸ã« KVM ä»®æ³ãã·ã³ãæ§ç¯ãã¾ããã ç°å¢ã¯æ¬¡ã®éã
æ§ç¯ããã¹ãã¬ã¼ã¸ãã¼ã«
1GB ã®ãã£ã¹ã¯ã¤ã¡ã¼ã¸ã2ã¤ä½æãã¦ãã©ã¼ãæ§æãã dedup ãæå¹ã«ããã
ã·ã¹ãã ã¨ãªãã¸ããªã®æ´æ°
ZFS on Linux ã®ãªãã¸ããªã apt-get ã§åããããã«ãªãã¸ããªã®æ å ±ãæ´æ°ãã¾ãã
# wget http://archive.zfsonlinux.org/debian/pool/main/z/zfsonlinux/zfsonlinux_6_all.deb # dpkg -i zfsonlinux_6_all.deb # apt-get update # apt-get upgrade
ZFS on Linux ããã±ã¼ã¸ã®ã¤ã³ã¹ãã¼ã«
ZFS on Linux ãã¤ã³ã¹ãã¼ã«ãã¦åèµ·åãã¾ãã
# apt-get install lsb-release # apt-get install debian-zfs # shutdown -r now
ã¹ãã¬ã¼ã¸ãã¼ã«ã®ã»ãã
ã¾ãã¯ãã£ã¹ã¯ã¤ã¡ã¼ã¸ã2ã¤ä½æãã¾ãã
# cd /mnt # dd if=/dev/zero of=image1.img bs=1M count=1024 # dd if=/dev/zero of=image2.img bs=1M count=1024
次ã«ã¹ãã¬ã¼ã¸ãã¼ã«ã®ä½æãã¾ãã
# zpool list no pools available # zpool create tank mirror /mnt/image1.img /mnt/image2.img # zpool status pool: tank state: ONLINE scan: none requested config: NAME STATE READ WRITE CKSUM tank ONLINE 0 0 0 mirror-0 ONLINE 0 0 0 /mnt/image1.img ONLINE 0 0 0 /mnt/image2.img ONLINE 0 0 0 errors: No known data errors # zpool list NAME SIZE ALLOC FREEEXPANDSZ FRAG CAP DEDUP HEALTH ALTROOT tank 1008M 64K 1008M - 0% 0% 1.00x ONLINE -
dedup ã«å¤ãã»ãããã¦ã¹ãã¬ã¼ã¸å ã®éè¤ãããã¯ãæé¤ãã¾ãã
# zfs set dedup=verify tank # zfs get dedup NAME PROPERTY VALUE SOURCE tank dedup verify local
éè¤ãæé¤ã§ãã¦ããããã¹ããã
# cd /tank # dd if=/dev/zero of=deduptest.img bs=1M count=256 # ls -lah deduptest.img -rw-r--r-- 1 root root 256M Feb 3 XX:XX deduptest.img # zpool list NAME SIZE ALLOC FREE EXPANDSZ FRAG CAP DEDUP HEALTH ALTROOT tank 1008M 270K 1008M - 0% 0% 2048.00x ONLINE -
DEDUP=2048.00xã«ãªã£ã¦ããã®ã§å¤§ä¸å¤«ã£ã½ãã
ã¨ãããããããªã¨ããã§ã