Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Is it possible to use Linux software raid with different sized hard drives? What will happen?

Related

share|improve this question
add comment

2 Answers

up vote 2 down vote accepted

Yes it is possible. Linux software raid works at the partition level not disk level.

Yyou have to use partitions with the same size on both disks wasting space on the larger disk.

From a theoretical point of view you could even use multiple partitions from the same disk but this is not recommended and it will decrease the reliability.

share|improve this answer
1  
You don't need to "waste" the space on the larger disk. You can still use it. It just won't have the RAID protection against failure. Also, using it will affect the performance of the RAIDed partitions. –  Slartibartfast Nov 18 '10 at 5:06
    
That is right, what I meant by wasted is that it wouldn't we part of the array. You could use it as a swap partition for example. –  rjlopes Nov 18 '10 at 14:50
add comment

yes, if you partition the disks to be the same size. Basically what'll happen is the usable area of each disk will equal the size of the smallest.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.