Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Unable to create software raid device (Solution)
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
Woody2143
n00b
n00b


Joined: 26 Mar 2003
Posts: 19
Location: Atlanta, GA

PostPosted: Tue Mar 16, 2010 2:00 pm    Post subject: Unable to create software raid device (Solution) Reply with quote

I ran in to this today and since I was unable to find an answer I figured I would post one.

I was previously using the fake-raid provided by the bios. After running in to a couple of problems and banging my head against the table I decided to use the software raid with better control.

I was attempting to create the /dev/md1 device per the instructions and kept running in to the error:

# mdadm --create /dev/md1 --level=1 --raid-devices=2 /dev/sdb1 /dev/sdc1
mdadm: device /dev/sdb1 not suitable for any style of array

After some looking I found that adding --verbose gave me a better idea of the problem:
# mdadm --verbose --create /dev/md1 --level=1 --raid-devices=2 /dev/hdb1 /dev/hdd1
mdadm: super0.90 cannot open /dev/hdb1: Device or resource busy
mdadm: super1.x cannot open /dev/hdb1: Device or resource busy
mdadm: ddf: Cannot use /dev/hdb1: Device or resource busy
mdadm: Cannot use /dev/hdb1: It is busy
mdadm: device /dev/hdb1 not suitable for any style of array

I ran 'lsof' but was unable to find anything using my device.

I then got to thinking that despite removing the software raid in the bios it was still on the OS.

I checked dmtab but nothing was in there so I ran 'dmsetup table' and sure enough a device was still listed.

I used 'dmsetup remove sil_ajadaccdfcac' and the device was deleted.

After that it let me create the md device.

I hope this helps out should someone else run in to this problem.
_________________
-- Woody2143
Back to top
View user's profile Send private message
richard.scott
Veteran
Veteran


Joined: 19 May 2003
Posts: 1497
Location: Oxfordshire, UK

PostPosted: Tue Mar 23, 2010 2:01 pm    Post subject: Reply with quote

it sounds like you already have your device mounted... or in use by the fake raid.

What kernel boot options did you provide? you won't easily be able to convert a fake raid system to a software raid system while its running.
You'd need to make a backup (just in case) and boot from a LiveCD to create the mirror.

Rich
Back to top
View user's profile Send private message
Woody2143
n00b
n00b


Joined: 26 Mar 2003
Posts: 19
Location: Atlanta, GA

PostPosted: Tue Mar 23, 2010 2:10 pm    Post subject: Reply with quote

richard.scott wrote:
it sounds like you already have your device mounted... or in use by the fake raid.

What kernel boot options did you provide? you won't easily be able to convert a fake raid system to a software raid system while its running.
You'd need to make a backup (just in case) and boot from a LiveCD to create the mirror.

Rich


Once I deleted the old raid device it let me create the software raid device. I was able to work through the problem I was just hoping to help someone else just in case they ran in to the same error. I may not have been able express my thoughts clear enough though.
_________________
-- Woody2143
Back to top
View user's profile Send private message
the_mgt
Apprentice
Apprentice


Joined: 05 Aug 2005
Posts: 259
Location: Germany, near Hannover

PostPosted: Sun May 02, 2010 6:46 pm    Post subject: Reply with quote

Have you converted the raid from dm to md with all the data on the partitions? And it did work as in "all data is safe"?

I am trying to get rid of my dm in favour of md, too. (Of course i will do a full backup, but I am curious if it is that simple!)

edit: typo? is it "safe" or "save"? :roll:
_________________
Citadel Groupware | Avahi Howto
Back to top
View user's profile Send private message
richard.scott
Veteran
Veteran


Joined: 19 May 2003
Posts: 1497
Location: Oxfordshire, UK

PostPosted: Tue May 04, 2010 9:32 am    Post subject: Reply with quote

I don't think you can do that as the md device is a layer between the filesystem and the disk
dm just duplicates the filesystem, and works at a higher level to md.

Your best bet will be to backup your data and start from scratch.

Rich
p.s. its safe :)
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