Avago Technologies Syncro CS 9271-8i User Manual
Page 50

LSI Corporation
- 50 -
Syncro CS 9271-8i Solution User Guide
October 2013
Chapter 3: Creating the Cluster
Creating the Cluster in SuSE Linux Enterprise Server (SLES)
Perform the following step to set up the stonith_sbd fencing mechanism.
1.
Create the sbd header and set the watchdog timeout to 52 seconds and mgswait timeout to 104 seconds by
entering the following at the command prompt:
sles-ha1:~ # sbd -d /dev/disk/by-id/wwn-0x600605b00316386019265c4910e9a343-
part1 -4 104 -1 52 create
The following output appears.
Initializing device /dev/disk/by-id/wwn-0x600605b00316386019265c4910e9a343-
part1
Creating version 2 header on device 3
Initializing 255 slots on device 3
Device /dev/disk/by-id/wwn-0x600605b00316386019265c4910e9a343-part1 is
initialized.
2.
Verify that the sbd header was created and timeout set properly by entering the following at the command
prompt:
sles-ha1:~ # sbd -d /dev/disk/by-id/wwn-0x600605b00316386019265c4910e9a343-part1 dump
The following output appears.
==Dumping header on disk /dev/disk/by-id/wwn-
0x600605b00316386019265c4910e9a343-part1
Header version : 2
Number of slots : 255
Sector size : 512
Timeout (watchdog) : 10
Timeout (allocate) : 2
Timeout (loop) : 1
Timeout (msgwait) : 104
==Header on disk /dev/disk/by-id/wwn-0x600605b00316386019265c4910e9a343-part1
is dumped
3.
Add the contents to /etc/sysconfig/sbd by entering the following at the command prompt:
sles-ha1:~ # cat /etc/sysconfig/sbd
The following output appears.
SBD_DEVICE="/dev/disk/by-id/wwn-0x600605b00316386019265c4910e9a343-part1"
SBD_OPTS="-W"
4.
Allocate a slot for the node 1 for sbd by entering the following at the command prompt:
sles-ha1: # scp /etc/sysconfig/sbd root@sles-ha2:/etc/sysconfig/
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