Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 964
  • Last Modified:

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

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.
0
crisp31
Asked:
crisp31
1 Solution
 
sjm_eeCommented:
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:

CuAt:
        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"
0
 
crisp31Author Commented:
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!!!
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now