Operating System - HP-UX
1844576 Members
3317 Online
110233 Solutions
New Discussion

Re: Volume groups not getting activated when server getting rebooted!!

 
Amit Manna_6
Regular Advisor

Volume groups not getting activated when server getting rebooted!!

HI,
I am rebooting a HP server. The volume groups are not gettting activated when we reboot the server.
Can anybody suggest whats the issue and what may be the workarond.
7 REPLIES 7
Steven E. Protter
Exalted Contributor

Re: Volume groups not getting activated when server getting rebooted!!

Check the /etc/lvmrc file.

Perhaps the ACTIVATE variable is set to 0. Set it to 1 for auto activate.

DO NOT do this for volume groups that fail from node to node with ServiceGuard.

Make sure the init level in /etc/inittab is not set to 1. That can cause troubles like this.

strings /etc/lvmtab

ioscan -fnC disk

look for failed disks. A volume group will not activate unless more than 50% of its members (a quorum) are present and working.

mstm/xstm/cstm are useful for diagnosing hardware issues.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Todd McDaniel_1
Honored Contributor

Re: Volume groups not getting activated when server getting rebooted!!

Are these local or array VGs? direct connect or via network?

I would also suggest checking cabling and whether or not you can pvdisplay the disks.
Unix, the other white meat.
Raj D.
Honored Contributor

Re: Volume groups not getting activated when server getting rebooted!!

Hi Amit ,

Check /etc/lvmrc file for auto activation is on.

Also check you , all the disk are ok.
# ioscan -fnC disk should be CLAIMED status.

You can use this command to see deactivated Volume groups:
# /usr/sam/lbin/vginfo -D


Cheers.
Raj.
" If u think u can , If u think u cannot , - You are always Right . "
baiju_3
Esteemed Contributor

Re: Volume groups not getting activated when server getting rebooted!!

Hi ,

Please make uster AUTO_VG_ACTIVATE=1 is set in /etc/lvmrc .

This value will be 0 if MC/SG is configured and in that case you can add the VGs which you want to activate and are not a part of any MC/SG package by adding vg name in following section of lvmrc.
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 /dev/vgswap

return 0
}


Bye,
bl.
Good things Just Got better (Plz,not stolen from advertisement -:) )
Mel Burslan
Honored Contributor

Re: Volume groups not getting activated when server getting rebooted!!

if you are running serviceguard, anything other than vg00 should not be activated by default as they may be serviceguard related volumegroups. If you have non-vg00 volume groups which still needs activation in a serviceguard environment, you need to edit the /etc/lvmrc and make the necessary changes in the custom_vg_activation section, following the examples given there like:

/sbin/vgchange -a y /dev/myvg_new

if this is not a serviceguard system, again in the /etc/lvmrcfile, change the following line:

AUTO_VG_ACTIVATE=1


it needs to be set to 1
________________________________
UNIX because I majored in cryptology...
Geoff Wild
Honored Contributor

Re: Volume groups not getting activated when server getting rebooted!!

Check the /etc/lvmrc file....

See section on "Preventing Automatic Activation of Volume Groups "

http://docs.hp.com/en/B3936-90079/ch05s08.html

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
yyghp
Super Advisor

Re: Volume groups not getting activated when server getting rebooted!!

I have the same issue on one of my servers as well.
There is no MC/SG on the server, and "AUTO_VG_ACTIVATE=1" was set in /etc/lvmrc
Why?