LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 08-11-2006, 01:43 AM   #1
PhillipHuang
Member
 
Registered: Aug 2006
Location: Shen Zhen
Distribution: Ubuntu 10.04
Posts: 198

Rep: Reputation: 33
How does this RAID 0 work?


Hi,all

I used two IDE harddisks(one is ST 40G'/dev/hdb',and the other is WD 120G'/dev/hdc') to build soft RAID 0 on Linux.As I read from book,RAID 0 is a striping array which data will be written to the disks in sequence,that's also what call it "stripe". This array should be idenfied by the smallest disks capacity for spreading data in stripe mode. So, I think the capacity of RAID0 is equal to twice of smallest one. In the way, my soft RAID0 should be 80G(2x40G)

The following lines are issued to create RAID0:
# mdadm -C /dev/md0 --level 0 -n /dev/hdb /dev/hdc
# cat /proc/mdstat
Personalities : [raid0]
md0 : active raid0 hdb[0] hdc[1]
159142336 blocks 64k chunks


I found the capacity of my soft raid 0 is 160G.It made me confused,how does RAID0 work as the end of writing over 40G in each disk?

Thanks,

Phillip

Last edited by PhillipHuang; 08-11-2006 at 02:09 AM.
 
Old 08-11-2006, 06:20 PM   #2
IsaacKuo
Senior Member
 
Registered: Apr 2004
Location: Baton Rouge, Louisiana, USA
Distribution: Debian 9 Stretch
Posts: 2,349
Blog Entries: 8

Rep: Reputation: 384Reputation: 384Reputation: 384Reputation: 384
The size of a RAID0 array is equal to the sum of the sizes of the individual volumes. The way the stripes works is that the first 80gigs will be striped between the two drives--resulting in roughly twice the read/write speed of the slower drive. The remaining 80gigs will be on the larger drive only--it will be only as fast as the larger drive.

You don't really have any control over whether certain files are in the "fast" half or the "slow" half. If you're particularly concerned about performance, it may make more sense to split the larger drive into multiple partitions--one 40gig partition to RAID0 with the other drive, and one 80gig partition to be "slow" storage.
 
Old 08-13-2006, 08:03 PM   #3
PhillipHuang
Member
 
Registered: Aug 2006
Location: Shen Zhen
Distribution: Ubuntu 10.04
Posts: 198

Original Poster
Rep: Reputation: 33
I see,
Thank you,IsaacKuo.
 
  


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
how work with RAID 5 by software? xcore_on Linux - Newbie 1 05-16-2006 04:40 AM
How does raid work when I drive goes bad? abefroman Linux - Hardware 1 09-11-2005 06:23 PM
FC1 doesn't work with SATA RAID? apangle Fedora 1 10-10-2004 07:35 AM
RAID can't work on Mandrake 10.0 MarvinChao Mandriva 2 04-11-2004 07:36 AM
RAID array not work after reboot smartsupport Linux - Hardware 0 11-19-2003 05:02 PM

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

All times are GMT -5. The time now is 09:10 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration