LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-11-2013, 04:29 PM   #1
dcogley
LQ Newbie
 
Registered: Jan 2009
Posts: 5

Rep: Reputation: 0
EXT4 RAID stripe size


I am trying to determine the proper stripe value for an EXT4 mounted on a MD RAID5. I have 4 physical drives in the array, my chunk size is 64k and FS is using 4kB blocks.

man page says:
Number of filesystem blocks that mballoc will try to use for allocation size and alignment. For RAID5/6 systems this should be the number of data disks * RAID chunk size in filesystem blocks.

If I let mount read the value from the SB it uses 4096.

If I do the math I get:
3 * 64 * 4 = 768

What is the correct formula for calculating the stripe size?
 
Old 07-12-2013, 11:52 AM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,138

Rep: Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263
When I do that same math I get 3 * 64k / 4k = 48 FS blocks.
 
Old 07-15-2013, 01:54 PM   #3
dcogley
LQ Newbie
 
Registered: Jan 2009
Posts: 5

Original Poster
Rep: Reputation: 0
Yes, 48 makes sense, as that is the defined stripe width when I created the array.

Ext4 allows you to specify a "stripe=" mount option. I am confused as to what this value should be. As stated before if I do not specify the "stripe=" option to mount the default (presumably from the SB) is 4096. Nowhere is it specified that stripe == stripe width.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
RAID, stride, and stripe-size, oh my! digdogger Linux - Hardware 2 11-26-2010 04:49 PM
lvm: PE size, number of stripes and stripe size considerations tramni1980 Slackware 1 08-07-2009 10:19 AM
Installing onto Raid 0 Stripe? Dxvid Linux - Newbie 2 03-13-2008 07:59 AM
raid-0 XFS stripe size and stripe width ganja_guru Linux - Software 1 09-04-2005 08:15 AM
RAID0 Stripe size? ganja_guru Linux - Hardware 3 08-18-2005 04:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:48 AM.

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