Operating System - HP-UX
1834776 Members
3200 Online
110070 Solutions
New Discussion

Re: select vg activation at startup

 
SOLVED
Go to solution
Wood_2
Frequent Advisor

select vg activation at startup

Hello,

Is it possible to specify some vg activation at startup and not all vg ?

Sorry for my english, and thank you for your help

Nicolas WOOD
4 REPLIES 4
James R. Ferguson
Acclaimed Contributor
Solution

Re: select vg activation at startup

Hi:

Yes, absolutely. Configure:

# /sbin/lvmrc

There are comments within this file describing how to configure it.

Regards!

...JRF...
Oviwan
Honored Contributor

Re: select vg activation at startup

Hey

I don't have a lot experience with vg's.

but doesn't do the following command this?

vgchange -a n vgname

Regards
Wood_2
Frequent Advisor

Re: select vg activation at startup

Yes it's correct.

the file is /etc/lvmrc.


Thank you for your help
Steve Lewis
Honored Contributor

Re: select vg activation at startup

I would look at /etc/lvmrc.

In there you will see the configurable environment variable AUTO_VG_ACTIVATE

If you set that environment variable to 0 and then add lines to the function
custom_vg_activation()
you can automatically start a selection of VGs but leave the others.
To start some VGs, just use
vgchange -a y vgname