11.5. Using your GFS2 filesystem with Pacemaker

If you want to use Pacemaker as the cluster resource manager, you will have to set up your current configuration and tell Pacemaker to manage your resources.

[Important]Important

Make sure to configure Pacemaker also to take care of all the fencing/STONITH actions (see our tech-guide on GFS in dual-primary setups for further details).

For Pacemaker configuration make a setup as described in 8.2. Adding a DRBD-backed service to the cluster configuration.

Since it is a dual-primary setup consider the following changes to the Master-Slave set:

crm(live)configure# ms ms_drbd_xyz drbd_xyz \
                    meta master-max="2" master-node-max="1" \
                         clone-max="2" clone-node-max="1" \
                         notify="true"

Notice that master-max ist set to 2, which will cause the DRBD resource to be promoted on both cluster nodes.

Furthermore we want the GFS filesystem also to be started on both nodes, so we simply add a clone of the filesystem primitive:

crm(live)configure# clone cl_fs_xyz p_fs_xyz meta interleave="true"