All of lore.kernel.org
 help / color / mirror / Atom feed
* RAID5 on SSDs - looking for advice
@ 2022-10-09 10:34 Ochi
  2022-10-09 11:36 ` Qu Wenruo
                   ` (2 more replies)
  0 siblings, 3 replies; 13+ messages in thread
From: Ochi @ 2022-10-09 10:34 UTC (permalink / raw)
  To: linux-btrfs

Hello,

I'm currently thinking about migrating my home NAS to SSDs only. As a 
compromise between space efficiency and redundancy, I'm thinking about:

- using RAID5 for data and RAID1 for metadata on a couple of SSDs (3 or 
4 for now, with the option to expand later),
- using compression to get the most out of the relatively expensive SSD 
storage,
- encrypting each drive seperately below the FS level using LUKS (with 
discard enabled).

The NAS is regularly backed up to another NAS with spinning disks that 
runs a btrfs RAID1 and takes daily snapshots.

I have a few questions regarding this approach which I hope someone with 
more insight into btrfs can answer me:

1. Are there any known issues regarding discard/TRIM in a RAID5 setup? 
Is discard implemented on a lower level that is independent of the 
actual RAID level used? The very, very old initial merge announcement 
[1] stated that discard support was missing back then. Is it implemented 
now?

2. How is the parity data calculated when compression is in use? Is it 
calculated on the data _after_ compression? In particular, is the parity 
data expected to have the same size as the _compressed_ data?

3. Are there any other known issues that come to mind regarding this 
particular setup, or do you have any other advice?

[1] https://lwn.net/Articles/536038/

Best regards
Ochi

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2023-02-09 23:23 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-10-09 10:34 RAID5 on SSDs - looking for advice Ochi
2022-10-09 11:36 ` Qu Wenruo
2022-10-09 12:56   ` Ochi
2022-10-09 13:01     ` Forza
2022-10-09 13:16       ` Ochi
2022-10-09 14:33   ` Jorge Bastos
2023-02-06  2:34   ` me
2023-02-06  3:05     ` Qu Wenruo
2023-02-09 23:12       ` me
2023-02-09 23:23         ` Remi Gauvin
2022-10-09 11:42 ` Roman Mamedov
2022-10-09 13:12   ` Ochi
2022-10-09 13:44 ` waxhead

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.