Perform these steps on any Pacemaker node as the root user:
- Export our list of XFS mount options to avoid long lines by executing these commands:
OPS=noatime,nodiratime,logbufs=8,logbsize=256k OPS=$OPS,attr2,allocsize=1m
- Add an XFS primitive to Pacemaker with crm:
crm configure primitive pg_fs ocf:heartbeat:Filesystem \ params device="/dev/VG_POSTGRES/LV_DATA" \ directory="/db" \ fstype="xfs" \ options="$OPS" \ op start interval="0" timeout="60" \ op stop interval="0" timeout="120"
- Clean up any errors that might have accumulated with crm:
crm resource cleanup pg_fs
- Display the status of our new XFS resource with crm:
crm resource status