recettes/Homelab/ZFS file system.md
gribse ecdfa2f7c4 Squashed 'temp-repo/' content from commit 6688605
git-subtree-dir: temp-repo
git-subtree-split: 6688605ad41f49d1eccead8d29421c658cad0100
2025-10-06 19:14:58 +02:00

2.5 KiB
Executable file
Raw Blame History

type date maturity
article 2024-11-29T13:34 graine

Definition

ZFS (Zettabyte File System) is an advanced file system and volume manager originally developed by Sun Microsystems. It is designed to provide high storage capacity, data integrity, and advanced features for managing file systems and disks. Heres an overview:


Key Features of ZFS

  1. Data Integrity

ZFS uses checksums to detect and automatically correct data corruption (bit rot). It ensures that data read from the disk is accurate.

  1. Snapshots and Clones

Snapshots: Read-only copies of a file system at a specific point in time. Useful for backups.

Clones: Writable copies of snapshots. They share data blocks, saving storage space.

  1. Compression and Deduplication

Built-in compression reduces storage usage.

Deduplication eliminates duplicate data blocks, though it requires significant RAM and CPU.

  1. RAID-like Functionality (RAID-Z)

ZFS includes its own software RAID (RAID-Z), providing redundancy without the need for hardware RAID cards. It supports:

RAID-Z1 (single parity, similar to RAID 5)

RAID-Z2 (double parity, similar to RAID 6)

RAID-Z3 (triple parity for greater redundancy).

  1. Scalability

Handles extremely large storage volumes, up to exabytes, making it suitable for enterprise and personal use.

  1. Pooled Storage

ZFS combines file system and volume management, allowing multiple drives to be combined into a single storage pool (zpool).

  1. Copy-on-Write (COW)

Data is written to a new location before overwriting, ensuring the original data remains intact until the write is complete.


Pros of ZFS

High reliability and data protection.

No additional volume manager required (e.g., LVM).

Advanced features like snapshots, deduplication, and compression.

Efficient use of storage with pooled storage and RAID-Z.


Cons of ZFS

Resource Intensive: Requires significant RAM (recommended: 1 GB of RAM per TB of storage).

Not Ideal for Small Systems: Better suited for servers and systems with large storage requirements.

Limited Native Support: Not natively supported in some Linux distributions; requires packages like zfs-utils.


Use Cases

NAS Systems: Common in TrueNAS and OpenMediaVault for redundancy and integrity.

Backup Solutions: Snapshots and cloning are ideal for incremental backups.

High-Capacity Storage: Used in enterprise environments for large-scale storage.

ZFS is especially popular in environments requiring high reliability and storage efficiency.

Sources

chatGPT