Operating System - HP-UX
1834474 Members
3076 Online
110067 Solutions
New Discussion

vg not activating on reboot

 
SOLVED
Go to solution
Yvonne Butler
Regular Advisor

vg not activating on reboot

I've created a new VG (called vg01) with three lv's. When the server is rebooted the lv's do not mount automatically. If I run vgchange -a y /dev/vg01 I can then run mount -a and the lv's mount.

Any ideas anyone?
5 REPLIES 5
Ashwani Kashyap
Honored Contributor
Solution

Re: vg not activating on reboot

Change the AUTO_VG_ACTIVATE parameter in the /etc/lvmrc file to 1 from 0 .

Also put all your mount entries in the /etc/fstab file .
Dietmar Konermann
Honored Contributor

Re: vg not activating on reboot

Hi, Yvonne!

Is it possible that someone configured AUTO_VG_ACTIVATE=0 in /etc/lvmrc? In this case you would need to add the VG to custom_vg_activation().

Otherwise you should should have a close look at the console during bootup. You should see messages from /sbin/lvmrc failing to auto-activate...


Regards...
Dietmar.
"Logic is the beginning of wisdom; not the end." -- Spock (Star Trek VI: The Undiscovered Country)
T G Manikandan
Honored Contributor

Re: vg not activating on reboot

Make sure that AUTO_VG_ACTIVATE=1 in /etc/lvmrc file.

Also check your /var/adm/syslog/syslog.log file for any messages.

Thanks
Helen French
Honored Contributor

Re: vg not activating on reboot

Two files to check:
/etc/lvmrc - check for a parameter AUTO_VG_ACTIVATE and set it to 1. If you have MC/SG running on the server, then you may have to make changes accordingly.

/etc/fstab - make mount options here for all LVs.
Life is a promise, fulfill it!
Yvonne Butler
Regular Advisor

Re: vg not activating on reboot

You're all correct. I'd remembered the /etc/fstab file but forgot about the /etc/lvmrc file. I've added a section towards the bottom of the file as it's a ServiceGuard environment and that's fixed the problem.

Many thanks everyone!!