Re: can't varyonvg

From: augusta Zhou (meijun_Zhou@SHANGHAIGM.COM)
Date: Wed Apr 16 2003 - 04:53:26 EDT


?
I met the same time before
fsck the file system belong to the hdisk which you met problem

Best Regards.
Zhou Meijun

IS Department
Shanghai General Motors Co., Ltd.

Tel: (021)28902879
Fax: (021)50317990
E-mail: meijun_zhou@shanghaigm.com

                    Holger.VanKoll@SW
                    ISSCOM.COM To: aix-l@Princeton.EDU
                    Sent by: IBM AIX cc:
                    Discussion List Subject: Re: can't varyonvg
                    <aix-l@Princeton.
                    EDU>

                    04/16/2003 04:38
                    PM
                    Please respond to
                    IBM AIX
                    Discussion List

I assume your odm is corrupt. Backup it and delete everything regarding
this vg:

PV=hdisk56
VG=datavgc3
cp /etc/objrepos/CuAt /etc/objrepos/CuAt.$$
cp /etc/objrepos/CuDep /etc/objrepos/CuDep.$$
cp /etc/objrepos/CuDv /etc/objrepos/CuDv.$$
cp /etc/objrepos/CuDvDr /etc/objrepos/CuDvDr.$$
lqueryvg -Lp $PV | awk '{print $2}' | while read LVname;
do
odmdelete -q "name=$LVname" -o CuAt
odmdelete -q "name=$LVname" -o CuDv
odmdelete -q "value3=$LVname" -o CuDvDr
done
odmdelete -q "name=$VG" -o CuAt
odmdelete -q "parent=$VG" -o CuDv
odmdelete -q "name=$VG" -o CuDv
odmdelete -q "name=$VG" -o CuDep
odmdelete -q "dependency=$VG" -o CuDep
odmdelete -q "value1=10" -o CuDvDr
odmdelete -q "value3=$VG" -o CuDvDr
importvg -y $VG $PV # ignore lvaryoffvg errors
varyonvg $VG

-----Original Message-----
From: JackKramer@KYRUS.COM [mailto:JackKramer@KYRUS.COM]
Sent: Wednesday, April 16, 2003 12:32 AM
To: aix-l@Princeton.EDU
Subject: can't varyonvg

I know I made a mistake by varyoffvg, then creating a similar vg on a
second system with the same disks sharing the same ssa cabinet but now
how to I correct the problem?

I removed the vg from the second system successfully but I cannot remove
the vg on the first system without varying it on and I can't vary it on.

On the troubled system I have:
   jack_as_root:># lspv hdisk56
   0516-010 lspv: Volume group must be varied on; use varyonvg command.
   PHYSICAL VOLUME: hdisk56 VOLUME GROUP:
datavgc3
   PV IDENTIFIER: 000c948d922d2754 VG IDENTIFIER
000c948d922d3042
   PV STATE: ???????
   STALE PARTITIONS: ??????? ALLOCATABLE:
???????
   PP SIZE: ??????? LOGICAL VOLUMES:
???????
   TOTAL PPs: ??????? VG DESCRIPTORS:
???????
   FREE PPs: ???????
   USED PPs: ???????
   FREE DISTRIBUTION: ???????
   USED DISTRIBUTION: ???????

Also:

   jack_as_root:># varyonvg datavgc3
   PV Status: hdisk56 000c948d922d2754 PVNOTINVG
                   hdisk62 000c947dcdff623b PVNOTINVG
                   hdisk63 000c948d922e42ed PVNOTINVG
   0516-013 varyonvg: The volume group cannot be varied on because
           there are no good copies of the descriptor area.

I think I need to clear the descriptor area but how? A little help
would be appreciated.

What I initially wanted to do is move a vg from one system to another.
I think I need to export the vg after I varyoff. I will read up on what
I am trying to do but first I need to fix this.

Jack Kramer



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 22:16:45 EDT