You can use fuser -u to find which process. However, that might or night not work. If you know where it is (or was) mounted, that should give you a hint. An easier solution might be to boot into single user mode, umount everything (except for the absolutely necessary stuff), and then lvremove. If it's not mounted, then no processes can start from there and it can be removed.<br>
<br clear="all">-- Asher <br>
<br><br><div class="gmail_quote">On Sun, Jul 19, 2009 at 11:28 AM, Josh Wells <span dir="ltr"><<a href="mailto:joshwells@yahoo.com">joshwells@yahoo.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><div>Figured it out on my own but wanted to share the solution for anyone that happens across this with the same problem.<br><br>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.<br>
<font color="#888888"><br>Josh<br></font><div class="hm"><br><br></div></div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><div class="hm"><br></div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">
<div class="hm"><font size="2" face="Tahoma"><hr size="1"><b><span style="font-weight: bold;">From:</span></b> Josh Wells <<a href="mailto:joshwells@yahoo.com" target="_blank">joshwells@yahoo.com</a>><br><b><span style="font-weight: bold;">To:</span></b> ale <<a href="mailto:ale@ale.org" target="_blank">ale@ale.org</a>><br>
<b><span style="font-weight: bold;">Sent:</span></b> Saturday, July 18, 2009 9:46:13 PM<br><b><span style="font-weight: bold;">Subject:</span></b> [ale] Trouble with volume group config and dmsetup<br></font></div><div class="im">
<br>
<div style="font-family: times new roman,new york,times,serif; font-size: 12pt; color: rgb(0, 0, 0);"><div>Hey guys. Linux noob here so take it easy on me. I'm trying to delete a volume group in openfiler which is using sdd so I can put sdd in an array. Deleting it from the GUI doesn't work. Apparently something went wrong when it was setting up. The vg is vg2 and it has one logical volume that is called backup. I can't delete the logical volume using lvremove because it is open. When I run dmsetup info vg2-backup it shows an open count of 1. Running dmsetup remove vg2-backup doesn't work. I'm guessing that the solution is to figure out what process is accessing the logical volume and kill it but I don't know how to do that. If anyone can point me in the right direction I appreciate it.<br>
<br>Josh Wells<br></div></div><br>
</div></div></div></div><br>
</div><br>_______________________________________________<br>
Ale mailing list<br>
<a href="mailto:Ale@ale.org">Ale@ale.org</a><br>
<a href="http://mail.ale.org/mailman/listinfo/ale" target="_blank">http://mail.ale.org/mailman/listinfo/ale</a><br>
<br></blockquote></div><br>