LinuxQuestions.org
Review your favorite Linux distribution.
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 04-04-2015, 06:39 AM   #1
eponymous
Member
 
Registered: Oct 2004
Distribution: Gentoo
Posts: 78

Rep: Reputation: 15
ext4 stride and stripe-width on top of multiple RAID arrays


I have the following setup:

3x4TB RAID-5 (Hardware RAID) (two data disks URE 1 in 10^15)
5x2TB RAID-5 (Hardware RAID) (four data disks URE 1 in 10^15)

= six data disks in total?

These will be encrypted using LUKS and then collected together into a single Volume Group in which I'll create some logical volumes.

So in creating the Volume Group, how will this setup adjust the --physicalextentsize I need to specify (default is 4MiB)? In this case 4MiB might not be a multiple of the stripe-widths of both arrays so will need to change.

Also, when creating an ext4 filesystem that spans over these two arrays, will the stride and stripe-width options still follow these formulae?:

Code:
stride = chunk_size (bytes) / 4096

stripe_width = (number of data disks) * (chunk_size in bytes) / 4096  
stripe_width = 6 * (chunk_size in bytes) / 4096
I'm assuming there are six data disks but I'm not sure this is correct since they're of different sizes in different arrays. i.e. four disks are 2TB and two disks are 4TB.

Does anyone know if I've missed something here?

Note: I used this page to aid me with calculations.

Thanks.
 
Old 04-07-2015, 02:38 AM   #2
jheengut
Member
 
Registered: Sep 2006
Location: Providence, Moka Mauritius
Distribution: Slackware, Lubuntu
Posts: 352
Blog Entries: 16

Rep: Reputation: 51
16TB Data Disk

Quote:
Originally Posted by eponymous View Post
I have the following setup:

3x4TB RAID-5 (Hardware RAID) (two data disks URE 1 in 10^15)
5x2TB RAID-5 (Hardware RAID) (four data disks URE 1 in 10^15)

= six data disks in total?

I'm assuming there are six data disks but I'm not sure this is correct since they're of different sizes in different arrays. i.e. four disks are 2TB and two disks are 4TB.

Thanks.
So you have 8TB + 8TB of RAID5 data in all.
 
Old 04-07-2015, 02:49 AM   #3
jheengut
Member
 
Registered: Sep 2006
Location: Providence, Moka Mauritius
Distribution: Slackware, Lubuntu
Posts: 352
Blog Entries: 16

Rep: Reputation: 51
PhysicalExtentSize

Quote:
Originally Posted by eponymous View Post

So in creating the Volume Group, how will this setup adjust the --physicalextentsize I need to specify (default is 4MiB)? In this case 4MiB might not be a multiple of the stripe-widths of both arrays so will need to change.

Thanks.
from man::
s, --physicalextentsize PhysicalExtentSize[bBsSkKmMgGtTpPeE] Sets the physical extent size on physical volumes of this volume group. The default is 4 MiB and it must be at least 1 KiB and a power of 2.
If the volume group metadata uses lvm1 format, extents can vary in size from 8KiB to 16GiB and there is a limit of 65534 extents in each logical volume. The default of 4 MiB leads to a maximum logical volume size of around 256GiB.
If the volume group metadata uses lvm2 format those restrictions do not apply, but having a large number of extents will slow down the tools but have no impact on I/O performance to the logical volume. The smallest PE is 1KiB

so why the need to change PhysicalExtentSize


If in doubt use a bigger PhysicalExtentSize
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Changing XFS stripe size & width when growing an mdadm raid 5 array? Automatic Linux - Software 2 11-21-2013 04:06 PM
EXT4 RAID stripe size dcogley Linux - General 2 07-15-2013 01:54 PM
XFS stripe width on top of LVM over hardware RAID thebeerbaron Linux - Software 3 10-27-2011 02:41 PM
RAID, stride, and stripe-size, oh my! digdogger Linux - Hardware 2 11-26-2010 04:49 PM
raid-0 XFS stripe size and stripe width ganja_guru Linux - Software 1 09-04-2005 08:15 AM

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

All times are GMT -5. The time now is 03:34 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