[ale] Trouble with volume group config and dmsetup

Josh Wells joshwells at yahoo.com
Sun Jul 19 11:28:21 EDT 2009


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


      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.ale.org/pipermail/ale/attachments/20090719/6e8cbda4/attachment.html 


More information about the Ale mailing list