Re: RAID performance - new kernel results - 5x SSD RAID5

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

 



On 3/4/2013 3:39 AM, Adam Goryachev wrote:

> On 04/03/13 16:25, Stan Hoeppner wrote:
>> If you have no gaps between this one and your other LVs, and each of 
>> them is evenly divisible by 512 sectors, then they should all be
>> aligned.
> 
> Given the 4MB size of the LVM blocks, does that automatically make this
> true? I thought it did, but given your above comment, I'm unsure.

512 sectors is the size of your md/RAID stripe.

512 bytes/sector * 512 sectors = 262,144 bytes = 256 KB

4 MB = 4 * 1,048,576 = 4,194,304 bytes

4,194,304 bytes / 262,144 bytes = 16

So there are exactly 16 md/RAID stripes sitting 'under' each 4MB LVM block.


WRT to your question of changing the stripe width, due to drive
expansion, to a value not evenly divisible into 4MB, I'd say you'd need
to change your chunk size during the expansion reshape so that your new
stripe width is evenly divisible into 4MB.  You'll need to plan this, as
with some drive counts it may not be possible.  Is it possible to change
the LVM block size to fit the new stripe width?

-- 
Stan

--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux