Skip to contentSkip to conversation

CLVM and LV activation

linux-lvm Michael Smith 2 participants 3 messages Aug 27, 2010 – Sep 16, 2010

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw

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.

Quoted 20 lines · Michael Smith

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
[email protected]
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

#2 lore raw
Quoted 9 lines · aneesh vs

On Fri, Aug 27, 2010 at 11:36 PM, Michael Smith <[email protected]

Quoted 5 lines

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.

Quoted 1 line

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