Thread (6 messages) 6 messages, 2 authors, 2007-03-25

Re: XFS sunit/swidth for raid10

From: dean gaudet <hidden>
Date: 2007-03-22 08:23:06

On Thu, 22 Mar 2007, Peter Rabbitson wrote:
Hi,
How does one determine the XFS sunit and swidth sizes for a software raid10
with 3 copies?
mkfs.xfs uses the GET_ARRAY_INFO ioctl to get the data it needs from 
software raid and select an appropriate sunit/swidth...

although i'm not sure i agree entirely with its choice for raid10:

                *sunit = md.chunk_size >> 9;
                *swidth = *sunit * md.raid_disks;

i'd think it would depend on the layout of the raid10 (near, far, 
offset)... for near2 on 4 disks i'd expect swidth to be only 2*sunit... 
but for far2 on 4 disks i'd expect 4*sunit... but i'm not sure.  it 
probably doesn't matter.

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