btrfs
Readings
1 的教程阅读,逐个分析:
btrfs overview:2 More recent filesystems (including ext4) use pointers to “extents” instead; each extent is a group of contiguous blocks.
新特性:
- Copy-on-rite
- snapshots
- does not need to implement a separate journal to provide crash resistance.
- Another important Btrfs feature is its built-in volume manager. A Btrfs filesystem can span multiple physical devices in a number of RAID configurations. Any given volume (collection of one or more physical drives) can also be split into “subvolumes,” which can be thought of as independent filesystems sharing a single physical volume set. So Btrfs makes it possible to group part or all of a system’s storage into a big pool, then share that pool among a set of filesystems, each with its own usage limits.
TODO volume 是啥 ?
- It can perform full checksummng of both data and metadata, making it robust in the face of data corruption by the hardware.
- Data can be stored on-disk in compressed form.
- The send/receive feature can be used as part of an incremental backup scheme, among other things.
- The online defragmentation mechanism can fix up fragmented files in a running filesystem.
- The 3.12 kernel saw the addition of an offline de-duplication feature; it scans for blocks containing duplicated data and collapses them down to a single, shared copy.
Cow 的问题: Obviously, some sort of garbage collection is required or all those block copies will quickly eat up all of the available space on the filesystem. Copying blocks can take more time than simply overwriting them as well as significantly increasing the filesystem’s memory requirements. COW operations will also have a tendency to fragment files, wrecking the nice, contiguous layout that the filesystem code put so much effort into creating.
btrfs on RAID : https://lwn.net/Articles/577961/
本站所有文章转发 CSDN 将按侵权追究法律责任,其它情况随意。