After adding a new node to the Pacemaker cluster, GFS2 filesystem is not getting mounted on the newly added node.

Solution Verified - Updated

Environment

  • Red Hat Enterprise Linux Server 6, 7, 8, and 9 (with the High Availability and Resilient Storage Add Ons)
    • Pacemaker
    • GFS2

Issue

  • A new node was added to existing cluster. There was a GFS2 fs resource available in the cluster, it is not getting mounted on the newly added node.

Resolution

Make sure that the total number of Filesystem journals are equal to the total number of nodes on which GFS2 filesystem needs to be mounted. When a new node is added in cluster, it may happen that journals available are not enough to mount the GFS2 fs on all the nodes in the cluster. In order to increase the filesystem journals, please see

RHEL 6 - Global File System 2 - 4.7. Adding Journals to a File System
RHEL 7 - Global File System 2 - 3.6. Adding Journals to a GFS2 File System
RHLE 8 - Global File System 2 - 3.6. Adding journals to a GFS2 file system
RHLE 9 - Global File System 2 - 3.6. Adding journals to a GFS2 file system

Before adding journals to a GFS2 file system, you could find out how many journals the GFS2 file system currently contains with the gfs2_edit -p jindex command, as in the following example:

# gfs2_edit -p jindex /dev/VGname/LVname |grep journal
   3/3 [fc7745eb] 4/25 (0x4/0x19): File    journal0
   4/4 [8b70757d] 5/32859 (0x5/0x805b): File    journal1
   5/5 [127924c7] 6/65701 (0x6/0x100a5): File    journal2

You might also want to increase the clone-max meta parameter for the resource. This defines the total number of nodes on which files system could be mounted.

# pcs resource update gfs-fs-clone meta clone-max=number_of_nodes

Here number_of_nodes is the number of nodes on which you wish to mount the GFS2 file system.

SBR
Components
Category

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.