1827871 Members
1336 Online
109969 Solutions
New Discussion

vgchange in LInux

 
Ragni Singh
Super Advisor

vgchange in LInux

I'm running as4.0 redhat and i tlok slike eberything I reboot, I loose my volume groups. I only get ti back after doing a vgchange. What do I need to do to make my file-systems available after a reboot.

Points will be assigned.
7 REPLIES 7
sajeer_2
Regular Advisor

Re: vgchange in LInux


Not sure about LINUX.In hp-ux,
Check your /etc/lvmrc file and make sure that the parameter AUTO_VG_ACTIVATE is set to 1.
This will enable auto activation of vgs.
There shuld be an equivalant file in LINUX too.

Also check the syslog file which gives any message about this.

sajeer

spex
Honored Contributor

Re: vgchange in LInux

Hi,

Make sure the appropriate stanzas appear in /etc/fstab so that the mountpoints persist across reboots.

# man fstab

for more info.

PCS
Steven E. Protter
Exalted Contributor

Re: vgchange in LInux

Shalom,

There is no /etc/lvmrc

In Linux.

There is an equivalent file and it needs to be checked.

The vgchange command itself works pretty much like HP-UX but it was not a source code port, it was a feature port and its not an exact match.

Linux does have an excellent gui tool for LVM which can handle all these details for you in X Windows.

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
spex
Honored Contributor

Re: vgchange in LInux

Hi,

Also add "vgchange -a y " to /etc/rc.d/rc.sysinit for each vg before "Mount other filesystems".

PCS
melvyn burnard
Honored Contributor

Re: vgchange in LInux

posted in wrong forum, moved to more appropriate forum
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
David Child_1
Honored Contributor

Re: vgchange in LInux

The config file is /etc/lvm/lvm.conf. Some settings to check are the filter and types settings. How these are set may depend on hardware, multipathing, etc. The file is fairly well annotated.

David
Bob_Vance
Esteemed Contributor

Re: vgchange in LInux

"/etc/rc.d/rc.sysinit" does a 'vgscan' (in 3 different locations) and if it returns OK, it then does a 'vgchange -a y'.

If this is a ServiceGuard box, then "/etc/rc.d/rc.sysinit" would have been modified not to do that.

If "/etc/rc.d/rc.sysinit" has *not* been modified, then it would appear that the 'vgscan' is returning an error and thus the 'vgchange' is not done.


hth
bv
"The lyf so short, the craft so long to lerne." - Chaucer