I want to write a full tutorial for someone who wants to custom compile HA package to run cluster GFS2 on clear linux.
Senario: I have 1 storage server (Centos 7) and one Clear Linux server (Latest kernel 5.09). The idea is to setup a gfs2 cluster for the two node (one node happens to be iscsi target itself). The reason why I chose centos 7.9 for storage is it supports latest Intel VROC raid.
Step 1) Recompile clear linux kernel to add the following flags
Step 1: Make sure clear linux and centos 7 have same HA packages, that means recompile all HA packages, use the latest if possible. I use
some other dependency, like ruby 2.x, python3
Most people dont compile this on centos or anywhere is because there are compile error all over the place. What I encounter is many times you encounter Warning error that prevent you from complete. Thus go to all Makefile and remove all -Wall if you encounter warning error. For PCS I notice that make install_pcsd doesnt do anything, after I did make install I had to copy Makefile from pcs version 0.9x to replace the Makefile of version 0.14 to get it to work.
Any error you find might be due to missing dependency. There could be many, this a difficult job.
- After you have all software then follow tutorial on how to create iscsi target and initiatoor (Many tutorials work)
- create gfs2 cluster (Folllow redhat guide)
VOILA you are done. Many steps in between, any problem email me and I can help you. At the time of this writing no tutorial on custom HA package. This is bumpy but doable. email email@example.com if you need help. Glad to help out as I have received help here many times in the past.