beautypg.com

5 adding nfs cluster resources – Avago Technologies Syncro CS 9286-8e User Manual

Page 53

background image

Avago Technologies

- 53 -

Syncro CS 9286-8e Solution User Guide
November 2014

Chapter 3: Creating the Cluster

Creating the Cluster in SuSE Linux Enterprise Server (SLES)

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

3.5.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.

crm(live)configure# primitive p_ip_nfs ocf:heartbeat:IPaddr2 params

ip="YOUR_VIRTUAL_IPADDRESS" cidr_netmask="YOUR_NETMASK" op monitor interval="30s"

6.

Create a group and add the resources part of the same group by using the following commands.

NOTE

The stonith_sbd should not be part of this group. Make sure that all

added shared storage is listed at the beginning of the group order
because migration of the storage resource is a dependency for
other resources.

crm(live)configure# group g_nfs p_fs_part2 p_ip_nfs lsb_nfsserver

crm(live)configure# edit g_nfs

The following output appears.

group g_nfs p_fs_part2 p_ip_nfs lsb_nfsserver \

meta target-role="Started"