RAID

Video Activity
Join over 3 million cybersecurity professionals advancing their career
Sign up with
Required fields are marked with an *
or

Already have an account? Sign In »

Time
35 hours 25 minutes
Difficulty
Advanced
Video Transcription
00:00
>> In our last section,
00:00
we talked about the importance of having spares,
00:00
spare drives, spare components in case of failure.
00:00
We did talk about just very
00:00
briefly having spare hard drives.
00:00
But the assumption there,
00:00
when I talk about a hard drive as
00:00
a spare, it's just that.
00:00
It is a spare hardware element.
00:00
It's a spare drive.
00:00
Not only would I have to re-install that drive,
00:00
but that I'd have to restore the data on it.
00:00
If we want a higher degree of availability,
00:00
what we may choose to implement is RAID.
00:00
Now, RAID stands for
00:00
Redundant Array of Independent Disks,
00:00
or Redundant Array of Inexpensive Disks,
00:00
or inexpensive devices,
00:00
or inexpensive drives, or independent.
00:00
For every book you're going to read,
00:00
there's a slightly different meaning for the acronym.
00:00
But the important piece is,
00:00
it's a redundant array of devices,
00:00
specifically hard drives, that act as
00:00
a single logical unit in
00:00
order to provide fault tolerance and redundancy.
00:00
Now, our main types of RAID are 0, 1 and 5.
00:00
I think that would be all you would see on the exam.
00:00
But I'm also just going to
00:00
very briefly mention RAIDs 6 and 10,
00:00
just on the off chance that that would come into play.
00:00
Then of course, we'll talk about
00:00
the appropriate uses for each of these types of RAIDs.
00:00
Let's start off with RAID 0.
00:00
I've just said it stands for
00:00
Redundant Array of Independent Devices.
00:00
Of course, now I'm going to tell you
00:00
RAID 0 is not redundant.
00:00
If it were up to me,
00:00
I would call it aid because
00:00
there is no redundant array here.
00:00
You do have multiple physical disks
00:00
still acting as a single logical entity,
00:00
which means I might have four hard drives.
00:00
But when you go to store a file,
00:00
it just looks like a single drive to you,
00:00
so it's multiple physical but a single logical disk.
00:00
What happens with RAID 0,
00:00
it's not for fault tolerance or redundancy,
00:00
but it does give me a performance boost.
00:00
You're not going to see this on
00:00
the majority of your servers.
00:00
You might see it on client systems,
00:00
or the one exception to
00:00
a server you may see this on would
00:00
be a media streaming server because we need that speed.
00:00
We don't want to sit there while
00:00
our my movie is buffering.
00:00
What RAID 0 does is it takes data in chunks.
00:00
Let's say I've got 24K worth of data,
00:00
RAID 0 might chunk that into two 12K chunks.
00:00
The first 12K is written to disk 1,
00:00
and the second 12K is written to disk 2.
00:00
What that means is, we get
00:00
a simultaneous write instead of sequential write.
00:00
If all things were exactly the way they would,
00:00
we would be able to write twice as fast.
00:00
It also helps reading as
00:00
well because while disk 1 is reading,
00:00
disk 2 is finding
00:00
the location that needs to be read from next.
00:00
It gives us that performance boost.
00:00
But if either of those drive fail,
00:00
then we run the risk of losing all our data.
00:00
Now a more redundant solution,
00:00
as matter of fact, the one that has
00:00
the highest availability is RAID 1.
00:00
This is something called disk mirroring.
00:00
It's exactly what it sounds like.
00:00
I have two physical disks
00:00
that are exact replicas of each other.
00:00
If disk 1 fails,
00:00
it is very quick and very easy to point to disk 2,
00:00
and hardly evenly lose a beat.
00:00
It's very quick switchover.
00:00
However, many consider this to
00:00
be an inefficient use of disk space.
00:00
I go out and I buy two five terabyte drives,
00:00
I have 10 terabytes worth of space,
00:00
but I can only use five terabytes
00:00
because the second five terabytes
00:00
is there for redundancy.
00:00
You get the high availability,
00:00
but it's considered by many wasteful.
00:00
Now to tell you the truth,
00:00
hard drives are so cheap
00:00
today that that's not the concern that it used to be.
00:00
But back when you were paying $500, $600,
00:00
$700 for any amount of decent hard drive space,
00:00
that was pretty significant.
00:00
Now the third type of
00:00
RAID gives us the best of both worlds.
00:00
It gives us the speed of RAID 0 and we get redundancy.
00:00
We don't get redundancy that is as quick as mirroring.
00:00
What I mean by it's not as quick to switch over.
00:00
With disk mirroring,
00:00
if one disk fails, boom,
00:00
you just swap over to the second disk,
00:00
you're good to go.
00:00
With RAID 5,
00:00
if a disk fails,
00:00
it has to be rebuilt from
00:00
parity information stored on other disks.
00:00
This is called disk striping with parity.
00:00
The other two RAIDs require
00:00
just a minimum of two physical disks,
00:00
RAID 5 requires three physical disks.
00:00
So we might have disk 1, 2, and 3.
00:00
Data for disk 1 is written to disk 2.
00:00
When I say data, I mean parity,
00:00
and that parity information is used
00:00
to rebuild the drive in the event of a failure.
00:00
Parity from disk 1 is written to disk 2,
00:00
parity from disk 2 is written to 3 and so on.
00:00
There's parity reserved on each disk for another disk,
00:00
so we get fault tolerance and we get speed.
00:00
Very popular choice, except the fact that rebuilding
00:00
disks like we would have to do
00:00
in RAID 5 is very intensive.
00:00
It's not unusual for
00:00
the disk that we're rebuilding to fail.
00:00
RAID 6 actually gives us two parity disks.
00:00
It's just like RAID 5,
00:00
but it gives us extra fault tolerance by having
00:00
that fourth disk in the event that we have to rebuild.
00:00
Then I'll just mention also there's RAID 10,
00:00
or you could see at 0 plus 1 or 1 plus 0.
00:00
When you see double-digit RAID,
00:00
that means we're combining different types of RAID.
00:00
We've already said, disk striping,
00:00
if we have a striped set, it's not redundant.
00:00
But what if I take that stripe set and
00:00
mirror it to another striped set?
00:00
Well, then I get speed and high availability,
00:00
and that's what RAID 10 gives us.
00:00
Like I said, I think you'd see
00:00
your questions on 0, 1, and 5,
00:00
and just the significance for having
00:00
redundant drives and the different types
00:00
of RAID that exist.
00:00
That's what we've talked about in this last section,
00:00
focus on 0,
00:00
1 and 5 for RAID.
00:00
Remember, RAID 0 is not fault tolerant,
00:00
and really it's best usage
00:00
is going to be on a media streaming server.
00:00
But with RAID 1,
00:00
because of the high availability,
00:00
maybe you'd consider it on
00:00
a domain controller or something like that.
00:00
Then we looked at RAID 5,
00:00
6 and 10 as well.
00:00
Your needs for redundancy are
00:00
going to drive which RAID you use.
Up Next