LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-05-2009, 09:55 AM   #1
Zeratul021
LQ Newbie
 
Registered: Aug 2009
Location: Prague
Distribution: Kubuntu 8.10
Posts: 11

Rep: Reputation: 0
Changing XFS sunit and swidth parameters on RAID 5


Hi all,

I would like to ask something regarding XFS and RAID 5:

I've built raid 5 from 4 1TB devices using 256KB chunk size.
I wanted to tweak XFS on it a little so I formatted it with

Code:
mkfs.xfs -f -L DATA -l internal,size=128m -d agcount=30,su=256k,sw=3 /dev/md0
Problem is that output shows:
Code:
eta-data=/dev/md0               isize=256    agcount=30, agsize=24419072 blks
         =                       sectsz=4096  attr=2
data     =                       bsize=4096   blocks=732571776, imaxpct=5
         =                       sunit=64     swidth=192 blks
naming   =version 2              bsize=4096   ascii-ci=0
log      =internal log           bsize=4096   blocks=32768, version=2
         =                       sectsz=4096  sunit=1 blks, lazy-count=0
realtime =none                   extsz=786432 blocks=0, rtextents=0
That's not exactly sunit that I wanted (should be 512 and swidth 1536).
Even if I try to mount it with these options set to proper numbers, xfs_info still provides same output.

Any ideas or suggestions why this happens?

Regards,

Marek
 
Old 11-10-2009, 03:01 PM   #2
Zeratul021
LQ Newbie
 
Registered: Aug 2009
Location: Prague
Distribution: Kubuntu 8.10
Posts: 11

Original Poster
Rep: Reputation: 0
Solved

Solved:

In reference to http://oss.sgi.com/archives/xfs/2003-04/msg00145.html

where it is stated that:
Quote:
data = bsize=4096 blocks=84286944,
imaxpct=25
= sunit=16 swidth=48 blks,
unwritten=0

since it apparently displays the "sunit" and "swidth" values in terms of
XFS blocks, which are 4096 bytes each....
That means that my 64*4096 is my 256k and swidth 192*4096/512 is my 1536.

Anyway, formatting without parameters resulted in the same numbers because xfs' built-in optimization for software raids.
 
  


Reply

Tags
raid5, xfs



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
RAID and XFS on current filesystem snoopy1 Linux - Software 2 03-26-2009 09:04 AM
XFS drops create/delete files to 6.6% of EXT3 (sw raid) and to 0.6% (hw raid) darlingm Linux - Software 3 04-24-2008 10:39 AM
mkfs.xfs parameters for raid array hvidgaard Linux - General 2 02-18-2007 03:51 PM
Changing Kernel Parameters aslamg Linux - Newbie 13 01-20-2006 02:57 AM
Changing Kernel Parameters aslamg Linux - Newbie 2 09-03-2002 05:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:45 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration