1836436 Members
2629 Online
110100 Solutions
New Discussion

Re: Problem reducing vg

 
Mauro Gatti
Valued Contributor

Problem reducing vg

Hi all, I have to reduce a vg but I don't be able to do this.

leo# vgdisplay -v vg_ob2
vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c10t0d1":
The specified path does not correspond to physical volume attached to
this volume group
vgdisplay: Warning: couldn't query all of the physical volumes.
--- Volume groups ---
VG Name /dev/vg_ob2
VG Write Access read/write
VG Status available, exclusive
Max LV 255
Cur LV 1
Open LV 1
Max PV 32
Cur PV 1
Act PV 1
Max PE per PV 2200
VGDA 2
PE Size (Mbytes) 16
Total PE 544
Alloc PE 292
Free PE 252
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0

vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c10t0d1":
The specified path does not correspond to physical volume attached to
this volume group
vgdisplay: Warning: couldn't query all of the physical volumes.
--- Logical volumes ---
LV Name /dev/vg_ob2/lv_ob2cs
LV Status available/syncd
LV Size (Mbytes) 4672
Current LE 292
Allocated PE 292
Used PV 1


--- Physical volumes ---
PV Name /dev/dsk/c12t0d1
vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c10t0d1":
The specified path does not correspond to physical volume attached to
this volume group
vgdisplay: Warning: couldn't query all of the physical volumes.
PV Status available
Total PE 544
Free PE 252
Autoswitch On


/dev/dsk/c10t0d1 was an alternate link I want eliminate.
Vg belong to a cluster but package configuration was cancelled.

I can't do vgchange -f because vg in in shared mode. I can't change shared mode because there is no longer alternate path.

How can I reduce my vg?
Ubi maior, minor cessat!
7 REPLIES 7
Sanjay Kumar Suri
Honored Contributor

Re: Problem reducing vg

Check this thread

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=614420


sks
A rigid mind is very sure, but often wrong. A flexible mind is generally unsure, but often right.
Mauro Gatti
Valued Contributor

Re: Problem reducing vg

Waht about:
vgexport vg_ob2
vgimport vg_ob2 /dev/dsk/c12t0d1


Ubi maior, minor cessat!
KapilRaj
Honored Contributor

Re: Problem reducing vg

vgreduce -f

Kaps
Nothing is impossible
Mauro Gatti
Valued Contributor

Re: Problem reducing vg

Ok guys, I found solution:

1) vgchange -a e vg_ob2
2) mount and backup :-)
3) vgchange -a n vg_ob2
4) backup lvmtab
5) vgexport -m vg_ob2.map -v vg_ob2
6) mkdir /dev/vg_ob2
7) mknod /dev/vg_ob2/group c 64 0x??0000
8) vgimport -m vg_ob2.map -v vg_ob2 /dev/dsk/c12t0d1

Now I can:
vgchange -a e vg_ob2 and check
vgchange -a n vg_ob2
vgchange -c n vg_ob2
vgchange -a y vg_ob2
...

Thank You


Ubi maior, minor cessat!
Hoefnix
Honored Contributor

Re: Problem reducing vg

Hi,

I am not sure if it will work in your case because it's an altenate link, but did you try a vgreduce -f vg_ob2 or try vgreduce -l /dev/dsk/c10t0d1 vg_ob2.

Read the manpage for details before executing.

HTH,
Peter

Mauro Gatti
Valued Contributor

Re: Problem reducing vg

vgreduce -f doesn't work in this case because vg is in shared mode. This behaviour of vgchange is documented in man vgreduce.
Ubi maior, minor cessat!

Re: Problem reducing vg

Hi,
It it is an alternate link, just do a vgchange -a y for a normal VG and if it is in cluster mode, try to reactivate it in cluster mode and it should clear things up.