Avago Technologies Syncro 9361-8i User Manual
Page 51

Avago Technologies
- 51 -
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)
sles-ha1:/etc/sysconfig # sbd -d
/dev/disk/by-id/wwn-0x600605b00316386019265c4910e9a343-part1
allocate
sles-ha1
The following output appears.
Trying to allocate slot for sles-ha1 on device
/dev/disk/by-id/wwn-0x600605b00316386019265c4910e9a343-part1.
slot 0 is unused - trying to own
Slot for sles-ha1 has been allocated on
/dev/disk/by-id/wwn-0x600605b00316386019265c4910e9a343-part1.
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