* sunit & swidth on RAID-1?
@ 2009-02-11 15:56 mike dentifrice
2009-02-11 16:42 ` Justin Piszcz
2009-02-11 16:46 ` Eric Sandeen
0 siblings, 2 replies; 5+ messages in thread
From: mike dentifrice @ 2009-02-11 15:56 UTC (permalink / raw)
To: xfs
Hello,
I would like to know if it makes any sense to specify sunit & swidth
parameters as mount options to XFS filesystems sitting on a Linux
software RAID-1 array, as advertised here [1] or there [2].
I'm asking, because it seems that chunk_size does not matter in a RAID-1
context, nor do stripe units; or do they?
Any tip would be appreciated,
[1] http://www.socalsysadmin.com/2008/10/15/optimizing-xfs-on-raid-arrays/
[2] http://feedblog.org/2008/06/18/howto-configure-raid-strides-in-xfs/
--
mike dentifrice <fluor@poivron.org>
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: sunit & swidth on RAID-1?
2009-02-11 15:56 sunit & swidth on RAID-1? mike dentifrice
@ 2009-02-11 16:42 ` Justin Piszcz
[not found] ` <20090211165316.GA4430@dentifrice>
2009-02-11 16:46 ` Eric Sandeen
1 sibling, 1 reply; 5+ messages in thread
From: Justin Piszcz @ 2009-02-11 16:42 UTC (permalink / raw)
To: mike dentifrice; +Cc: xfs
[-- Attachment #1: Type: TEXT/PLAIN, Size: 993 bytes --]
On Wed, 11 Feb 2009, mike dentifrice wrote:
> Hello,
>
> I would like to know if it makes any sense to specify sunit & swidth
> parameters as mount options to XFS filesystems sitting on a Linux
> software RAID-1 array, as advertised here [1] or there [2].
>
> I'm asking, because it seems that chunk_size does not matter in a RAID-1
> context, nor do stripe units; or do they?
>
> Any tip would be appreciated,
>
> [1] http://www.socalsysadmin.com/2008/10/15/optimizing-xfs-on-raid-arrays/
> [2] http://feedblog.org/2008/06/18/howto-configure-raid-strides-in-xfs/
>
> --
> mike dentifrice <fluor@poivron.org>
>
> _______________________________________________
> xfs mailing list
> xfs@oss.sgi.com
> http://oss.sgi.com/mailman/listinfo/xfs
mkfs.xfs will auto-optimize for software-raid arrays for the most part,
with HW raid on a 3ware controller, tweaking mkfs.xfs does not help very
much. with SW raid, at least for raid1 - I use the defaults.
Justin.
[-- Attachment #2: Type: text/plain, Size: 121 bytes --]
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: sunit & swidth on RAID-1?
2009-02-11 15:56 sunit & swidth on RAID-1? mike dentifrice
2009-02-11 16:42 ` Justin Piszcz
@ 2009-02-11 16:46 ` Eric Sandeen
1 sibling, 0 replies; 5+ messages in thread
From: Eric Sandeen @ 2009-02-11 16:46 UTC (permalink / raw)
To: mike dentifrice; +Cc: xfs
mike dentifrice wrote:
> Hello,
>
> I would like to know if it makes any sense to specify sunit & swidth
> parameters as mount options to XFS filesystems sitting on a Linux
> software RAID-1 array, as advertised here [1] or there [2].
>
> I'm asking, because it seems that chunk_size does not matter in a RAID-1
> context, nor do stripe units; or do they?
I don't think it does matter. And for what it's worth, mkfs.xfs queries
an MD raid, but ignores raid1/10/0:
/*
* Ignore levels we don't want aligned (e.g. linear)
* and deduct disk(s) from stripe width on RAID4/5/6
*/
switch (md.level) {
case 6:
md.raid_disks--;
/* fallthrough */
case 5:
case 4:
md.raid_disks--;
/* fallthrough */
case 1:
case 0:
case 10:
break;
default:
return 0;
In general, mkfs.xfs on md should just "do the right thing"
-Eric
> Any tip would be appreciated,
>
> [1] http://www.socalsysadmin.com/2008/10/15/optimizing-xfs-on-raid-arrays/
> [2] http://feedblog.org/2008/06/18/howto-configure-raid-strides-in-xfs/
>
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2009-02-11 21:13 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-11 15:56 sunit & swidth on RAID-1? mike dentifrice
2009-02-11 16:42 ` Justin Piszcz
[not found] ` <20090211165316.GA4430@dentifrice>
2009-02-11 17:10 ` Justin Piszcz
2009-02-11 21:12 ` Michael Monnerie
2009-02-11 16:46 ` Eric Sandeen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox