Exportvg/importvg causes corrupt LV Control Block


 
Thread Tools Search this Thread
Operating Systems AIX Exportvg/importvg causes corrupt LV Control Block
# 8  
Old 09-02-2013
Quote:
Originally Posted by livehho
Code:
$ errpt
B6267342   0828123013 P H hdisk6         DISK OPERATION ERROR
C1348779   0828123013 I O SYSJ2          LOG I/O ERROR
E86653C3   0828123013 P H LVDD           I/O ERROR DETECTED BY LVM
B6267342   0828123013 P H hdisk6         DISK OPERATION ERROR
C1348779   0828123013 I O SYSJ2          LOG I/O ERROR
E86653C3   0828123013 P H LVDD           I/O ERROR DETECTED BY LVM
B6267342   0828123013 P H hdisk6         DISK OPERATION ERROR
C1348779   0828123013 I O SYSJ2          LOG I/O ERROR
E86653C3   0828123013 P H LVDD           I/O ERROR DETECTED BY LVM

Before you really scratch the VG you might first find out what happened to hdisk6. Run "errpt" again with the "-a" switch to see the details and analyse what stands there. Eventually you could post it here and have others input about what it means.

You can still scratch the VG then, but: there is some reason why you encountered I/O errors. Disk broken, SAN damaged - i do not know what it is. But i do know (from long and often tragic experience) that a problem without a symptom is still a problem and it tends to creep up and haunt you exactly the moment you have the least need for that. So solve your problem with your disk first before you do anything with it, including (but not limited to) recreating the VG.

I hope this helps.

bakunin
This User Gave Thanks to bakunin For This Post:
# 9  
Old 09-02-2013
yep, the LUN was corrupted, the SAN folks fixed that problem. Gonna recreate the crap outta that VG. thanks for all the help.
# 10  
Old 09-02-2013
exportvg should not be changing the VGDA in anyway, in fact it can be done with the disks of the volume group inactive.

I think something had happened to your LVCB before hand.

Consider the following command sequence. This disk is active, but the commands should give (nearly) the same output (there may be in the VGDA whether the VGDA is active or not).

The tail command is to show that the -dt options shows how all PP are mapped.

p.s. My prompt is not #, but I have performed an su to root so my euid is 0

Code:
michael@x054:[/home/michael]lspv
hdisk1          00cbe32e3ea9f4d2                    vgData          active      
hdisk0          005d858f5e3e41d2                    rootvg          active      
hdisk2          005d858fdba3ba0e                    vgBackup                    
hdisk3          005d858f9b15ace8                    vgITDS          active      
michael@x054:[/home/michael]lquerypv -p 005d858f5e3e41d2 -N hdisk0 -t | more
PP Size:        26
PV State:       1
Total PPs:      542
Alloc PPs:      252
Total VGDAs:    2
HOT SPARE:      0
Beg PSN:        4352
MIRROR POOL:    0
MIRROR POOL     
ASYNC LOW WA    0
ASYNC HIGH W    0
ASYNC MINOR     0
ASYNC FLAGS:    0
michael@x054:[/home/michael]lquerypv -p 005d858f5e3e41d2 -N hdisk0 -dt | tail
PVMAP:  005d858f5e3e41d2:533  0 ODMtype  0000000000000000.0   0     0000000000000000:0    0000000000000000:0   
PVMAP:  005d858f5e3e41d2:534  0 ODMtype  0000000000000000.0   0     0000000000000000:0    0000000000000000:0   
PVMAP:  005d858f5e3e41d2:535  0 ODMtype  0000000000000000.0   0     0000000000000000:0    0000000000000000:0   
PVMAP:  005d858f5e3e41d2:536  0 ODMtype  0000000000000000.0   0     0000000000000000:0    0000000000000000:0   
PVMAP:  005d858f5e3e41d2:537  0 ODMtype  0000000000000000.0   0     0000000000000000:0    0000000000000000:0   
PVMAP:  005d858f5e3e41d2:538  0 ODMtype  0000000000000000.0   0     0000000000000000:0    0000000000000000:0   
PVMAP:  005d858f5e3e41d2:539  0 ODMtype  0000000000000000.0   0     0000000000000000:0    0000000000000000:0   
PVMAP:  005d858f5e3e41d2:540  0 ODMtype  0000000000000000.0   0     0000000000000000:0    0000000000000000:0   
PVMAP:  005d858f5e3e41d2:541  0 ODMtype  0000000000000000.0   0     0000000000000000:0    0000000000000000:0   
PVMAP:  005d858f5e3e41d2:542  0 ODMtype  0000000000000000.0   0     0000000000000000:0    0000000000000000:0   
michael@x054:[/home/michael]

