Welcome to Linux Forums!

With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.

Linux Forum ArticlesLinux ForumsLinux Forum DownloadsLinux Hosts
Home|Register|FAQ|Member List|Calendar|Unanswered Posts|Forum Rules|Today's Posts|Advanced Search|
SEARCH FOR IN
Go Back   Linux Forums > Your Distro > Redhat / Fedora Linux Help
Reload this Page Resetting dmsetup open count
Linux Forums
Linux Forums
Welcome To The Linux Forums!
Welcome to Linux Forums. We pride ourselves in being one of the largest Linux communities on the web, we encourage you to REGISTER on our forums and participate in the community. There are over 150,000 members ready to answer your questions. JOINING US today will allow you to make new posts, get support, send messages to other members and submit downloads to our downloads directory and many other great features!

Redhat / Fedora Linux Help Help and discussion related to Redhat and Fedora Linux.

Reply
 
Thread Tools Display Modes
Old 07-02-2008   #1 (permalink)
peterlavin
Just Joined!
 
Join Date: Jul 2008
Posts: 1
Resetting dmsetup open count

I am attempting to remove a LVM in CentOS 5. I am getting the following message...

Can't remove open logical volume "lvm_name"

I can delete the link... /dev/vg01/lvm_name and also delete the associated block... /dev/mapper/vg01-lvm_name.

However, when I attempt to recreate the LVM using the same name (I need to use the same name). I get a message that the LVM already exists. I have traced this to dmsetup, where running dmsetup info vg01-lvm_name reveals...

[root@tg26 mapper]# dmsetup info vg01-lvm_name
Name: vg01-lvm_name
State: ACTIVE
Tables present: LIVE
Open count: 1
Event number: 0
Major, minor: 253, 63
Number of targets: 1
UUID: LVM-CT2Hz7dN6TLC3c8DydQ8nIenwjSmA8CI1yrsTLQy7Ip1Cxetz3 JrdQArvsgBqDsj

I may be able to reset this Open count by rebooting the machine but this is the least preferred option. Is there a was of resetting this 'Open count' in the dmsetup records without rebooting the system. My dmsetup version is pre- 4.8.0 so I cannot use the lvmrevove -f option.

Peter
peterlavin is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT. The time now is 07:37 PM.




© 2000 - 2008 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.0.0