Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 07-19-2009, 10:06 AM   #1
LQ Newbie
Registered: Jul 2009
Posts: 2

Rep: Reputation: 0
Can't remove lv with dmsetup - "Device or resource busy"

I am trying to remove a volume group on a single drive that contains a single logical volume. This is on openfiler which I believe is CentOS based.

dmsetup info vg2-backup shows an open count of 1.

Try running dmsetup remove vg2-backup but it fails because it says device or resource busy.

How do I find the process that is tying this up so I can kill it and remove the lv and then volume group?
Old 07-19-2009, 10:28 AM   #2
LQ Newbie
Registered: Jul 2009
Posts: 2

Original Poster
Rep: Reputation: 0
Figured it out on my own but wanted to share the solution for anyone that happens across this with the same problem.

Ran cat /proc/mounts and saw /dev/vg2/backup was mounted. Did umount /dev/vg2/backup and then ran dmsetup info vg2-backup. Open count was now 0 and I was able to successfully run dmsetup remove command. Followed that up with lvremove and vgremove.


lvm, openfiler, remove

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
The "init_module: Device or resource busy" message in the 2.4.26 kernel. tommyclee Linux - Kernel 3 12-30-2008 07:09 PM
Wireless RT2500, "Device or resource busy" in Ubuntu puggers Linux - Hardware 2 10-22-2006 01:18 PM
gnomemeeting crashed, now i got "video0: Device or resource busy" B sirpelidor Linux - Hardware 0 01-10-2005 03:02 AM
nvidia insmod: "Device or resource busy" w/GeForce 4 MX KeithSpook Linux - Hardware 4 03-03-2004 12:21 PM
"/dev/dsp: Device or resource busy" Cdzin Linux - Hardware 4 02-25-2004 06:39 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:07 AM.

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