I am working on setting up a backup server using a bunch of 3TB disks. I've put a lot of thought into this, and I'd like to use the following setup:I'll partition the disks with a single partition, these partitions will be setup in raid10 offset -- just two disks to start.On these, I'll use LVM as there could be quite a few partitions.On each logical partition, there will be a LUKS device.Inside each LUKS device, there will be an xfs filesystem.I've searched quite a bit, but cannot find a good explanation of how to best address the striping inherent to raid10 and xfs. I know that when put directly onto an mdraid device, mkfs.xfs detects the striping and aligns itself. As I understand it, when you add an LVM, this goes out the window. One article I read suggested setting a sizeable (~1M) stripe on the raid device, then setting a consistent chunk on LVM. However, doing so would seem to neglect to consider the possibility for something like the LUKS header to create additional offset.Is there any effective way to guarantee the alignment of xfs with the raid10 device?Is the complexity I'm creating by stacking all this mitigate any performance gains of raid10, and should I therefore just use lvm in raid1 and let it worry about the striping?I also apologize in advance, I think I may have intermittently mixed up the ideas of chunks and stripes in this post.
XFS on LVM on soft raid10 stripe alignment
linux;lvm;raid;mdadm;xfs