Chapter 4. An active/active Samba Server in a Red Hat High Availability Cluster (Red Hat Enterprise Linux 7.4 and Later)
pcsto configure Pacemaker cluster resources.
- Two nodes, which will be used to create the cluster running Clustered Samba. In this example, the nodes used are
z2.example.comwhich have IP address of
- A power fencing device for each node of the cluster. This example uses two ports of the APC power switch with a host name of
- Shared storage for the nodes in the cluster, using iSCSI or Fibre Channel.
- Create the cluster that will export the Samba shares and configure fencing for each node in the cluster, as described in Section 4.1, “Creating the Cluster”.
- Configure a
gfs2file system mounted on the clustered LVM logical volume
my_clvon the shared storage for the nodes in the cluster, as described in Section 4.2, “Configuring a Clustered LVM Volume with a GFS2 File System”.
- Configure Samba on each node in the cluster, Section 4.3, “Configuring Samba”.
- Create the Samba cluster resources as described in Section 4.4, “Configuring the Samba Cluster Resources”.
- Test the Samba share you have configured, as described in Section 4.5, “Testing the Resource Configuration”.
4.1. Creating the Cluster
- Install the cluster software on nodes
z2.example.com, using the procedure provided in Section 1.1, “Cluster Software Installation”.
- Create the two-node cluster that consists of
z2.example.com, using the procedure provided in Section 1.2, “Cluster Creation”. As in that example procedure, this use case names the cluster
- Configure fencing devices for each node of the cluster, using the procedure provided in Section 1.3, “Fencing Configuration”. This example configures fencing using two ports of the APC power switch with a host name of