Operating System - HP-UX
1833736 Members
2513 Online
110063 Solutions
New Discussion

Activation of VG which contain Raw partitions Only

 
SOLVED
Go to solution
Kevin Lamb
Frequent Advisor

Activation of VG which contain Raw partitions Only

Hi,

Not sure if anyine can help, I have a server which does not activate a VG on boot, however once the server is up I can manualy vgchange this without problem.

The server is 10.20, the VG only contains two LVs which are raw partition for an ADABAS database, there are no entries in the fstab for this VG as there is no mount points for these (raw partition).

The VG exists in the lvmtab, could someone please explain where I am going wrong???


Cheers

Kev
8 REPLIES 8
Frederic Sevestre
Honored Contributor

Re: Activation of VG which contain Raw partitions Only

Hi,

Check the file /etc/lvmrc.
The AUTO_VG_ACTIVATE should be set to 1 to activate all the vg on boot.

Fr??d??ric
Crime doesn't pay...does that mean that my job is a crime ?
Kevin Lamb
Frequent Advisor

Re: Activation of VG which contain Raw partitions Only

Frederic,

I have checked the lvmrc and this is set to 1.

So it is not a problem with that.

Kev
Rainer von Bongartz
Honored Contributor

Re: Activation of VG which contain Raw partitions Only

/etc/lvmrv ist the right place to look at:

locate the function
custom_vg_activation()
and add
/sbin/vgchange -a y -s

Regards
rainer
He's a real UNIX Man, sitting in his UNIX LAN making all his UNIX plans for nobody ...
Animesh Chakraborty
Honored Contributor
Solution

Re: Activation of VG which contain Raw partitions Only

Hi,
While booting check for the error mesg.
check /etc/rc.log file for the reason.
Did you take a backup?
Rainer von Bongartz
Honored Contributor

Re: Activation of VG which contain Raw partitions Only

sorry,

/etc/lvmrc of cource and not /etc/lvmrv

Reagrds
Rainer
He's a real UNIX Man, sitting in his UNIX LAN making all his UNIX plans for nobody ...
Santosh Nair_1
Honored Contributor

Re: Activation of VG which contain Raw partitions Only

Unless you change /etc/lvmrc, the system will activate all the VGs in /etc/lvmtab. Also, you might want to check your startup logs (/etc/rc.log) to see if there are any errors relating to VG activation.

-Santosh
Life is what's happening while you're busy making other plans
Kevin Lamb
Frequent Advisor

Re: Activation of VG which contain Raw partitions Only

All,

Thanx for your efforts, The only error I am getting in the rc.log is during the database startup as it cannot find the raw partitions.

If I place the VG in the custom_vg_activation area of the lvmrc file, what are the risks if the VG mounts automaticaly due to the AUTO_VG_ACTIVATION parameter being set to 1 (not sure if this VG has ever auto activated).

Kev
Rainer von Bongartz
Honored Contributor

Re: Activation of VG which contain Raw partitions Only

Kevin

I always have AUTO_VG_ACTIVATE=0
and control activation of my VG's
by putting it in custom_vg-activation()

This way I never have problems with the activation and I can control what will be activated,

Regards
Rainer


He's a real UNIX Man, sitting in his UNIX LAN making all his UNIX plans for nobody ...