1753297 Members
7013 Online
108792 Solutions
New Discussion юеВ

Re: LVM Problem

 
shashi kanth
Super Advisor

LVM Problem

I made a mistake with LVM, i enabled a VG in a 2-node service guard cluster with read-write, and i deleted VG in one node, and i am not able to delete that VG in the 2nd node.

In the 2nd node, if i try to delete a VG, it throws bellow error.

# vgchange -a y -q n -s -l /dev/lvm_fail
vgchange: Warning: Couldn't attach to the volume group physical volume "/dev/dsk/c4t0d5":
Cross-device link
vgchange: Cross-device link
vgchange: Cross-device link
vgchange: Cross-device link
vgchange: Warning: couldn't query physical volume "/dev/dsk/c4t0d5":
The specified path does not correspond to physical volume attached to
this volume group
vgchange: Warning: couldn't query physical volume "/dev/dsk/c6t0d5":
The specified path does not correspond to physical volume attached to
this volume group
vgchange: Warning: couldn't query physical volume "/dev/dsk/c8t0d5":
The specified path does not correspond to physical volume attached to
this volume group
vgchange: Warning: couldn't query physical volume "/dev/dsk/c10t0d5":
The specified path does not correspond to physical volume attached to
this volume group
vgchange: Warning: couldn't query all of the physical volumes.
vgchange: Couldn't activate volume group "/dev/lvm_fail":
Quorum not present, or some physical volume(s) are missing.

# vgchange -a y /dev/lvm_fail
vgchange: Warning: Couldn't attach to the volume group physical volume "/dev/dsk/c4t0d5":
Cross-device link
vgchange: Cross-device link
vgchange: Cross-device link
vgchange: Cross-device link
vgchange: Warning: couldn't query physical volume "/dev/dsk/c4t0d5":
The specified path does not correspond to physical volume attached to
this volume group
vgchange: Warning: couldn't query physical volume "/dev/dsk/c6t0d5":
The specified path does not correspond to physical volume attached to
this volume group
vgchange: Warning: couldn't query physical volume "/dev/dsk/c8t0d5":
The specified path does not correspond to physical volume attached to
this volume group
vgchange: Warning: couldn't query physical volume "/dev/dsk/c10t0d5":
The specified path does not correspond to physical volume attached to
this volume group
vgchange: Warning: couldn't query all of the physical volumes.
vgchange: Couldn't activate volume group "/dev/lvm_fail":
Quorum not present, or some physical volume(s) are missing.



I am not able to activate VG in the 2nd node to remove the VG.

How can i remove the VG in my 2nd node ?

# pvremove /dev/rdsk/c4t0d5
pvremove: The physical volume "/dev/rdsk/c4t0d5" belongs to volume group "/dev/lvm_fail".
pvremove: Couldn't remove physical volume "/dev/rdsk/c4t0d5".



5 REPLIES 5
Torsten.
Acclaimed Contributor

Re: LVM Problem

I don't know what you did on node1, but why not trying with vgexport?

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Patrick Wallek
Honored Contributor

Re: LVM Problem

Try 'vgexport'.

# vgexport /dev/lvm_fail
Ganesan R
Honored Contributor

Re: LVM Problem

Hi Shashi kanth,

Simply export the vg from second node if you don't need it any more.

#vgexport -v vgname
Best wishes,

Ganesh.
shashi kanth
Super Advisor

Re: LVM Problem

Thank you all.

With vgexport, it's gone.
shashi kanth
Super Advisor

Re: LVM Problem


Thanks.