Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Software RAID5 question??
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
redgsturbo
Apprentice
Apprentice


Joined: 24 Jun 2005
Posts: 283

PostPosted: Tue Oct 02, 2007 4:54 pm    Post subject: Software RAID5 question?? Reply with quote

How many drives MUST I have for software RAID5? I know the answer is 3 for it to be worthwhile, but I know you can create expandable arrays and create arrays with one drive missing (with no protection in that scenario). What I want to do is create a 2 disk array in raid 5 of 750G drives (logically speaking: one data drive, one parity drive), and grow that to an eventual 4 or 6 as $$ allows and space requires. Can this be done? I just want the system up and useful now, without having to cough up $1k in drives just yet
Back to top
View user's profile Send private message
lagalopex
Guru
Guru


Joined: 16 Oct 2004
Posts: 565

PostPosted: Tue Oct 02, 2007 5:15 pm    Post subject: Reply with quote

Just build the raid5 with two disks.
When you have more disks, you can grow the array. Just take care that you need to resize the fs after that ;)
Back to top
View user's profile Send private message
razze
Apprentice
Apprentice


Joined: 09 Mar 2005
Posts: 161
Location: Espoo, Finland

PostPosted: Tue Oct 02, 2007 5:28 pm    Post subject: Reply with quote

Hello!

You can create the array at the moment, but it will not be fully functional but work in degraded mode. The performance will probably not be as good as with at least three disks, but the most important: you will NOT have any redundancy at all, as the one drive that can fail is already missing! You will, however, have the same amount of available disk space, so once you add a third drive, the array will be fully functional.

Basically you just create an array with three disk with one of them missing.
<fixed typos>
_________________
--------------------------
Linux User #393524

AMD Athlon 64 X2 3800+ @2,3 GHz, Asus A8V, VIA K8T800PRO, Nvidia GeForce 7600GS, 2 Gb Dual Channel DDR RAM, 2x Samsung SP120 200Gb, 2x WD 320Gb, Plextor PX-716A, linux-2.6.31-gentoo-r10
Back to top
View user's profile Send private message
redgsturbo
Apprentice
Apprentice


Joined: 24 Jun 2005
Posts: 283

PostPosted: Tue Oct 02, 2007 5:59 pm    Post subject: Reply with quote

razze wrote:
Hello!

You can create the array at the moment, but it will not be fully functional but work in degraded mode. The performance will probably not be as good as with at least three disks, but the most important: you will NOT have any redundancy at all, as the one drive that can fail is already missing! You will, however, have the same amount of available disk space, so once you add a third drive, the array will be fully functional.

Basically you just create an array with three disk with one of them missing.
<fixed typos>


this would only be the case if i started with a 3 drive array of which only 2 were present... i was wondering if i can start with a 2 drive array of 2 drives
Back to top
View user's profile Send private message
Cyker
Veteran
Veteran


Joined: 15 Jun 2006
Posts: 1746

PostPosted: Tue Oct 02, 2007 9:19 pm    Post subject: Reply with quote

*Technically*, you MUST have a minimum of 3 drives for RAID5.

RAID5 is a bit like RAID0, but with a parity block, so you need 2 disks for the data, and a third for the parity block minimum.
This allows a single drive to fail without you loosing any data.

You *can* do it with two, but this is a big hack because you're essentially making a degraded RAID5 array, i.e. one that has already lost a disk.

In this mode, you've essentially got a really slow 2-disk RAID0 array (i.e. the worst of both worlds; Slowness of RAID5 and non-redundancy of RAID0)

Now, you *can* do this, and pray that your array doesn't crash until you can afford a third disk, but at that point you won't gain any data space, just get the redundancy back incase one of the disks fails.


My opinion: Don't do it.

If you want speed and don't care about redundancy, use RAID0 and convert to RAID5 after.

If you want data security, use RAID1 and convert to RAID5 after.

(Assuming you can convert after... anyone want to weigh in on that? NB: Copying all the data off and then rebuilding the array is *NOT* converting!)
Back to top
View user's profile Send private message
redgsturbo
Apprentice
Apprentice


Joined: 24 Jun 2005
Posts: 283

PostPosted: Tue Oct 02, 2007 11:45 pm    Post subject: Reply with quote

Cyker wrote:
*Technically*, you MUST have a minimum of 3 drives for RAID5.

RAID5 is a bit like RAID0, but with a parity block, so you need 2 disks for the data, and a third for the parity block minimum.
This allows a single drive to fail without you loosing any data.

You *can* do it with two, but this is a big hack because you're essentially making a degraded RAID5 array, i.e. one that has already lost a disk.

In this mode, you've essentially got a really slow 2-disk RAID0 array (i.e. the worst of both worlds; Slowness of RAID5 and non-redundancy of RAID0)

Now, you *can* do this, and pray that your array doesn't crash until you can afford a third disk, but at that point you won't gain any data space, just get the redundancy back incase one of the disks fails.


My opinion: Don't do it.

If you want speed and don't care about redundancy, use RAID0 and convert to RAID5 after.

If you want data security, use RAID1 and convert to RAID5 after.

(Assuming you can convert after... anyone want to weigh in on that? NB: Copying all the data off and then rebuilding the array is *NOT* converting!)


I understand how all the raid levels work... but what I'm wondering is if the parity block can't be calculated from ONE other block (yes... stupid, but may allow seamless integration of more drives later)
Back to top
View user's profile Send private message
Cyker
Veteran
Veteran


Joined: 15 Jun 2006
Posts: 1746

PostPosted: Wed Oct 03, 2007 7:27 am    Post subject: Reply with quote

Mmm... an intriguing question... It'd be sortof like RAID1, except both drives are different...

I don't think mdadm supports such a thing however :(; I /believe/ that it can only just create a degraded array (1 disk's worth of half-data, the other 1-disk's worth of parity which is calculated to make up the rest of the half-data)...

I could be wrong 'tho ;)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum