linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
* [linux-lvm] CLVM and LV activation
@ 2010-08-27 18:06 Michael Smith
  2010-09-16  8:52 ` aneesh vs
  0 siblings, 1 reply; 3+ messages in thread
From: Michael Smith @ 2010-08-27 18:06 UTC (permalink / raw)
  To: linux-lvm

Hi,

When a CLVM cluster comes up, the LVs in the clustered volume groups are 
"not available". I can use the heartbeat LVM resource to trigger a 
"vgchange -aly", but I'm wondering if there's a way to configure it to 
happen automatically. It'd make my cluster config simpler.

I'm not positive, but I guess the volume_list directive in lvm.conf 
might be able to do it. Is there a way to tell it to activate all LVs on 
all VGs, or do I have to list the VGs by name?

Thanks,
Mike

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [linux-lvm] CLVM and LV activation
  2010-08-27 18:06 [linux-lvm] CLVM and LV activation Michael Smith
@ 2010-09-16  8:52 ` aneesh vs
  2010-09-16 13:21   ` Michael Smith
  0 siblings, 1 reply; 3+ messages in thread
From: aneesh vs @ 2010-09-16  8:52 UTC (permalink / raw)
  To: LVM general discussion and development

[-- Attachment #1: Type: text/plain, Size: 1248 bytes --]

If you are using clvm, you shouldn't wory about volume_list because clvm
allows nodes to activate LVs in all nodes.
Please check what is "locking_type" in lvm.conf . It should be 3 in RHEL5 so
that when clvm starts it can enable all clustered VGs.
If the issue still persists, please chkconfig all cluster services off and
reboot nodes. Once nodes are up start the cluster services in order. Please
note that cluster should be quorate for clvm to start fine.

On Fri, Aug 27, 2010 at 11:36 PM, Michael Smith <msmith@cbnco.com> wrote:

> Hi,
>
> When a CLVM cluster comes up, the LVs in the clustered volume groups are
> "not available". I can use the heartbeat LVM resource to trigger a "vgchange
> -aly", but I'm wondering if there's a way to configure it to happen
> automatically. It'd make my cluster config simpler.
>
> I'm not positive, but I guess the volume_list directive in lvm.conf might
> be able to do it. Is there a way to tell it to activate all LVs on all VGs,
> or do I have to list the VGs by name?
>
> Thanks,
> Mike
>
> _______________________________________________
> linux-lvm mailing list
> linux-lvm@redhat.com
> https://www.redhat.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
>

[-- Attachment #2: Type: text/html, Size: 1791 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [linux-lvm] CLVM and LV activation
  2010-09-16  8:52 ` aneesh vs
@ 2010-09-16 13:21   ` Michael Smith
  0 siblings, 0 replies; 3+ messages in thread
From: Michael Smith @ 2010-09-16 13:21 UTC (permalink / raw)
  To: LVM general discussion and development

aneesh vs wrote:
 > On Fri, Aug 27, 2010 at 11:36 PM, Michael Smith <msmith@cbnco.com
>> When a CLVM cluster comes up, the LVs in the clustered volume
>> groups are "not available". I can use the heartbeat LVM resource to
>> trigger a "vgchange -aly", but I'm wondering if there's a way to
>> configure it to happen automatically. It'd make my cluster config
>> simpler.

> If you are using clvm, you shouldn't wory about volume_list because clvm 
> allows nodes to activate LVs in all nodes.
> Please check what is "locking_type" in lvm.conf . It should be 3 in 
> RHEL5 so that when clvm starts it can enable all clustered VGs.

I'm using SLES11 SP1, but yes, locking_type is 3. There is no problem 
with clvm as far as I can tell - it just doesn't automatically mark the 
LVs as available. I have to run vgchange -ay to make them available. 
After that, they work.

> Please note that cluster should be quorate for clvm to start fine.

Some of my clusters are two-node so quorum isn't possible. clvm is 
running with "-q 0", so I don't think it cares. (That's the default used 
by the clvm RA.)

Thanks,
Mike

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-09-16 13:21 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-27 18:06 [linux-lvm] CLVM and LV activation Michael Smith
2010-09-16  8:52 ` aneesh vs
2010-09-16 13:21   ` Michael Smith

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).