public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
From: Eric Sandeen <sandeen@sandeen.net>
To: xfs@oss.sgi.com
Subject: Re: Determining whether stripe unit and stripe size were detected correctly
Date: Thu, 7 Apr 2016 15:21:43 -0500	[thread overview]
Message-ID: <5706C157.5070400@sandeen.net> (raw)
In-Reply-To: <5BDD118B6525E24D82051EDA520EB5FC0105339D@IS-EXMB07-RP.ad.reyrey.com>



On 4/7/16 3:16 PM, Simpson, John R wrote:
> Greetings,
> 
>  
> 
>                 I’m in the process of tracking down lower than expected performance and occasional blocked tasks on some internal file servers with XFS datastores.  Several sources have pointed out the importance of using the correct stripe unit and stripe size when formatting and mounting XFS filesystems, and that XFS can detect these values for some, but not all, hardware RAID controllers.  The servers in question are PowerEdge R510b servers with PERC H700 controllers.  Datastores are RAID5 with a 128K stripe.
>                 Is there any way to determine if the stripe unit and stripe size were detected correctly?  These values were not specified when the filesystems were formatted or mounted.  If they were not detected, is there any way to determine them programmatically?
>                 If this is not the correct forum for this question please point me in the right direction.
> 
>  
> 
> Best regards,

> # xfs_info /DS01
> 
> meta-data=/dev/sdb1              isize=256    agcount=5, agsize=268435455 blks
>          =                       sectsz=512   attr=2, projid32bit=0
> data     =                       bsize=4096   blocks=1212415488, imaxpct=5
>          =                       sunit=0      swidth=0 blks

sunit == swidth == 0, so no geometry is present on this filesystem.

> naming   =version 2              bsize=4096   ascii-ci=0
> log      =internal               bsize=4096   blocks=521728, version=2
>          =                       sectsz=512   sunit=0 blks, lazy-count=1
> realtime =none                   extsz=4096   blocks=0, rtextents=0

mkfs.xfs uses values exported by the block device, and can be seen by using
blockdev to query them, i.e.

blockdev --getiomin --getioopt /dev/sdb1

If it returns 0, no geometry is exported by the device, and you'd need to use
your own knowledge of the device to set appropriate values (and to properly
partition on aligned boundaries as well)

-Eric

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

  reply	other threads:[~2016-04-07 20:21 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-07 20:16 Determining whether stripe unit and stripe size were detected correctly Simpson, John R
2016-04-07 20:21 ` Eric Sandeen [this message]
2016-04-07 20:49   ` Simpson, John R

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5706C157.5070400@sandeen.net \
    --to=sandeen@sandeen.net \
    --cc=xfs@oss.sgi.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox