LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 01-16-2010, 11:45 AM   #1
oehq
LQ Newbie
 
Registered: Apr 2009
Posts: 2

Rep: Reputation: 0
Device or resource busy


Hello,
I am trying to set up a mdadm raid in a new machine that I am building as a home theatre PC.
any help here would be greatly appreciated.

the machine boot just fine from /dev/sdc running ubuntu 9.10
However in gparted /dev/sda and dev/sdb show to be part of /devmapper/sil_ajbicfacbaej

Both dev/sda and /dev/sdb were drives that used to be part of a sil hardware raid on a previous machine. I would like to use them as a new mdadm raid on this new machine the old hardware card was really quite slow. the drives are now pluged into the MB and should be much faster there.


fdisk -l shows this
***********************************************
heffsvr2@heffsvr-2:~$ sudo fdisk -l

Disk /dev/sda: 1500.3 GB, 1500301910016 bytes
255 heads, 63 sectors/track, 182401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x000cc314

Device Boot Start End Blocks Id System

Disk /dev/sdb: 1500.3 GB, 1500301910016 bytes
255 heads, 63 sectors/track, 182401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x000cc314

Device Boot Start End Blocks Id System

Disk /dev/sdc: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x000e95c0

Device Boot Start End Blocks Id System
/dev/sdc1 * 1 29367 235890396 83 Linux
/dev/sdc2 29368 30401 8305605 5 Extended
/dev/sdc5 29368 30401 8305573+ 82 Linux swap / Solaris
************************************************
cat /proc/mdstat show the folowing

heffsvr2@heffsvr-2:~$ cat /proc/mdstat
Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10]
unused devices: <none>
**************************************************
Creating mdadm produces the following

heffsvr2@heffsvr-2:~$ sudo mdadm --create --verbose /dev/md0 --level=1 --raid-devices=2 /dev/sda /dev/sdb
mdadm: Cannot open /dev/sda: Device or resource busy
mdadm: Cannot open /dev/sdb: Device or resource busy

************************************************** ******
I tried the command
sudo dmsetup remove /dev/mapper/sil_ajbicfacbaej

it produces no errors but does not remove it.
Any Ideas as to how to start over and use these drives in mdadm??

Thanks for your help
 
Old 01-20-2010, 08:47 AM   #2
16pide
Member
 
Registered: Jan 2010
Posts: 418

Rep: Reputation: 83
Quote:
Originally Posted by oehq View Post
heffsvr2@heffsvr-2:~$ sudo mdadm --create --verbose /dev/md0 --level=1 --raid-devices=2 /dev/sda /dev/sdb
mdadm: Cannot open /dev/sda: Device or resource busy
mdadm: Cannot open /dev/sdb: Device or resource busy
This may help:
You could try this command:
fuser -vm /dev/sdb1
or
fuser -vm /dev/sdb

it will tell you which process is busy with that device.

mdadm -S xxxxxx
may help you remove an existing raid
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Error opening PCM device Device or resource busy Herbivore Linux - Newbie 2 08-23-2008 01:45 AM
Can't open audio device. Device or resource busy. deepumnit Linux - Software 2 06-16-2008 09:36 AM
Device or Resource Busy ..by what xrado Linux - General 1 04-23-2005 06:05 AM
Device or resource busy mikedurant Linux - Newbie 4 03-29-2005 07:52 PM
Device or resource busy teeno Linux - Newbie 3 03-09-2004 10:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 03:26 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration