<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman,new york,times,serif;font-size:12pt"><div>Thanks for the tip. How do you boot into single user mode?<br><br>Josh<br></div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><font size="2" face="Tahoma"><hr size="1"><b><span style="font-weight: bold;">From:</span></b> Asher Vilensky &lt;ashervilensky@gmail.com&gt;<br><b><span style="font-weight: bold;">To:</span></b> Atlanta Linux Enthusiasts - Yes! We run Linux! &lt;ale@ale.org&gt;<br><b><span style="font-weight: bold;">Sent:</span></b> Monday, July 20, 2009 12:05:09 PM<br><b><span style="font-weight: bold;">Subject:</span></b> Re: [ale] Trouble with volume group config and dmsetup<br></font><br>
You can use fuser -u to find which process.&nbsp; However, that might or night not work.&nbsp; If you know where it is (or was) mounted, that should give you a hint.&nbsp; An easier solution might be to boot into single user mode, umount everything (except for the absolutely necessary stuff), and then lvremove.&nbsp; 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">&lt;<a rel="nofollow" ymailto="mailto:joshwells@yahoo.com" target="_blank" href="mailto:joshwells@yahoo.com">joshwells@yahoo.com</a>&gt;</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 &lt;<a rel="nofollow" ymailto="mailto:joshwells@yahoo.com" target="_blank" href="mailto:joshwells@yahoo.com">joshwells@yahoo.com</a>&gt;<br><b><span style="font-weight: bold;">To:</span></b> ale &lt;<a rel="nofollow" ymailto="mailto:ale@ale.org" target="_blank" href="mailto:ale@ale.org">ale@ale.org</a>&gt;<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 rel="nofollow" ymailto="mailto:Ale@ale.org" target="_blank" href="mailto:Ale@ale.org">Ale@ale.org</a><br><span>
<a target="_blank" href="http://mail.ale.org/mailman/listinfo/ale">http://mail.ale.org/mailman/listinfo/ale</a></span><br>
<br></blockquote></div><br>
</div></div></div><br>



      </body></html>