# Align lvm or dm-crypt to stripe or chunk size?

- From: Alexander 'Leo' Bergolth \<hidden\>
- Date: 2013-01-17 09:35:48 
- List: linux-raid
- Page: https://ratatoskr.run/linux-raid/2013/01/6622862
- Thread: https://ratatoskr.run/linux-raid/2013/01/6622862/t.md

```text
Hi!

If using some kind of container like lvm or dm-crypt that has a
data-offset inside my md device...
Do I need to align the data offset to the stripe size (chunk-size*number
of data-bearing disks) or just to the chunk size?

If aligning to the chunk size is sufficient, could anyone give an
explanation? Doesn't this break filesystem alignment inside the
container? (I.e. the --stripe-width option)

Thanks for your help,
--leo
-- 
e-mail   ::: Leo.Bergolth (at) wu.ac.at
fax      ::: +43-1-31336-906050
location ::: IT-Services | Vienna University of Economics | Austria

```
