ZFS(The Z File System) summarize

Table of Contents

Overview

ZFS has three major design goals:1

  • Data integrity: All data includes a checksum of the data. When data is written, the checksum is calculated and written along with it. When that data is later read back, the checksum is calculated again. If the checksums do not match, a data error has been detected. ZFS will attempt to automatically correct errors when data redundancy is available.
  • Pooled storage: physical storage devices are added to a pool, and storage space is allocated from that shared pool. Space is available to all file systems, and can be increased by adding new storage devices to the pool.
  • Performance: multiple caching mechanisms provide increased performance. ARC is an advanced memory-based read cache. A second level of disk-based read cache can be added with L2ARC, and disk-based synchronous write cache is available with ZIL.

install

安装ZFS,使用ZFS制作ZRAID1/RAID5等数据冗余,相较于LVM,ZFS管理较为方便(只需要两条命令),但是对内存开销较大.另外值得注意的是,由于OS DataBlock大小的关系,在创建ZPool的时候,记得加上 -o ashift=12 参数,以大幅提升ZFS的性能。

sudo add-apt-repository ppa:zfs-native/stable
sudo aptitude update
sudo aptitude install ubuntu-zfs

Use

Additional Resources

cc


Footnotes:

Author: Shi Shougang

Created: 2017-03-02 Thu 23:02

Emacs 24.3.1 (Org mode 8.2.10)

Validate