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.

We have an existing /dev/sda disk, we are adding an identical /dev/sdb

I want to place these two disks in a raid-0 array.

Can I do that without reformating /dev/sda?

share|improve this question

1 Answer 1

up vote 5 down vote accepted

No. But you can create a RAID-0 array containing only /dev/sdb, copy the data from /dev/sda to /dev/md0 , then add /dev/sda to the array. Voila, data preserved!

share|improve this answer
    
Note that you don't format sda, you just add it to the array. –  psusi Apr 18 '13 at 14:12
    
@psusi: Good point, edited. –  Piskvor Apr 18 '13 at 16:39

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.