beautypg.com

Avago Technologies Syncro CS 9286-8e User Manual

Page 54

background image

Avago Technologies

- 54 -

Syncro CS 9286-8e Solution User Guide
November 2014

Chapter 3: Creating the Cluster

Creating the Cluster in SuSE Linux Enterprise Server (SLES)

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" \

last-lrm-refresh="1370644577" \

default-action-timeout="120s" \

default-resource-stickiness="100"

9.

(Optional) You can use the Pacemaker GUI as an alternative to configure the CRM parameters.

Perform the following steps to use the Pacemaker GUI:

a.

Before you use the cluster GUI for the first time, set the passwd for the hacluster account on both the
nodes by entering the following commands. This password is needed to connect to the GUI.

sles-ha2:~ # passwd hacluster

sles-ha1:~ # passwd hacluster

b.

Enter the following command to launch the GUI.

sles-ha2:~ # crm_gui

The Pacemaker GUI appears as shown in the following figures.