Operating System - HP-UX
1752790 Members
6756 Online
108789 Solutions
New Discussion юеВ

VG Activation at boot time

 
SOLVED
Go to solution
cl_5
Frequent Advisor

VG Activation at boot time

Hi Folks!

I've got a k570 Machine with 11.i on it. There are 3 shared VGs configured for this host. I want to supress that 2 of these VGs become active while booting. The other one should be activated.

So I put the following in /etc/lvmrc:
custom_vg_activation()
{
vgchange -a -y -s /dev/vg03
parallel_vg_sync "/dev/vg03"
}

Are these settings right?
Any helpful answers would be appreciated

Regards
cl
5 REPLIES 5
cl_5
Frequent Advisor

Re: VG Activation at boot time

I've forgotten...

AUTO_VG_ACTIVATE ist set to Zero.
Mark Grant
Honored Contributor
Solution

Re: VG Activation at boot time

You'll have to make sure that AUTO_VG_ACTIVATE is set to 0 else the custom_vg_activation function won't get called. Other than that it looks OK to me.
Never preceed any demonstration with anything more predictive than "watch this"
melvyn burnard
Honored Contributor

Re: VG Activation at boot time

Looks ok to me, although you do not really need the parallel sync line.
What I might suggest is that you also include vg00, just to be SURE it activates properly (if it is mirrored) on boot time.
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
T G Manikandan
Honored Contributor

Re: VG Activation at boot time

AUTO_VG_ACTIVATE=0

which looks into custom_vg_activation

custom_vg_activation()
{
/sbin/vgchange -a y -s /dev/vg03
parallel_vg_sync "/dev/vg03" return 0
}
Fabio Ettore
Honored Contributor

Re: VG Activation at boot time

Hi,

I would suggest you to do the following:

custom_vg_activation()
{

/sbin/vgchange -a y -s
parallel_vg_sync "/dev/vg00 /dev/vg03"

return 0
}

As Melvyn suggested you it is better to have vg00 too.

Good luck!
Ettore
WISH? IMPROVEMENT!