Re: ext3 on lvm2 on raid10

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Daniel Iliev wrote:
> How is the raid10 chunk size related to LVM2 layout and how do ext3's
> "stride" and "stripe-width" parameters depend on LVM2?
> 
> In more detail:
> I've 4 equal HDDs. My intention is to make a raid10, put LVM2 on top
> of it and format the LVM volumes with ext3.
> 
> stride and stripe-width values are described in MKE2FS(8), but the
> case with LVM is not covered there.
> 
> Please, point me to some documentation on the subject or advise me how
> to proceed.

Hi,

lvm2 since version 2.02.41 allows automatically align LV start according
to underlying md device "chunk" size.

See this paramater in lvm.conf:
    # By default, if a PV is placed directly upon an md device, LVM2
    # will align its data blocks with the the chunk_size exposed in sysfs.
    # 1 enables; 0 disables.
    md_chunk_alignment = 1

You should also set extent size as multiple of chunk size.

(The development code in CVS also allows set the alignment manually
using parameter, so administrator can set the align value according
to other types of underlaying devices - useful for hw raid, SSD, etc.)

Milan
--
mbroz@redhat.com

_______________________________________________
linux-lvm mailing list
linux-lvm@redhat.com
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

[Index of Archives]     [Gluster Users]     [Kernel Development]     [Linux Clusters]     [Device Mapper]     [Security]     [Bugtraq]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]

  Powered by Linux