zfs capacity
zfs_capacityCalculate usable ZFS pool capacity for any RAID level including stripe, mirror, raidz1, raidz2, and raidz3. Computes raw capacity, parity overhead, data disk count, usable terabytes after ZFS metadata overhead (checksums, block pointers, uberblocks), and storage efficiency percentage. Essential for planning NAS builds, TrueNAS/ZFS server storage, and estimating how much usable space a given disk configuration will provide. Supports variable disk sizes and configurable metadata overhead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| raid_type | No | ZFS RAID level: stripe (no redundancy), mirror (2-way), raidz1/2/3 (single/double/triple parity) | raidz1 |
| disk_count | Yes | Total number of physical disks in the pool | |
| disk_size_tb | Yes | Size of each individual disk in terabytes | |
| record_size_kb | No | ZFS record size in kilobytes, affects compression and performance | |
| metadata_overhead_pct | No | Percentage of raw capacity consumed by ZFS metadata, checksums, and internal structures |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| raw_tb | Yes | Total raw capacity across all disks in terabytes | |
| usable_tb | Yes | Usable capacity after parity and metadata overhead in terabytes | |
| data_disks | Yes | Number of disks (or disk-equivalents) available for data storage | |
| parity_disks | Yes | Number of disks (or disk-equivalents) consumed by parity/mirroring | |
| efficiency_pct | Yes | Storage efficiency as a percentage of raw capacity |