1821210 Members
3271 Online
109632 Solutions
New Discussion юеВ

vg activation at bootup

 
Scott Ransted
Occasional Contributor

vg activation at bootup

I have a ServiceGuard system that has a 'local' volume group (not in ServiceGuard). When the system boots up, the vg doesn't get activated. Where would I configure this vg to get activated at bootup?

Thanks for any help!
5 REPLIES 5
Jeff Schussele
Honored Contributor

Re: vg activation at bootup

Hi Scott,

Enter the VG in the /etc/lvmrc file.
This file is for all NON-MC/SG VG i.e. "local"
VGs.

HTH,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Helen French
Honored Contributor

Re: vg activation at bootup

Hi Scott:

You need to edit the file -/etc/lvmrc. This file has the parameter value set (activate vg automatically) and contains a section for custom activation of VG's. Enter your VG name their and will activate on next reboot.

HTH,
Shiju
Life is a promise, fulfill it!
Mladen Despic
Honored Contributor

Re: vg activation at bootup

Here is an example from /etc/lvmrc on our 2-node cluster. The local volume group is /dev/vgswap.

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/vgswap"

return 0
}
Sanjay_6
Honored Contributor

Re: vg activation at bootup

Hi Scott,

You have to edit the file /etc/lvmrc and then add this local vg to this file to be activated during bootup.

for the vg you are trying to active, edit the file /etc/lvmrc. Here vg01 is the non-SG vg that has to be activated on the system.

/Quote/

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 /dev/vg01

parallel_vg_sync "/dev/vg01"
return 0

}

/EndQuote/

Hope this helps.

regds



Scott Ransted
Occasional Contributor

Re: vg activation at bootup

Thank you all for the info. I added the vg to the /etc/lvmrc. Man - you guys are really quick to respond. What a great source of information!