Proper defragment for RAID 0

G

Guest

Guest
Archived from groups: alt.comp.hardware.pc-homebuilt (More info?)

I have two 120 GB hard disks set up on a RAID 0 setup, and I have a
question. The main objetive of using a RAID 0 setup is for performance,
since half of my data will be stored on one disk and the other half is
stored on the other disk, right? Now, when I defrag, it seems like all
the data is shifted to one of the disks, leaving the other one empty,
which pratictly blows the whole RAID 0 objective. Am I wrong? If I'm
right, is there a defrag tool that would split up the data correctly?
Thanks,
Pascal
 
G

Guest

Guest
Archived from groups: alt.comp.hardware.pc-homebuilt (More info?)

It does show up as one 240 GB hard disk, but after I filled up my
virtual 240 GB hard disk with 120 GB of data, and I looked at the
analysis of XP defrag tool, I could clearly see that the RAID stored 60
GB on one disk and 60 GB on the second disk, because I would see 25% of
stored data, then 25% of empty space, 25% of stored data, then 25% of
empty space. After I ran defrag, I got 50% of stored data and 50% of
empty space. What I figured is that the defrag tool put all my data on
the first disk, pretty much removing the performance benefit of the
RAID 0 setup. Am I wrong?
 
G

Guest

Guest
Archived from groups: alt.comp.hardware.pc-homebuilt (More info?)

Thanks for the explanation... It just seemed that way due to how the
disk looked in the XP defrag software.... Thanks for taking your time...
 
G

Guest

Guest
Archived from groups: alt.comp.hardware.pc-homebuilt (More info?)

pascaljr@gmail.com wrote:

> I have two 120 GB hard disks set up on a RAID 0 setup,

I'm not so sure about that.

> and I have a
> question. The main objetive of using a RAID 0 setup is for performance,
> since half of my data will be stored on one disk and the other half is
> stored on the other disk, right?

Close enough, in a broad brush sort of way, although a bit short on the
particulars.

RAID 0 does not place 'whole files' on one or the other of the two disks so
that the file sizes add up to half and half. Files are broken into stripes
of a size dictated by the user-defined "stripe size" of the array, and
stripes are sent to each disk in the array.

For example, say you have three files of 'size' 10 (file 1), 10 (file 2),
and 20 (file 3). RAID 0 does not put the two 'size 10' files on one disk
and the 'size 20' on the other so that "half of my data will be stored on
one disk and the other half is stored on the other disk."

Rather, each file is broken into the "stripe size," let's say that's 2. So
the first 2 of file 1 goes to disk 1, the second 2 goes to disk 2, the
third 2 goes back on disk 1, the fourth 2 goes on disk 2, and the fifth 2
goes back on drive 1. And the same process takes place for file 2 and file
3 so that 'half' the data of *each file* is on each drive.


> Now, when I defrag, it seems like all
> the data is shifted to one of the disks, leaving the other one empty,

Which makes no sense at all because RAID 0 handles the data/drive split and
a RAID 0 array will appear as one drive to the system, and to defrag, and
to you. So there's no way defrag can move the data to 'one of the disks',
or alter the data split in the array, nor would you be able to tell even if
it did.

Look up above at how RAID 0 works. It is not possible to say that a file,
much less all of them, is on 'one disk'. As long as it's larger than the
stripe size it MUST be on both disks, or it isn't a RAID array.

Which leads me to believe you don't have them setup as RAID 0, even though
you may think so, and I suspect you simply put them on the RAID controller
but did not define a RAID array.

> which pratictly blows the whole RAID 0 objective. Am I wrong? If I'm
> right, is there a defrag tool that would split up the data correctly?

Well, not being 'wrong' on one matter doesn't mean your conclusion derived
from it is necessarily right because you're missing a few more bits to the
'how it works' part. Yes, it puts half on each (with a two drive RAID 0
array) but, no, there is no defrag tool that will split it 'correctly'
because it doesn't know a thing about the split, or that there is even more
than one drive. That's all done by the RAID array.

> Thanks,
> Pascal
>
 
G

Guest

Guest
Archived from groups: alt.comp.hardware.pc-homebuilt (More info?)

<pascaljr@gmail.com> wrote in message
news:1127093312.696150.67290@g49g2000cwa.googlegroups.com...
>I have two 120 GB hard disks set up on a RAID 0 setup, and I have a
> question. The main objetive of using a RAID 0 setup is for performance,
> since half of my data will be stored on one disk and the other half is
> stored on the other disk, right? Now, when I defrag, it seems like all
> the data is shifted to one of the disks, leaving the other one empty,
> which pratictly blows the whole RAID 0 objective. Am I wrong? If I'm
> right, is there a defrag tool that would split up the data correctly?
> Thanks,
> Pascal
>
http://www.storagereview.com/guide2000/ref/hdd/perf/raid/levels/singleLevel0.html

I don't know what you're looking at, but it ain't so. RAID 0 will show up
as one disc, 2x120GB hard drive will be one 240GB "D" drive (or whatever).
 
G

Guest

Guest
Archived from groups: alt.comp.hardware.pc-homebuilt (More info?)

In article <1127096377.797519.89460@f14g2000cwb.googlegroups.com>,
pascaljr@gmail.com says...
>
>
>It does show up as one 240 GB hard disk, but after I filled up my
>virtual 240 GB hard disk with 120 GB of data, and I looked at the
>analysis of XP defrag tool, I could clearly see that the RAID stored 60
>GB on one disk and 60 GB on the second disk, because I would see 25% of
>stored data, then 25% of empty space, 25% of stored data, then 25% of
>empty space. After I ran defrag, I got 50% of stored data and 50% of
>empty space. What I figured is that the defrag tool put all my data on
>the first disk, pretty much removing the performance benefit of the
>RAID 0 setup. Am I wrong?


You are making a false assumption about Raid 0, assuming that the defrag
tool shows disk 1 followed by disk 2. You are falsely assuming that the
first 120GB of addresses are on one disk and the next 120 GB of
addresses are on the second disk.

But it aint that way at all... the RAID 0 controller maps the two disks
together as one 240 GB disk, and distributes every file between the two
disks (assuming file size is greater than raid stripe size). The defrag
tool does NOT show this order. The defrag tool cannot see the internals
done internally by the raid controller.

The defrag tool will show similar apparent gaps of addressing on
non-raid disks too.