Volume group delete is not possible


 
Thread Tools Search this Thread
Operating Systems AIX Volume group delete is not possible
# 1  
Old 10-13-2014
Hammer & Screwdriver Volume group delete is not possible

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

AIX 7.1 TL 3

Code:
/ 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




Moderator's Comments:
Mod Comment Please use code tags next time for your code and data. Thanks

Last edited by vbe; 10-13-2014 at 12:23 PM..
# 2  
Old 10-13-2014
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.
This User Gave Thanks to ibmtech For This Post:
# 3  
Old 10-13-2014
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
# 4  
Old 10-13-2014
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!!!
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. AIX

Need help on Volume group for AIX 6.1

Please let me know which volume group will be suitable for creation of 5 TB for datavg norma,big,scalable (4 Replies)
Discussion started by: manoj.solaris
4 Replies

2. Red Hat

No space in volume group. How to create a file system using existing logical volume

Hello Guys, I want to create a file system dedicated for an application installation. But there is no space in volume group to create a new logical volume. There is enough space in other logical volume which is being mounted on /var. I know we can use that logical volume and create a virtual... (2 Replies)
Discussion started by: vamshigvk475
2 Replies

3. UNIX for Dummies Questions & Answers

How to create a volume group, logical volume group and file system?

hi, I want to create a volume group of 200 GB and then create different file systems on that. please help me out. Its becomes confusing when the PP calculating PP. I don't understand this concept. (2 Replies)
Discussion started by: kamaldev
2 Replies

4. UNIX for Dummies Questions & Answers

Confusion Regarding Physical Volume,Volume Group,Logical Volume,Physical partition

Hi, I am new to unix. I am working on Red Hat Linux and side by side on AIX also. After reading the concepts of Storage, I am now really confused regarding the terminologies 1)Physical Volume 2)Volume Group 3)Logical Volume 4)Physical Partition Please help me to understand these concepts. (6 Replies)
Discussion started by: kashifsd17
6 Replies

5. AIX

Create new Volume Group

Good afternoon all, I'll probably confuse everyone as I'm a Windows guy dealing with AIX 6.1 and can't quite figure out how to do something. I have a P520 server running 2 LPARs and we have an IVM (not HMC).Within the IVM under Virtual Storage Management, when I check the Physical Volumes, I have... (4 Replies)
Discussion started by: Spellbound
4 Replies

6. AIX

Adding a Volume Group to an HACMP Resource Group?

Hi, I have a 2 node Cluster. Which is working in active/passive mode (i.e Node#1 is running and when it goes down the Node#2 takes over) Now there's this requirement that we need a mount point say /test that should be available in active node #1 and when node #1 goes down and node#2 takes... (6 Replies)
Discussion started by: aixromeo
6 Replies

7. AIX

Logical volume name conflict in two volume group

Hello, I am a french computer technician, and i speak English just a little. On Aix 5.3, I encounter a name conflict logical volume on two volume group. The first volume lvnode01 is OK in rootvg and mounted. It is also consistent in the ODM root # lsvg -l rootvg |grep lvnode01 ... (10 Replies)
Discussion started by: dantares
10 Replies

8. AIX

Moving a Logical Volume from one Volume Group to Another

Does anyone have any simple methods for moving a current logical volume from one volume group to another? I do not wish to move the data from one physical volume to another. Basically, I want to "relink" the logical volume to exist in a different volume group. Any ideas? (2 Replies)
Discussion started by: krisw
2 Replies

9. UNIX for Advanced & Expert Users

LVM - Extending Logical Volume within Volume Group

Hello, I have logical volume group of 50GB, in which I have 2 logical volumes, LogVol01 and LogVol02, both are of 10GB. If I extend LogVol01 further by 10GB, then it keeps the extended copy after logical volume 2. I want to know where it keeps this information Regards Himanshu (3 Replies)
Discussion started by: ghimanshu
3 Replies

10. UNIX for Advanced & Expert Users

How to increase PV's in a Volume group ?

I have a Volume group on one of my production box. The no of PV's within the same is 16 which I need to increase. How can this be done ? Can this be done online or do we need a downtime for this ? Please provide the exact details and steps for this activity urgently, as need to do this on my... (3 Replies)
Discussion started by: kpatel786
3 Replies
Login or Register to Ask a Question