Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

Currently I'm using LVM just to merge a few disks of different size. I want to know if it is possible to use mdadm with stripes instead of LVM?

Will it give me additional performance? Will it use all the space across disks of different size?

share|improve this question
add comment

1 Answer

up vote 3 down vote accepted

However, there is no big difference in raid0 and lvm stripe; seems lvm is better choice.

raid0 with mdadm supports drives with different size and its size equals to sum capacity of drives.

Unfortunately raid0 mdadm can't add new drives without rebuilding the whole raid, however lvm does.

share|improve this answer
    
ok, can you provide some info about how to create this kind of lvm (with stripes) any links –  sss123next Apr 8 '12 at 17:37
    
also found some benchmarks which shows that mdadm faster than lvm (i think i this array will never changed during it's lifetime) –  sss123next Apr 8 '12 at 20:59
    
The size is the number of drives times the smallest drive. Raid can't use partial space from the larger drive; it has to have equal amounts from each. –  psusi Apr 8 '12 at 23:06
    
ok, is lvm with stripes can be used on drives with different size ?, or it have same limitations as md ? –  sss123next Apr 9 '12 at 14:45
    
i made little research and found what mdadm stripes can use disks with different size, currently i have following major minor #blocks name 8 5 488636416 sda5 8 16 488386584 sdb 9 127 977020928 md127 md127 maid from sda5 and sdb, sum off sizes is 977023000, so i lost 2072, but if calculate sum of smallest (488386584) devices i should lost 249832 instead –  sss123next Apr 9 '12 at 16:13
show 2 more comments

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.