beautypg.com

3 configure stonith_sbd fencing – Avago Technologies Syncro 9361-8i User Manual

Page 50

background image

Avago Technologies

- 50 -

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)

2.4.4.3

Configure stonith_sbd Fencing

Stonith_sbd is the fencing mechanism used in SLES-HA. Fencing ensures data integrity on the shared storage by not
allowing problematic nodes from accessing the cluster resources. Before you create another resource, you have to
configure this mechanism correctly.

For this example, the World Wide Name (WWN - 0x600605b00316386019265c4910e9a343) refers to /dev/sda1.

NOTE

Use only the wwn-xyz device handle to configure stonith_sbd. Note
that the /dev/sda1 device handle is not persistent, and using it can
cause sbd unavailability after a reboot.

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/

This manual is related to the following products: