Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I'm trying to create a Raid array and these are the errors I keep getting. I have repartitioned the drives several times.

root@BitchStewie:/dev# sudo mdadm --verbose --create /dev/md1 --chunk=64 --level=0 --raid-devices=12 /dev/sdb1 /dev/sdc1 /dev/sdd1 /dev/sde1 /dev/sdf1 /dev/sdg1 /dev/sdh1 /dev/sdi1 /dev/sdj1 /dev/sdk1 /dev/sdl1 /dev/sdm1
mdadm: super1.x cannot open /dev/sdb1: Device or resource busy
mdadm: ddf: Cannot use /dev/sdb1: Device or resource busy
mdadm: Cannot use /dev/sdb1: It is busy
mdadm: device /dev/sdb1 not suitable for any style of array
share|improve this question
    
Do i need to format the drives too? I just created the partition. –  JGazlyVFX Mar 9 '12 at 0:01
    
You should not be creating a 12 disk raid0. If any one of the 12 goes, you lose the whole array, so you greatly increase your chances of data loss over just using a single disk. You should be using raid5 or for an array of that size, raid6 so you can handle one or two disks failing. Also check /proc/mdstat. –  psusi Jan 11 '13 at 19:33
    
What is the output of mount | grep /dev/sdb1? –  Danatela Sep 4 '13 at 5:53
add comment

2 Answers

Are the /dev/sdb1 etc.. mounted in /media or anything? Sounds like Ubuntu may have auto mounted it somewhere.

Also check out http://en.wikipedia.org/wiki/Mdadm the "Known Issues" section has a solution if the dmraid driver has taken control. (You get the same device busy error)

share|improve this answer
add comment

You can try create the mdadm disk booting with kernel parameter init=/bin/bash

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.