LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 02-27-2009, 04:04 PM   #1
esaym
Member
 
Registered: Nov 2006
Distribution: Lots of Debian
Posts: 165

Rep: Reputation: 32
Question about raid 5 data structure


I have a funny question. I have been playing with a 3 disk raid 5 setup for my desktop. I guess I don't fully understand how the "stripe" is managed or even what it is. I know the stripe is made up of a chunk from each disk. Now I always thought of the stripe in raid the same as a block in ext3 or a cluster in ntfs. Meaning if I have a 1k file that I write to an ext3 filesystem with 4k blocks, my 1 k file will take up one block thus wasting 3k of space.

Now I thought the stripe in raid followed the same principle. Meaning if I have a 3 disk array with 64k chunks then my data stripe is the number of disks minus one drive because of parity so in this 3 disk array I would have a data stripe of 128k. So how much of that space would my 1k file take up? Would it take up the whole 128k stripe or just one chunk leaving the other chunk free for something else?

When I migrated my root drive over to the raid5 array I made, I was afraid that it would use alot more space on the raid array since it is full of very small files but to my surprise df -h reported the same values for / on the array and / on the single disk that I had copied the data from. So what is going on here?
 
Old 02-27-2009, 04:33 PM   #2
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 335Reputation: 335Reputation: 335Reputation: 335
You know you could have looked this simple question up on Google.

http://searchstorage.techtarget.com/...214332,00.html

There are probably definitions and extensive explanations all over the Internet.
 
Old 02-27-2009, 11:21 PM   #3
esaym
Member
 
Registered: Nov 2006
Distribution: Lots of Debian
Posts: 165

Original Poster
Rep: Reputation: 32
Quote:
Originally Posted by stress_junkie View Post
You know you could have looked this simple question up on Google.

http://searchstorage.techtarget.com/...214332,00.html

There are probably definitions and extensive explanations all over the Internet.
Rest assured that I have searched all over the internet. I have not found anywhere that mentions how the data is stored inside the array with the details that I am looking for.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
A data structure problem Asuralm Programming 1 12-24-2007 07:49 AM
c++ data structure libraries kpachopoulos Programming 2 01-16-2007 04:22 PM
Data structure trie spank Programming 7 05-21-2006 07:21 AM
data structure with variable capacity shivaligupta Programming 2 01-31-2005 11:54 AM
Wait Free Data Structure neo_119 Programming 0 11-27-2004 01:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

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