Thread (21 messages) 21 messages, 7 authors, 2013-07-08

Re: some general questions on RAID

From: Milan Broz <hidden>
Date: 2013-07-08 05:40:21

On 07/07/2013 10:51 PM, Christoph Anton Mitterer wrote:
On Sun, 2013-07-07 at 20:50 +0200, Milan Broz wrote:
quoted
For LUKS is it trivial, LVM is more complex
but should align to MD chunk/stripe properly as well.
Shouldn't one get that automatically by simply setting the
--dataalignment of the PVs to a multiple of the chunk size (or even
better of the stripe size)... and shouldn't the default alignment
against the 1MiB boundary (as in LUKS) work just well?
Try to not use --dataalignment explicitly.
It should be detected automatically through topology ioctl
(both for LVM and LUKS). (You can verify that itopology info
propagates correctly through stack by using lsblk -t).

Only if you know that something is wrong overwrite it
(and perhaps report bug to LVM, it should detect it properly now).

Default 1MiB alignment should work even for LVM IIRC.

IOW I am saying that for newly created array (e.g. like MD->dmcrypt->LVM)
you should get optimal alignment for performance without black magic.

(Also LVM can use MD RAID internally now but let's not complicate
already too complex device stack :)

Milan
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help