LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-07-2012, 07:45 AM   #1
eponymous
Member
 
Registered: Oct 2004
Distribution: Gentoo
Posts: 78

Rep: Reputation: 15
Failed to stop array: device or resource busy RAID/DMCrypt


Hi,

I've set up encryption using dmcrypt/luks on my /dev/md0 which is a RAID0 array.

It seems I'm running into issues when I do a reboot or halt in that it doesn't stop the array properly. I never had this issue until I encrypted the disks.

/dev/md0 is just three disks which are used as a backup store - no root, boot or swap on these.

/var/log/rc.log:

Code:
1340  [ ok ]
1341  * Shutting down RAID devices (mdadm) ...
1342 mdadm: stopped /dev/md1
1343 mdadm: failed to stop array /dev/md0: Device or resource busy
1344 Perhaps a running process, mounted filesystem or active volume group?
1345  [ !! ]
1346  * ERROR: mdraid failed to stop
1347  * Removing dm-crypt mappings
1348  *   crypt_backup ...
1349  [ ok ]
1350  *   crypt_md0 ...
1351  [ ok ]
Note: I'm not using dmraid here.

Should the RAID devices not be stopped after the dm-crypt mappings are removed? If so, how do you change that order?
 
  


Reply

Tags
dmcrypt, failed, md, mdadm, raid



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
[SOLVED] mdadm raid inactive, assemble fails with Device or resource busy blackman890 Linux - Server 7 12-14-2014 04:43 PM
Debian 5 mdadm "device or resource busy" raid edwardzc Debian 1 12-27-2010 04:52 AM
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 teeno Linux - Newbie 3 03-09-2004 10:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:32 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