1833189 Members
3092 Online
110051 Solutions
New Discussion

VGRA corrupt

 
Angel_15
Occasional Advisor

VGRA corrupt

Hello
I have a disk where I did:
vgexport /dev/vg01
pvcreate -f /dev/rdsk/c0t1d0
Then I try to use this disk for create a volume group vg02 but I have an error VGRA corrupt and I can not use this disk for
add logical volumes.
Any idea?
angel0
3 REPLIES 3
James Specht
Trusted Contributor

Re: VGRA corrupt

I belive the problem is that you did a vgexport instead of vgreduce. The vgexport does not touch the vg info VGRA on the disk when you export. Try vgimporting the disk back into vg01 and then vgreduce the disk out of vg01. Be sure you DON'T care about the data on the disk first!!

--Jim

"Everyone can be taught to sculpt: Michelangelo would have had to be taught how not to. So it is with the great programmers."
Stanimir
Trusted Contributor

Re: VGRA corrupt

I dont know what is exactly the situation, but as I can see,you need to move 1 ph.disk
from vg01 to vg02.
So the setps could be:
#pvmove ... data to other disk;
#vgreduce /dev/vg01 /dev/dsk/c0t1d0
#vgextend /dev/vg02 /dev/dsk/c1t0d0
Massimo Bianchi
Honored Contributor

Re: VGRA corrupt

does the pvcreate exists with a zero (0) ??

Because the pvcreate is supposed to clean the vgra structure, putting some zeros where the vgid lies, to let the use in another vg.

i suspect some other kind of error:

how does the device show up in a ioscan ?

is there any I/O error ?

if you can work on the system, try overwriting the data:

dd if=/stand/vmunix of=/dev/rdsk/c0t1d0 bs=1024

pay attention to this last command, if VERY DESTRUCTIVE !!!

and, after that,
pvcreate -f /dev/rdsk/c0t1d0

Logic behind: put some real garbage, the kernel, and after that have a clean initialization...

Massimo



Massimo