1830080 Members
23678 Online
109998 Solutions
New Discussion

volume group

 
Basso_1
Advisor

volume group

HI.
If i have 2 volume groups on RH3:

VG00: boot, root....
VG01: data

Questions
1-at startup i need only the vg00 to be activated?
2-How can i activate vg01 in exclusive mode?

THANK U
7 REPLIES 7
Ivan Ferreira
Honored Contributor

Re: volume group

1- Normally at startup, all VGs are activated.

2- What do you mean with exclusive mode?
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Basso_1
Advisor

Re: volume group

hi,
in HP-UX if i want to disactivate a volume group at startup i just comment the line refering to the volume group in /etc/lvmrc so how to do in red hat ?

exclusive mode: in hp-ux vgchange -e exlusive mode so only one node of the cluster lock the volume group
Ivan Ferreira
Honored Contributor

Re: volume group

Do you plan to do a cluster with RH3? I think there is not such exclusive mode in RH.

I think that you can edit /etc/rc.sysinit to modify the initialization of LVM VG. In the section:

LVM2 Initialization

See also:

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=955114

Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Basso_1
Advisor

Re: volume group

i have two volumes group vg00 vg01.
what to command to diactivate vg01 at boot time ?
melvyn burnard
Honored Contributor

Re: volume group

1.There curently is NO exclusive mode for activating an LVM volume group in Linux.

2. Linux activates VG's differently to HP-UX, there is no easy way to do what you want, you will need to create a custom definition in the /etc/rc.sysinit script.
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
Thomas J. Harrold
Trusted Contributor

Re: volume group

I commented out the appropriate sections in /etc/rc.sysinit.

1) section where md sets are activated (if applicable)
2) section where VG's are activated.

I then created another script that I put in /etc/cmcluster (I'm running MC/SG for clustering).

This script can be called from either: SG startup scripts, or from package startup scripts.

Another (easier) way to keep the md sets (mirroring) from activating: move the file /etc/raidtab to /etc/sg_raidtab. Then you can have a script run "raidstart -c /etc/sg_raidtab"

Hope this helps. I'm hoping that someone in the linux community will simplify this process. Linux nees a file similar to /etc/lvmrc.

-tjh
I learn something new everyday. (usually because I break something new everyday)
Joe Short
Super Advisor

Re: volume group

Take a look at the file /etc/lvm/lvm.conf.
There is a section (look for "volume_list")in it where you list only the VGs you want to activate at boot, similar to /etc/lvmrc on HP-UX