Solved

Raid 0 Chunk size

Posted on 2006-06-19
8
547 Views
Last Modified: 2013-12-06
I am using Red Hat Linux Enterprise 2.4

I have two 500Gb disks in a Raid 0 array. The files stored on this array will be large (at least 100Mb each).

What chunk size should I use?

Also, when I format my raid volume (as ext3) can I set block size, and is there a block size that will work better for me?

These files will be read-only.

Many thanks
0
Comment
Question by:hgj1357
  • 4
  • 2
  • 2
8 Comments
 
LVL 16

Expert Comment

by:xDamox
ID: 16935342
Hi,

Have a look at:

http://howtos.linux.com/howtos/Software-RAID-HOWTO-9.shtml

The site gives you a table of what chunk size to use for RAID Level 0
0
 
LVL 2

Author Comment

by:hgj1357
ID: 16935387
after creating the raid volume is formating like this:

mkfs -t ext3 /dev/md0

how would I specify a block size?

Thanks
0
 
LVL 16

Expert Comment

by:xDamox
ID: 16936067
Hi,

To format the HDD you would issue:

mkfs.ext3 /dev/md0
0
VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

 
LVL 2

Author Comment

by:hgj1357
ID: 16936217
Actually, mkfs -t ext3 /dev/md0

but my question was how do I set the block size.
0
 
LVL 2

Author Comment

by:hgj1357
ID: 16936482
Actually (again) this is what I think I need

mke2fs -b 4096 -t largefile4 ext3

right?

0
 
LVL 22

Expert Comment

by:pjedmond
ID: 16936510
To be fair:

mkfs.ext3 /dev/md0

is equivalent to:

mkfs -t ext3 /dev/md0

Anyway, block size is set in /etc/raidtab. There is a directive:

chunk-size             16

Which would set the chunksize to 16k. Chunk size *must* be a power of 2. So 2,4,8,16,32,64,128 etc are all valid. Optimum chunk size is dependent of disc speed, disk-cache, bus speed, availability of DMA, and interface type! As a result it is extremely difficult to calculate the optimum size. However, if the system is running with a > 3GHz processor, and a very high speed disc (15000rpm SCSI) for example, then I might be tempted to go for a 64k chunksize for the large file reads that you are specifying. However, for lesser systems, I'd probably stick at something lower. For most practical applications, 8 or 16 is more than ample. Also bear in mind that there is no point in extracting the data from the hard drive(or buying the highest speed hard drive or creating the highest spec RAID array) if the bottlenet to getting the information is a 10/100 ethernet card!

HTH:)



0
 
LVL 22

Accepted Solution

by:
pjedmond earned 500 total points
ID: 16936559
OK - that directive would be valid....but bear in mind that 'journalling' the ext3 bit is irrelavent if the drive is going to be read only.

.....and the 'switch' is a capital T, not a small one for file type. So the command should be:

mke2fs -j -b 4096 -t largefile4
 
(You can miss out the -j to stop the file system being a journalling(ext3) fs) or

mkfs.ext3 -b 4096 -t largefile4

Try using man:

man mke2fs
man mkfs.ext3

for more info and the various options available to you).

HTH:)

0
 
LVL 2

Author Comment

by:hgj1357
ID: 16936866
Got it!
0

Featured Post

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This document is written for Red Hat Enterprise Linux AS release 4 and ORACLE 10g.  Earlier releases can be installed using this document as well however there are some additional steps for packages to be installed see Metalink. Disclaimer: I hav…
If you use Debian 6 Squeeze and you are tired of looking at the childish graphical GDM login screen that is used by default, here's an easy way to change it. If you've already tried to change it you've probably discovered that none of the old met…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question