Avago Technologies Syncro 9361-8i User Manual
Page 53

Avago Technologies
- 53 -
Syncro CS 9361-8i and Syncro CS 9380-8e Solution User Guide
October 2014
Chapter 2: Creating the Cluster
Creating the Cluster in SuSE Linux Enterprise Server (SLES)
crm(live)configure# primitive p_ip_nfs ocf:heartbeat:IPaddr2 params
ip="YOUR_VIRTUAL_IPADDRESS" cidr_netmask="YOUR_NETMASK" op monitor
interval="30s"
6.
Create a group and add the resources part of the same group by using the following commands.
NOTE
The stonith_sbd should not be part of this group. Make sure that all
added shared storage is listed at the beginning of the group order
because migration of the storage resource is a dependency for other
resources.
crm(live)configure# group g_nfs p_fs_part2 p_ip_nfs lsb_nfsserver
crm(live)configure# edit g_nfs
The following output appears.
group g_nfs p_fs_part2 p_ip_nfs lsb_nfsserver \
meta target-role="Started"
7.
Commit the changes and exit crm by entering the following commands:
crm(live)configure# commit
crm(live)configure# quit
8.
Check whether the resources are added and the parameters are set to the correct values by using the following
command. If the output is not correct, modify the resources and parameters accordingly.
sles-ha2:~ # crm configure show
The following output appears.
node sles-ha1
node sles-ha2
primitive lsb_nfsserver lsb:nfsserver \
operations $id="lsb_nfsserver-operations" \
op monitor interval="15" timeout="15"
primitive p_fs_part2 ocf:heartbeat:Filesystem \
params
device="/dev/disk/by-id/wwn-0x600605b00316386019265c4910e9a343-part2"
directory="/nfs/part2" fstype="ext3" \
op monitor interval="10s"
primitive p_ip_nfs ocf:heartbeat:IPaddr2 \
params ip="YOUR_VIRTUAL_IPADDRESS" cidr_netmask="YOUR_NETMASK" \
op monitor interval="30s"
primitive stonith_sbd stonith:external/sbd \
params
sbd_device="/dev/disk/by-id/wwn-0x600605b00316386019265c4910e9a343-part1"
group g_nfs p_ip_nfs p_fs_part2 lsb_nfsserver \
meta target-role="Started"
property $id="cib-bootstrap-options" \
dc-version="1.1.6-b988976485d15cb702c9307df55512d323831a5e" \
cluster-infrastructure="openais" \
expected-quorum-votes="2" \
stonith-timeout="120s" \
no-quorum-policy="ignore" \