beautypg.com

5 adding nfs cluster resources – Avago Technologies Syncro 9361-8i User Manual

Page 52

background image

Avago Technologies

- 52 -

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)

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

12. Revise the global cluster policy settings by entering the following commands.

sles-ha1:# crm configure

crm(live)configure# property no-quorum-policy="ignore"

crm(live)configure# rsc_defaults resource-stickiness="100"

crm(live)configure# commit

crm(live)configure# quit

2.4.5

Adding NFS Cluster Resources

This section describes the method you can use to add NFS cluster resources using command line method.
Alternatively, you can use the Pacemaker GUI tool.

1.

Create the mount folders in both sles-ha1 and sles-ha2 according to your requirements, by using the following
commands.

sles-ha1:# mkdir /nfs

sles-ha1:# mkdir /nfs/part2

sles-ha2:# mkdir /nfs

sles-ha2:# mkdir /nfs/part2

ATTENTION

Do not manually mount the ext3 partition on this folder. The cluster
takes care of that action automatically. Mounting the partition
manually would corrupt the file system.

2.

Add the following contents to /etc/exports on both sles-ha1 and sles-ha2 by using the following command.

sles-ha2:~ # cat /etc/exports

The following output appears.

/nfs/part2 YOUR_SUBNET/YOUR_NETMASK (fsid=1,rw,no_root_squash,mountpoint)

3.

Configure the NFSSERVER to be started and stopped by the cluster by using the following commands.

sles-ha2:~ # crm configure

crm(live)configure# primitive lsb_nfsserver lsb:nfsserver op monitor

interval="15s" timeout="15s"

4.

Configure a Filesystem service by using the following command.

crm(live)configure# primitive p_fs_part2 ocf:heartbeat:Filesystem params

device=/dev/disk/by-id/wwn-0x600605b00316386019265c4910e9a343-part2

directory=/nfs/part2 fstype=ext3 op monitor interval="10s"

5.

Configure a Virtual IP address. This IP address is different from the IP address that connects to the Ethernet ports.
This IP address can move between both nodes. Also, enter the netmask according to your network.

This manual is related to the following products: