Volume group delete is not possible

Hello experts, I can�t remove the vg vgnet after Storage removal (hdisk10)

AIX 7.1 TL 3

/ HOMOLOG > lsvg                                                                
rootvg                                                                          
datavg                                                                          
vgnet                                                                           
vgtemp                                                                          
 
/etc HOMOLOG > lspv                                                       
hdisk0          00f9447919741a23                    rootvg          active
hdisk1          0009d1b2e8583fb6                    datavg          active
hdisk2          0009d1b2e8586cad                    datavg          active
hdisk3          0009d1b2e8589f5d                    datavg          active
hdisk4          0009d1b2e858ee11                    datavg          active
hdisk5          0009d1b2e8591724                    datavg          active
hdisk6          0009d1b2e8593fdf                    datavg          active
hdisk7          0009d1b2e8596b01                    datavg          active
hdisk8          0009d1b2e8598ee6                    datavg          active
hdisk9          00c6de4ab25f8034                    datavg          active
hdisk10         00f94479c30e8a97                    vgnet           active
hdisk11         00f94479fefbf98b                    vgtemp          active
hdisk12         00f94479f1666d35                    None                  
 
errpt:
E86653C3   1013104514 P H LVDD           I/O ERROR DETECTED BY LVM
B6267342   1013104514 P H hdisk10        DISK OPERATION ERROR     
02A8BC99   1013104514 P H hdisk10        PATH HAS FAILED          
B6267342   1013104514 P H hdisk10        DISK OPERATION ERROR     
02A8BC99   1013104514 P H hdisk10        PATH HAS FAILED          
 
 
/etc HOMOLOG >                                                                  
/etc HOMOLOG > lsvg -l vgnet                                                    
0516-062 : Unable to read or write logical volume manager                       
        record. PV may be permanently corrupted. Run diagnostics                
 
 
/etc HOMOLOG > lsvg -p vgnet                                       
0516-062 : Unable to read or write logical volume manager          
        record. PV may be permanently corrupted. Run diagnostics   
 
 
/etc HOMOLOG > reducevg -d -f vgnet hdisk10                        
0516-062 lqueryvg: Unable to read or write logical volume manager  
        record. PV may be permanently corrupted. Run diagnostics   
0516-882 reducevg: Unable to reduce volume group.                  
 
 
/etc HOMOLOG > reducevg -d -f vgnet 00f94479c30e8a97               
0516-062 lqueryvg: Unable to read or write logical volume manager  
        record. PV may be permanently corrupted. Run diagnostics   
0516-882 reducevg: Unable to reduce volume group.                  
 
 
/etc HOMOLOG > rmdev -dl hdisk10                                                
Method error (/usr/lib/methods/ucfgdevice):                                     
        0514-062 Cannot perform the requested function because the              
                 specified device is busy.                                      
                                                                                
 
 
/etc HOMOLOG > varyoffvg vgnet                                                  
0516-062 lqueryvg: Unable to read or write logical volume manager               
        record. PV may be permanently corrupted. Run diagnostics                
0516-012 lvaryoffvg: Logical volume must be closed.  If the logical             
        volume contains a filesystem, the umount command will close             
        the LV device.                                                          
0516-942 varyoffvg: Unable to vary off volume group vgnet.                      
/etc HOMOLOG >                                                                  
 
 

Can help me ?

Best Regards
Artur

Ok,
Here is what you have to do.
It seems like you have file system(s) mount, which was/were under that VG (vgnet).
So 1st thing is umount that/those file system(s)
If you don't know which file system(s) were there under that VG, you have to find it out.

Run 
#lsvg -l <vgname>, this vgname is datavg, rootvg and vgtemp, you will see their file systems

Now, run

# df -g, it will give you all mount points mounted

You will see the mount points of 'vgnet' VG as mounted, so you unmount it, you have to use force option

# umount -f  <FS name>, 

After you unmount all FS under that VG (which was taken by storage team), you will see that the VG is automatically 'VARIEDOFF'
Now you just run

# exportvg vgnet
# rmdev -Rdl hdisk10

I hope this helps.

1 Like

ibmtech is correct. The problem is that AIX does its bookkeeping about VGs, their LVs, their devices, etc. in the ODM (mostly CuAt and CuDv). You could (in theory) clean up this mismatch between hardware and configuration data by manipulating the ODM directly, but i strongly suggest not to do so. You would have to have in-depth knowledge about the organization of the various ODM tables and one little error might render your system in even worse shape than it is now.

My suggestion is to reboot the system. This will let "cfgmgr", which fills most ODM tables, run in Phase 1 and hopefully correct/cleanup a lot of the wrong entries. If still residues of the now missing disk remain (you should see them as "defined" in a "lsdev" listing) remove them with "rmdev" and "exportvg", as suggested by ibmtech. If the disk is a SAN device you might need to remove SAN-pseudodevices first (for instance, in EMC storage you have "hdiskpowerX" devices and each path is represented by a "hdiskX" device. You might have something similar, depending on the SAN you have).

I hope this helps.

bakunin

Hello! Thanks!

Comparing the filesystems in VGs with mounted filesystems I found the unmounted fs, and I unmount it! After I forced the exclusion the VG and works.. Thanks Again!!!