Question: do you get the same issue when you su to root (is there perhaps an authority not passing when using sudo?)

---------- Post updated at 10:24 PM ---------- Previous update was at 10:23 PM ----------

Should have read the bottom line. So I guess you can ignore my reply. Smilie
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. High Performance Computing

Postgresql Database Corrupt

I am managing a linux cluster which has been build on Platform Cluster Manager PCM 1.2.1) from IBM Platform Computing. Unfortunately somebody deteled data files of postgresql from /var/lib directory. I somehow managed to start the postmaster service again, but all the administrative commands of... (2 Replies)
Discussion started by: ahsanpmd
2 Replies

2. AIX

importvg question

Is there a way to find the volume group name after assigning hdisk to the machine for importing it ? importvg -y <find_the_name_from_the_unknown_disk_> hdiskX Code tags and no hijacking. You should be aware of that ;) (3 Replies)
Discussion started by: filosophizer
3 Replies

3. Shell Programming and Scripting

cp to copy only non-corrupt files

I don't know if I am asking this correctly, but I have a hard drive with some bad sectors and it appears that some of the data is corrupt. I am having allot of trouble copying the data to a new drive. The issue is not in copying files, but that the new drive to which files are copied is not acting... (17 Replies)
Discussion started by: LMHmedchem
17 Replies

4. HP-UX

corrupt disk

Hallo Friends, I have application X running on hpux 11.11 and oracle 9i release 2. I recently had a hardware failure on disk /dev/dsk/c2t0d0 Below is the systemlog file : root@a7dmc:/var/adm/syslog > /opt/resmon/bin/resdata -R 155713541 -r /storage/events/enclosures/gazemon/0_1_1_0.0.0... (11 Replies)
Discussion started by: kekanap
11 Replies

5. AIX

exportvg

Hi How to check if a vg is exported from an LPAR using exportvg? Is there a command or place where we can see the list of the vg's exported from the LPAR ? Because if i run the command to varyonvg i get the below error : root@cbspsrc02 #varyonvg old_rootvg 0516-082 varyonvg: Unable to... (7 Replies)
Discussion started by: newtoaixos
7 Replies

6. AIX

Unable to execute varyonvg during importvg

Hello, On Aix 5.3, during importvg, the varyonvg fails: importvg -y vgtest hdisk20 0516-013 varyonvg: The volume group cannot be varied on because there are no good copies of the descriptor area. When i use manually the command varyonvg -u -b -t vgtest to force, the vg can... (3 Replies)
Discussion started by: dantares
3 Replies

7. Solaris

How to corrupt a superblock?

I need to corrupt a superblock of a mounted device in a soalris m/c and check recovery from an alternate superblock. How can this be done? (2 Replies)
Discussion started by: sujathan
2 Replies

8. AIX

nooB questions on importvg and exportvg

I don't understand the concept behind importvg and exportvg. What are some examples of when one would use this? (1 Reply)
Discussion started by: outtacontrol
1 Replies

9. UNIX for Dummies Questions & Answers

Causing a disk to be corrupt

Hmm, how to ask this without sounding too malicious... How might one go about causing a disk corruption in OS X specifically or via the command line in UNIX in general? Doesnt matter the severity of the problem, I just want to scare the person a little, then fix the problem for them. Any... (1 Reply)
Discussion started by: Yummator
1 Replies

10. Programming

Reading a process control block

Hello, I want to know what call to use to read the details of a process control block in solaris ?:) (2 Replies)
Discussion started by: hmurali
2 Replies
Login or Register to Ask a Question