how to delete a ghost logical volume and filesystem defined in odm

Posted on 2007-08-08
Last Modified: 2013-11-17
I have one LV defined with two filesystems. One of the filesystems was a previously defined on the LV.
The second is a active. I believe I need to do some kind of odmdelete, but not sure exactly.
I attempted to umount the active filesystem and run a fsck on the LV in question. It did not correct the problem. I attempted to change the name of the LV in question and it did not correct the problem either.

If anyone has come across this issue. I would greatly appreciate any assistance.
Question by:crisp31
    LVL 14

    Accepted Solution

    First note that odm editing is powerful magic and you should have made a mksysb before we begin.

    Are you saying that you have two stanzas in /etc/filesystems, each referring to the same /dev/ entry? If so, just delete the incorrect stanza. To find if you have more than one entry in the ODM for this LV, check via "odmget -q name=<lvname> CuAt". If you have more than an incorrect "attribute" stanza,  for example like this:

            name = "lv00"
            attribute = "label"
            value = "/oldfilesystem"
            type = "R"
            generic = "DU"
            rep = "s"
            nls_index = 640

    then you can delete it as follows:

    odmdelete -o CuAt -q "attribute=label and value=/oldfilesystem"

    Author Comment

    Thank you,

    The old filesystem was listed in odm just as you mentioned...and I have removed it just as you mentioned.

    Worth the wait!!!

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Do You Know the 4 Main Threat Actor Types?

    Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

    I have been running these systems for a few years now and I am just very happy with them.   I just wanted to share the manual that I have created for upgrades and other things.  Oooh yes! FreeBSD makes me happy (as a server), no maintenance and I al…
    Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap ( Version 1.2 2.      Jpcap( Version 0.6 Prerequisite: 1.      GCC …
    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.:
    Video by: Phil
    This video goes over how to configure and start a jail in FreeBSD.  This video is meant to supplement the article included with this course.

    737 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

    17 Experts available now in Live!

    Get 1:1 Help Now