I want build new structure for my data store (NAS - Ubuntu). Data storage will be 4TB at first. Then up to 8TB.
My old structure is simple:
RAID 1 -> LUKS -> FS
I need some wishes to new structure:
- Save data (RAID 1 or 10).
- Encryption.
- Cache SSD + RAID (HDD) and file system with CoW to save data if cache will be broken.
- Fast snapshots.
- Flexibility to manage volumes.
I don't use LVM, BCACHE, BTRFS before. But IMHO it may suit me.
I'm thinking about this chain:
RAID -> LUKS -> LVM -> BCACHE -> BTRFS
Please tell me is this structure optimally? Is it the best variant for my tasks?