beautypg.com

Avago Technologies Syncro CS 9286-8e User Manual

Page 52

background image

Avago Technologies

- 52 -

Syncro CS 9286-8e Solution User Guide
November 2014

Chapter 3: Creating the Cluster

Creating the Cluster in SuSE Linux Enterprise Server (SLES)

5.

Allocate a slot for the node 2 for sbd by entering the following at the command prompt:

sles-ha1:/etc/sysconfig # sbd -d

/dev/disk/by-id/wwn-0x600605b00316386019265c4910e9a343-part1 allocate sles-ha2

The following output appears.

Trying to allocate slot for sles-ha2 on device

/dev/disk/by-id/wwn-0x600605b00316386019265c4910e9a343-part1.

slot 1 is unused - trying to own Slot for sles-ha2 has been allocated on

/dev/disk/by-id/wwn-0x600605b00316386019265c4910e9a343-part1.

6.

Verify that the both nodes have allocated slots for sbd by entering the following at the command prompt:

sles-ha1:/etc/sysconfig # sbd -d

/dev/disk/by-id/wwn-0x600605b00316386019265c4910e9a343-part1 list

The following output appears:

0

sles-ha1 clear

1 sles-ha2 clear

7.

Restart the corosync daemon on node 1 by entering the following at the command prompt:

sles-ha1: # rcopenais restart

The following output appears.

Stopping OpenAIS/corosync daemon (corosync): Stopping SBD - done OK

Starting OpenAIS/Corosync daemon (corosync): Starting SBD - starting... OK

8.

Restart the corosync daemon on node 2 by entering the following at the command prompt:

sles-ha2:# rcopenais restart

The following output appears.

Stopping OpenAIS/corosync daemon (corosync): Stopping SBD - done OK

Starting OpenAIS/Corosync daemon (corosync): Starting SBD - starting... OK

9.

Check whether both the nodes are able to communicate with each other through sbd by entering the following
commands.

sles-ha2:# sbd -d /dev/disk/by-id/wwn-0x600605b00316386019265c4910e9a343-part1 message

sles-ha1 test

sles-ha1: # tail -f /var/log/messages

Output from node 1 similar to the following appears.

Jun 4 07:45:15 sles-ha1 sbd: [8066]: info: Received command test from sles-ha2 on disk

/dev/disk/by-id/wwn-0x600605b00316386019265c4910e9a343-part1

10. Send a message from node 1 to node 2 to confirm that the message can be sent both ways by entering the

following command.

sles-ha1: # sbd -d /dev/disk/by-id/wwn-0x600605b00316386019265c4910e9a343-part1 message

sles-ha2 test

11. After you confirm the message can be sent either way, configure stonith_sbd as a resource by entering the

following commands in crm, the command line utility.

sles-ha1:# crm configure

crm(live)configure# property stonith-enabled="true"

crm(live)configure# property stonith-timeout="120s"

crm(live)configure# primitive stonith_sbd

stonith:external/sbd params

sbd_device="/dev/disk/by-id/wwn-0x600605b00316386019265c4910e9a343-part1"

crm(live)configure# commit

crm(live)configure# quit