beautypg.com

1 install nfsserver, 2 configure the partition and the file system, 3 configure stonith_sbd fencing – Avago Technologies Syncro CS 9271-8i User Manual

Page 49

background image

LSI Corporation

- 49 -

Syncro CS 9271-8i Solution User Guide
October 2013

Chapter 3: Creating the Cluster

Creating the Cluster in SuSE Linux Enterprise Server (SLES)

3.

Repeat the steps above for each of the cluster nodes. On each of the nodes, check the cluster status with the
following command:

crm_mon

If all of the nodes are online, the output should be similar to the following:

============

Last updated: Thu May 23 04:28:26 2013

Last change: Mon May 20 09:05:29 2013 by hacluster via crmd on sles-ha1

Stack: openais

Current DC: sles-ha2 - partition with quorum

Version: 1.1.6-b988976485d15cb702c9307df55512d323831a5e

2 Nodes configured, 2 expected votes

1 Resources configured.

Online: [ sles-ha2 sles-ha1 ]

stonith-sbd (stonith:external/sbd): Started sles-ha2

============

This output indicates that the cluster resource manager is started and is ready to manage resources.

3.5.4

Configuring the NFS Resource with STONITH SBD Fencing

The following subsections describe how to set up an NFS resource by installing the NFS kernel server, configuring the
shared VD by partitioning, applying the ext3 file system, and configuring the stonith_sbd fencing.

3.5.4.1

Install NFSSERVER

Use Yast to install nfs-kernel-server and all of the required dependencies.

3.5.4.2

Configure the Partition and the File System

Perform the following steps to configure the partition and the file system.

1.

Use fdisk or any other partition modification tool to create partitions on the virtual drive.

For this example, /dev/sda is on a shared virtual drive with two partitions created: sda1 (part1) for sbd and sda2
(part2) for NFS mount (the actual data sharing partition)

2.

Use mkfs to apply the ext3 file system to the partition(s)/

sles-ha1:~ # mkfs.ext3 /dev/sda1

sles-ha1:~ # mkfs.ext3 /dev/sda2

3.5.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. The /
dev/sda1

device handle is not persistent, and using it can cause sbd

unavailability after a reboot.