Remove LV RHEL5

Posted on 2011-04-19
Last Modified: 2012-06-22
How do I remove a logical volume on RHEL5

This is the error
# lvremove /dev/VolGroup00/appftphome
  Can't remove open logical volume "appftphome"

 #dmsetup info -c /dev/VolGroup00/appftphome
Name                  Maj Min Stat Open Targ Event  UUID
VolGroup00-appftphome 253  12 L--w    1    1      0 LVM-KJse367Smlo0hmJWoc6QPRvhb4KtmxVavI8cIR52UW08hW1oW5tDOmeaZEDLfdhk
Question by:mnis2008
    1 Comment
    LVL 38

    Accepted Solution

    1. Umount the filesystem on that lV
    2. lvchange -a y /dev/VolGroup00/appftphome (Make sure the Logic Volume is active)
    3. lvremove -f /dev/VolGroup00/appftphome   (Remove the Logic Volume)

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Enabling OSINT in Activity Based Intelligence

    Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

    I am a long time windows user and for me it is normal to have spaces in directory and file names. Changing to Linux I found myself frustrated when I moved my windows data over to my new Linux computer. The problem occurs when at the command line.…
    If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
    Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
    Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

    760 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now