ITEM: E7815L

I am getting odm doesn't match volume group descriptor.


Question:

I am running AIX 3.2.2 on a RISC System/6000 Model 320.  This machine
has had multiple hard disks, volume groups, and logical volumes added 
and deleted.  It appears that this was not done properly because now
when I boot the machine, I get an error about the ODM & VG Descriptor 
Areas not matching. Another error I am getting is 0516-952 "Need to 
varyoffvg followed by a varyonvg -1m".  I tried the varyoffvg and got 
an error.

I currently have three disks, hdisk0-hdisk2.  It appears I have 8 
volume groups defined, 5 of which are not valid.  The valid volume
groups are named rootvg, vg00, and vg01.  How can I delete the
invalid groups from my ODM?

Response:

Here are the steps to follow in order to fix your ODM.  Please be
careful when using the following procedures.  The putlvodm command
will erase information from the ODM only, but you want to be care-
ful that you do not erase the information about the existing volume
groups.

*NOTE* Before using the following procedure, save the current version 
       of your /etc/objrepos/Cu* files, in case you want to go back to
       that version at some time.  (In the following commands, replace
       "mmmdd" with the month and day, such as "jan01".)

          cd /etc/objrepos
          cp CuAt cuat.mmmdd
          cp CuDep cudep.mmmdd
          cp CuDv cudv.mmmdd
          cp CuDvDr cudvdr.mmmdd

1) Check the ODM and see if any physical volumes other than
   hdisk0 - hdisk2 are defined:

     odmget -q "attribute=pvid" CuAt | pg

   Record the PVID for any physical volume that does not belong on
   the system.

2) Record the VGIDs for all volume groups that need to be removed:

     odmget -q "attribute=vgserial_id" CuAt | pg

   If you are interested in seeing the PVIDs associated with each
   VG, you can list out the information about each VG with the
   following command:

     odmget -q "name=VGNAME and attribute=pv" CuAt

   where  VGNAME is the name of the volume group.

3) For each volume group that needs to be removed, record its 
   associated LVIDs:

     odmget -q "value like VGID.*" CuAt | pg

   where VGID is the volume group identifier.

4) Remove the filesystems associated with the logical volume to be 
   removed:

     cp /etc/filesystems /etc/filesystems.bak
     vi /etc/filesystems (remove or comment out stanzas associated 
                          with the bad logical volumes)

5) Remove the logical volumes from the ODM:

     putlvodm -L LVID

   where LVID is the logical volume ID of the LV to remove (see step 3)

6) Remove all physical volumes from the phantom volume groups (if any 
   exist):

     putlvodm -P PVID

   where PVID is the physical volume ID of the PV to remove (see step 1)

7) Remove the volume groups:

     putlvodm -V VGID

   where VGID is the volume group ID of the VG to remove (see step 2)

8) If any of the logical volumes that were removed were paging
   spaces, then you should check the /etc/swapspaces file and
   remove all of stanzas corresponding to the removed paging
   spaces.

This should clean up the ODM on your system.


Support Line: I am getting odm doesn't match volume group descriptor. ITEM: E7815L
Dated: November 1993 Category: N/A
This HTML file was generated 99/06/24~13:30:53
Comments or suggestions? Contact us