zfs_root_cache
This is an old revision of the document!
Btrfs for root and ZFS for data with ssd cache
We have the following hardware:
- 1x 512GB nvme
- 4x 3TB sata
- 2x 5TB sata
And we want the following:
- Root on 200GB of nvme in mirror with another sata
- Bios doesn't boot from nvme, then boot must be copied on all satas
- UEFI partition also in all satas
- A fast only nvme partition of 200GB
- Be able to do backups of important directories (/home, /etc, and others) on external HD, maybe using snapshots
- Use many of the satas together for a big long storage “data” space with the rest of nvme as cache
How can ZFS help here:
- ZFS can't be used as /boot directory. Use ext4
- Use ZIL and SLOG as write cache for nvme for data volume
- Use L2ARC as read cache for nvme for data volume
We will do this:
- A btrfs for root, swap and “fast” associated with the nvme alone (no redundancy, but /etc will be gitted)
- /boot and UEFI partitions in several disks for booting
- A pool for the rest of the disks using some level of RAIDz1, it will have a small (32GB) SLOG and a bigger(128GB) L2ARC from the nvme disk
- A pool in the backup disks for backuping using zfs znapshot/replication/clone
References
zfs_root_cache.1606120547.txt.gz · Last modified: 2021/02/01 05:55 (external edit)