1833707 Members
2232 Online
110063 Solutions
New Discussion

Vgreduce

 
P. Prinsloo
Advisor

Vgreduce

I have problem on VG00 the Act PV and Cur PV disagree.I'm thinking of using "vgreduce -f",will this work on vg00? What is the bst way of doing it?
Wally
3 REPLIES 3
Armin Feller
Honored Contributor

Re: Vgreduce

Hi,

if vg00 is mirrored, then we are tolking about a "ghist disk" and you have to remove the mirror first befor you can vgreduce.

# lvdisplay -v -k /dev/vg00/lvolX

find the disk key (-k) of the disk with the stale extends.

# lvreduce -m 0 /dev/vg00/lvolX

remove the mirror on the missing disk.

# vgreduce -f vg00

removes the disk from the vg00.

# mv /etc/lvmtab /etc/lvmtab.org
# vgscan -v

Now you have to re-add the disk to the vg00.

# pvcreate -f -B /dev/rdsc/c...
# vgextend vg00 /dev/dsk/c...
# lvextend -m 1 /dev/vg00/lvolX /dev/dsk/c...
...

That's the way it works.

Regards ...
Armin
steven Burgess_2
Honored Contributor

Re: Vgreduce

Hi

I take you have a missing disk ? The vgreduce should force the removal and allow the kernel to resolve it's discrepency

Have a look at lvmtab and ioscan to see which disk your missing

Is this the roor volume group or other ?

HTH

Steve

take your time and think things through
Jochen Heuer
Respected Contributor

Re: Vgreduce