I have 2 storage devices; classical slow HDD (750GB,
/dev/sda) and faster SSD (128GB,
/dev/sdb). Currently I have installed Ubuntu & Mint on same btrfs partition on SSD (
/dev/sdb5). My btrfs pool consists of
What I want to achieve is data replication on HDD while keeping SSD performance: Something like this:
For read case it would be ideal for procedure to go like this:
- read from SSD
- check checksum
- if it verifies.. awesome, give me the data
- if not, fetch data from HDD and perform error correction through duplicate data
I'd manually run (some tool I'm not sure which one...
btrfs check --repair perhaps?) every month or so to check HDD checksums and correct them via SSD data against bitrot.
For write case:
- write to SSD
- sync to HDD when write requirements are low, thus not slowing down the system.
Is this possible and how would I do it?
Bottom line is, I like btrfs and would like it to duplicate data across HDD & SSD drive automatically while keeping SSD excellent performance.
Using SSD as write cache is not an option since it's missing data duplication and security.