Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- === cluster config ===
- primitive p_exportfs_citools ocf:heartbeat:exportfs \
- params fsid="1" directory="/srv/nfs/shared_ci_tools" options="rw,mountpoint,no_root_squash" clientspec="10.0.8.0/21" wait_for_leasetime_on_stop="true" unlock_on_stop="true" \
- op monitor interval="30s" \
- op start interval="0" timeout="40s" \
- op stop interval="0" timeout="95s"
- primitive p_fs_citools ocf:heartbeat:Filesystem \
- params device="/dev/vgnas01/lvcitools" directory="/srv/nfs/shared_ci_tools" fstype="ext4" options="data=ordered" \
- op monitor interval="10s" timeout="40s" \
- op start interval="0" timeout="60s" \
- op stop interval="0" timeout="60s"
- primitive p_ip01 ocf:heartbeat:IPaddr2 \
- params ip="10.0.10.103" \
- op monitor interval="30s"
- primitive p_lsb_nfsserver lsb:nfs \
- op monitor interval="30s"
- primitive p_lvm01 ocf:heartbeat:LVM \
- params volgrpname="vgnas01"
- primitive p_shoot_irvine stonith:fence_ipmilan \
- params ipaddr="10.0.9.2" login="fence" passwd="pass" action="reboot" lanplus="true" power_wait="4" pcmk_host_list="irvine" \
- meta target-role="Started"
- primitive p_shoot_mitchell stonith:fence_ipmilan \
- params ipaddr="10.0.9.3" login="fence" passwd="pass" action="reboot" lanplus="true" power_wait="4" pcmk_host_list="mitchell" \
- meta target-role="Started"
- primitive p_shoot_robson stonith:fence_ipmilan \
- params ipaddr="10.0.9.4" login="fence" passwd="pass" action="reboot" lanplus="true" power_wait="4" pcmk_host_list="robson" \
- meta target-role="Started"
- group g_nas01 p_lvm01 p_fs_citools p_exportfs_citools p_ip01 \
- meta resource-stickiness="101"
- clone cl_lsb_nfsserver p_lsb_nfsserver \
- params clone-max="2"
- location l_cl_lsb_nfsserver cl_lsb_nfsserver -inf: robson
- location l_g_nas01 g_nas01 100: irvine
- location l_g_nas01_nfs g_nas01 -inf: robson
- location l_shoot_irvine p_shoot_irvine -inf: irvine
- location l_shoot_mitchell p_shoot_mitchell -inf: mitchell
- location l_shoot_robson p_shoot_robson -inf: robson
- property $id="cib-bootstrap-options" \
- dc-version="1.1.6-3.el6-a02c0f19a00c1eb2527ad38f146ebc0834814558" \
- cluster-infrastructure="openais" \
- expected-quorum-votes="3" \
- stonith-enabled="true" \
- no-quorum-policy="stop" \
- last-lrm-refresh="1340064031"
- rsc_defaults $id="rsc-options" \
- resource-stickiness="50"
- === NFSv4 pseudofilesystem in /etc/exportfs instead of using exportfs RA ==
- [ on both irvine and mitchell ]# cat /etc/exports
- /srv/nfs 10.0.10.0/24(ro,fsid=0) 10.0.12.0/24(ro,fsid=0)
- === show resource ===
- [root@irvine ~]# crm resource show
- p_shoot_irvine (stonith:fence_ipmilan) Started
- p_shoot_mitchell (stonith:fence_ipmilan) Started
- p_shoot_robson (stonith:fence_ipmilan) Started
- Resource Group: g_nas01
- p_lvm01 (ocf::heartbeat:LVM) Started
- p_fs_citools (ocf::heartbeat:Filesystem) Started
- p_exportfs_citools_ae1 (ocf::heartbeat:exportfs) Started
- p_ip_nas01 (ocf::heartbeat:IPaddr2) Started
- Clone Set: cl_lsb_nfsserver [p_lsb_nfsserver]
- Started: [ mitchell irvine ]
- === used software ===
- [root@irvine ~]# facter | egrep 'lsbdistid|lsbdistrelease'
- lsbdistid => CentOS
- lsbdistrelease => 6.2
- [root@irvine ~]# rpm -qa | egrep 'pacemaker|corosync|agents'
- corosync-1.4.1-4.el6_2.2.x86_64
- pacemaker-cli-1.1.6-3.el6.x86_64
- pacemaker-libs-1.1.6-3.el6.x86_64
- corosynclib-1.4.1-4.el6_2.2.x86_64
- pacemaker-cluster-libs-1.1.6-3.el6.x86_64
- pacemaker-1.1.6-3.el6.x86_64
- fence-agents-3.1.5-10.el6_2.2.x86_64
- resource-agents-3.9.2-7.el6.x86_64
- /usr/lib/ocf/resource.d/heartbeat/exportfs updated by hand from
- https://github.com/ClusterLabs/resource-agents/commits/master/heartbeat/exportfs
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement