[ale] Trouble with volume group config and dmsetup
Josh Wells
joshwells at yahoo.com
Mon Jul 20 20:29:22 EDT 2009
Thanks for the tip. How do you boot into single user mode?
Josh
________________________________
From: Asher Vilensky <ashervilensky at gmail.com>
To: Atlanta Linux Enthusiasts - Yes! We run Linux! <ale at ale.org>
Sent: Monday, July 20, 2009 12:05:09 PM
Subject: Re: [ale] Trouble with volume group config and dmsetup
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.
-- Asher
On Sun, Jul 19, 2009 at 11:28 AM, Josh Wells <joshwells at yahoo.com> wrote:
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.
>
>Josh
>
>
>
>
>
>
>
________________________________
From: Josh Wells <joshwells at yahoo.com>
>To: ale <ale at ale.org>
>Sent: Saturday, July 18, 2009 9:46:13 PM
>Subject: [ale] Trouble with volume group config and dmsetup
>
>
>
>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.
>
>Josh Wells
>
>
>
>_______________________________________________
>>Ale mailing list
>Ale at ale.org
>http://mail.ale.org/mailman/listinfo/ale
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.ale.org/pipermail/ale/attachments/20090720/6ae7c5b1/attachment-0001.html
More information about the Ale
mailing list