Hello,

On 10/18/2011 11:59 PM, Bob Schatz wrote:
> I am trying to setup a LVM fail over cluster and I must be missing something 
> basic. :(
> 
> The configuration I want is:
> 
>     IP address
>          |
>     File System
>          |
>      LVM
> 
> I am not using DRBD.

So you are using a shared storage device like a FC disk?

> 
> I am running this on Ubuntu 10.04LS.
> 
> Everything works fine and I can migrate the group between two nodes.   
> However, if I reboot one node OR STONITH one node it causes the other node to 
> stop and then restart all resources.
> 
> The problem is that when the node reboots, it activates the LVM volume group 
> and then Pacemaker says "native_add_running: Resource ocf::LVM:volume-lvm-p 
> appears to be active on 2 nodes."  This causes the group to stop and then be 
> restarted.
> 
> I tried to play with /etc/lvm/lvm.conf filtering but that just prevented the 
> disks from being read even by the agent.

Adopted volume_list Parameter to not activate all vgs? After doing
changes to lvm.conf you also need to recreate initramfs.

Safest and recommended setup is to use clvmd with dlm and update your vg
to a clustered one (also adopt the locking type in lvm.conf).

Last step is to integrate dlm/clvmd/lvm in your Pacemaker setup and you
are ready to go.

Regards,
Andreas

-- 
Need help with Pacemaker?
http://www.hastexo.com/now

> 
> What am I missing?
> 
> Thanks,
> 
> Bob
> 
> 
> My configuration is:
> 
> node cc-vol-6-1
> node cc-vol-6-2
> primitive ipmilan-cc-vol-6-1 stonith:external/ipmi \
>         params hostname="cc-vol-6-1" ipaddr="XXXXXXX" userid="XXXXXXX" 
> passwd="XXXXXXX" \
>         op start interval="0" timeout="60" \
>         op stop interval="0" timeout="60" \
>         op monitor interval="60" timeout="60" start-delay="0"
> primitive ipmilan-cc-vol-6-2 stonith:external/ipmi \
>         params hostname="cc-vol-6-2" ipaddr="XXXXXXX" userid="XXXXXX" 
> passwd="XXXXXXXXX!" \
>         op start interval="0" timeout="60" \
>         op stop interval="0" timeout="60" \
>         op monitor interval="60" timeout="60" start-delay="0"
> primitive volume-fs-p ocf:heartbeat:Filesystem \
>         params device="/dev/nova-volumes/nova-volumes-vol" 
> directory="/volume-mount" fstype="xfs" \
>         op start interval="0" timeout="60" \
>         op monitor interval="60" timeout="60" OCF_CHECK_LEVEL="20" \
>         op stop interval="0" timeout="120"
> primitive volume-iscsit-ip-p ocf:heartbeat:IPaddr2 \
>         params ip="YYYYYY" nic="ZZZZZZ" \
>         op monitor interval="5s"
> primitive volume-lvm-p ocf:heartbeat:LVM \
>         params volgrpname="nova-volumes" exclusive="true" \
>         op start interval="0" timeout="30" \
>         op stop interval="0" timeout="30"
> primitive volume-vol-ip-p ocf:heartbeat:IPaddr2 \
>         params ip="X1x1x1x1x" nic="y1y1y1" \
>         op monitor interval="5s"
> group volume-fs-ip-iscsi-g volume-lvm-p volume-fs-p volume-iscsit-ip-p 
> volume-vol-ip-p \
>         meta target-role="Started"
> location loc-ipmilan-cc-vol-6-1 ipmilan-cc-vol-6-1 -inf: cc-vol-6-1
> location loc-ipmilan-cc-vol-6-2 ipmilan-cc-vol-6-2 -inf: cc-vol-6-2
> property $id="cib-bootstrap-options" \
>         dc-version="1.0.8-042548a451fce8400660f6031f4da6f0223dd5dd" \
>         cluster-infrastructure="openais" \
>         expected-quorum-votes="2" \
>         no-quorum-policy="ignore" \
>         stonith-enabled="true"
> rsc_defaults $id="rsc-options" \
>         resource-stickiness="1000"
> _______________________________________________
> Linux-HA mailing list
> [email protected]
> http://lists.linux-ha.org/mailman/listinfo/linux-ha
> See also: http://linux-ha.org/ReportingProblems


Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Reply via email to