1834475 Members
2872 Online
110067 Solutions
New Discussion

How to activate vg,

 
SOLVED
Go to solution
unixguy_1
Regular Advisor

How to activate vg,


Dear friends,

I want to activate the vg,now it's showing Unavilable.

so i reactivate the VG using Vgchange - the command is

"vgchnage -y /dev/vg01"

am i right?

but i don't know, why sometimes it's going the unaviable state?
Pls give the details in advance.

Regards,
Unixguy.
13 REPLIES 13
James R. Ferguson
Acclaimed Contributor
Solution

Re: How to activate vg,

HI:

Yes, to activate, do:

# vgchange -a y /dev/vg01

Volume group activation is controlled by '/etc/lvmrc'. If there are no volume groups that are a part of Serviceguard, you can activate all of them by setting:

AUTO_VG_ACTIVATE=1

Regards!

...JRF...
Ivan Krastev
Honored Contributor

Re: How to activate vg,

Use
vgchange -a y vgname

regards,
ivan
unixguy_1
Regular Advisor

Re: How to activate vg,


Hi James,

how to set the all Vg's.
can u give the full syntax on that?

Regards,
Unixguy.
unixguy_1
Regular Advisor

Re: How to activate vg,


James ,.....

I thing i will edit the LVMRC file and change that u mentioned settings.

Regards,
Unixguy.
James R. Ferguson
Acclaimed Contributor

Re: How to activate vg,

Hi (again):

> how to set the all Vg's.

Setting :

AUTO_VG_ACTIVATE=1

...will enable activation for all volumg groups. The '/etc/lvmrc' file has commentary to guide you. Read it.

Regards!

...JRF...

Re: How to activate vg,

>Setting :
>
>AUTO_VG_ACTIVATE=1
>
>...will enable activation for all volumg >groups. The '/etc/lvmrc' file has >commentary to guide you. Read it.

Don't set AUTO_VG_ACTIVATE to 1 if this system is part of a Serviceguard cluster.

HTH

Duncan

I am an HPE Employee
Accept or Kudo
unixguy_1
Regular Advisor

Re: How to activate vg,


Dear Friends ,

it's in Cluster only.

Hi Duncan ......

what we can do?
Then why sometimes vg's going diable state.

Regards,
Unixguy.
unixguy_1
Regular Advisor

Re: How to activate vg,

Pls friends,

any one help to me on this case.....

Regards,
Unixguy.
Ganesan R
Honored Contributor

Re: How to activate vg,

Hi Unixguy,

If you sure that vg is not part of cluster then you need to mention in custom_vg_activation section in /etc/lvmrc file like below

custom_vg_activation()
{
# e.g. /sbin/vgchange -a y -s
# parallel_vg_sync "/dev/vg00 /dev/vg01"
# parallel_vg_sync "/dev/vg02 /dev/vg03"
/sbin/vgchange -a y -s
parallel_vg_sync "/dev/vg01"

return 0
}
Best wishes,

Ganesh.
G V R Shankar
Valued Contributor

Re: How to activate vg,

If the VG is in cluster, perform the following

vgchange -a n /dev/vg_name
vgchange -c y /dev/vg_name to make is cluster available.

Ravi.
yulianto piyut
Valued Contributor

Re: How to activate vg,

to activate VG: vgchange -a y vg_name
to de-acivate VG : vgchange -a n vg_name
for cluster server, to activate VG : vgchange -c y vg_name
yulianto piyut
Valued Contributor

Re: How to activate vg,

sorry, for cluster:
vgchange -a n vg_name
vgchange -c y vg_name
vgchange -a e vg_name

for detail, do "man vgchange"

unixguy_1
Regular Advisor

Re: How to activate vg,


Dear Friends ,

Thanks for giving the support.

It's resolved.

Regards,
Unixguy.