System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

disabling auto activation on single VG

gany59
Regular Advisor

disabling auto activation on single VG

For disabling the auto VG activation, we have to put 0 in /etc/lvmrc file. So that will disable all the VG's. I need to disable the auto activation on only one VG. Is there any option on that. Please let me know on the same. Thanks!
4 REPLIES
Johnson Punniyalingam
Honored Contributor

Re: disabling auto activation on single VG

your understanding is correct.

set VG auto activation=0

under "custom_vg_activation"

add all vgname which you want to activate except the (one VG)which you do not want to activate

/sbin/vgchange -a y /dev/vgxx
Problems are common to all, but attitude makes the difference
gany59
Regular Advisor

Re: disabling auto activation on single VG

Thanks Johnson,

So modifiying the /etc/lvmrc file is enough right ? with the vgname
Johnson Punniyalingam
Honored Contributor

Re: disabling auto activation on single VG

yes
Problems are common to all, but attitude makes the difference
Ismail Azad
Esteemed Contributor

Re: disabling auto activation on single VG

Hi gany,

> So modifiying the /etc/lvmrc file is enough right ? with the vgname

>>Read the Pharoah's post again<<

You want_to_disable auto activation on a particular VG right? So that particular VG should not_be_present in custom_activation_vg on /etc/lvmrc.

The exact parameter you are looking for is AUTO_VG_ACTIVATE which in this procedure should be put to non default settings as 0.

Regards
Ismail azad
Read, read and read... Then read again until you read "between the lines".....