LVM and VxVM

serviceguard - cant activate vg

 
TMcB
Super Advisor

serviceguard - cant activate vg


Hi

I was moving our data to a new disk, but after the move I cant activate the VG.

Any advice greatly apprecaited.
Its part of a serviceguard cluster

Thanks

vgimport –s –m /tmp2/vgsgm.mapfile /dev/vgsgm /dev/dsk/vpath22 /dev/dsk/vpath11
vgimport: Quorum not present, or some physical volume(s) are missing.

vgchange -a e vgsgm
vgchange: Activation mode requested for the volume group "/dev/vgsgm" conflicts with configured mode.

root@bfssgm01 [/tmp]> vgchange -a y vgsgm
vgchange: Couldn't activate volume group "vgsgm":
Quorum not present, or some physical volume(s) are missing.
4 REPLIES 4
Eric SAUBIGNAC
Honored Contributor

Re: serviceguard - cant activate vg

Bonsoir,

"Activation mode requested for the volume group "/dev/vgsgm" conflicts with configured mode"

--> To be able to do "vgchange -a e" you need first to do "vgchange -c y".

Anyway, you have an other problem

"Quorum not present, or some physical volume(s) are missing"

Either you try to import a mirrored VG with only one copy of data, either it is not the case and you have forgotten some disks.

In the first case, you can activate the VG with quorum option "vgchange -a e -q n" and it will work. In the other case, first resolve why you are missing disk before trying to use the VG

Eric
TMcB
Super Advisor

Re: serviceguard - cant activate vg

cheers Eric - get reply :

root@bfssgm01 [/patch]> vgchange -a e -q n vgsgm
vgchange: Warning: Couldn't attach to the volume group physical volume "/dev/dsk/c63t0d0":
The HP-UX kernel running on this system does not provide this feature.
Install the appropriate kernel patch to enable it.

vgchange: The HP-UX kernel running on this system does not provide this feature.
Install the appropriate kernel patch to enable it.

vgchange: The HP-UX kernel running on this system does not provide this feature.
Install the appropriate kernel patch to enable it.

vgchange: The HP-UX kernel running on this system does not provide this feature.
Install the appropriate kernel patch to enable it.

vgchange: The HP-UX kernel running on this system does not provide this feature.
Install the appropriate kernel patch to enable it.

vgchange: The HP-UX kernel running on this system does not provide this feature.
Install the appropriate kernel patch to enable it.

vgchange: The HP-UX kernel running on this system does not provide this feature.
Install the appropriate kernel patch to enable it.

vgchange: The HP-UX kernel running on this system does not provide this feature.
Install the appropriate kernel patch to enable it.

vgchange: Activation mode requested for the volume group "/dev/vgsgm" conflicts with configured mode.
vgchange: Warning: couldn't query physical volume "/dev/dsk/c63t0d0":
The specified path does not correspond to physical volume attached to
this volume group
vgchange: Warning: couldn't query physical volume "/dev/dsk/c65t0d0":
The specified path does not correspond to physical volume attached to
this volume group
vgchange: Warning: couldn't query physical volume "/dev/dsk/c67t0d0":
The specified path does not correspond to physical volume attached to
this volume group
vgchange: Warning: couldn't query physical volume "/dev/dsk/c69t0d0":
The specified path does not correspond to physical volume attached to
this volume group
vgchange: Warning: couldn't query physical volume "/dev/dsk/c34t0d0":
The specified path does not correspond to physical volume attached to
this volume group
vgchange: Warning: couldn't query physical volume "/dev/dsk/c35t0d0":
The specified path does not correspond to physical volume attached to
this volume group
vgchange: Warning: couldn't query physical volume "/dev/dsk/c28t0d0":
The specified path does not correspond to physical volume attached to
this volume group
vgchange: Warning: couldn't query physical volume "/dev/dsk/c83t0d0":
The specified path does not correspond to physical volume attached to
this volume group
vgchange: Warning: couldn't query all of the physical volumes.
sujit kumar singh
Honored Contributor

Re: serviceguard - cant activate vg

hi


the system does not seem to have the appropraite command patches (and might be other enhancement patches) for LVM.


please find the keywords after choosing the OS version and keyword search LVM and get the patches from the ITRC Site Search page for patches.

http://www11.itrc.hp.com/service/patch/search.do?BC=main|&pageOsid=hpux


u shud always have the system patched for the LVM patches uptodate.

also make sure that accordingly it is always good to have system patched fpr all the other bundles as HWEnable,FEature and QPKBAse .these u can do later on also, but as u are prompted please install the LVM patches.


the other thing is that


1)after u are able to activate the VG in Quorum override mode (vgchange -a y -q n )after patchinng , then make sure
2)vgrduce is run depending upon the correctness of the VG to remove the other PVs

this will depend if the dev files that u have mentioned at the time of Importing the VG are sufficient that u get all the LVs after importing the VG and activating iin the Quorum override mode.


regards
sujit
sujit kumar singh
Honored Contributor

Re: serviceguard - cant activate vg

hi


the other part is just after importing the VG make sure

to run the following command to first make this cluster unaware.

#vgchange -c n vgsgm
#vgchange -a y -q n vgsgm

check the warnings for the PVs not present these u need to remove later.
#vgdisplay -v vgsgm

make a note of the PVs and LVs listed and make sure that the LVs are properly imported and llok healthy and that u are not mossing the useful pVs

then u can go ahead with doing vgreduce once u think that all ur LVs are there in the VG and are intact.


#vgreduce /dev/vgsgm ...


these PVs are not reqd now and even without these u have all the LVs intact and healthy.


#vgextend /dev/vgsgm

etc to include the alternate path of the PVs into the VG

Regards
Sujit