[Tutorial] Creating a two node FusionPBX cluster the easy way.

Status
Not open for further replies.

nocstaff

New Member
Sep 22, 2020
14
0
1
48
Thank you so much for your reply. I became a member yesterday but wasn't clear if they were showing a script or what I should be looking for. Is it a video I watch? Can you point me in the right direction.

Very much appreciate the help.
 

nocstaff

New Member
Sep 22, 2020
14
0
1
48
Thank you sir. I read your post about leeches and feel better paying for the solution. I know you guys work hard to provide these solutions and truly appreciate you. Besides there is a ton of knowledge for members. So thank you again.
 

dev

New Member
Sep 12, 2021
15
0
1
42
*****THIS SCRIPT NO LONGER WORKS WITH THE NEW 4.4 RELEASE*****

*****YOU NEED DEBIAN 8 FOR THIS AND POSTGRESQL 9.4 *****
*****MAKE SURE THE LOCALE IS THE SAME ON BOTH NODES *****

Locale can be checked by just typing the command: locale

As promised, follow the instructions EXACTLY. You should end up with a functioning two node cluster. I haven't integrated file synching for recordings, voicemails etc yet. There should be a tutorial to follow tomorrow on how to do that. In the meantime, enjoy!


This script will create a two server cluster with the minimum of input.

The script assumes you have two node with Debian 8 installed with systemd and ca-certificates.

It is almost as easy as a regular FusionPBX install.

Feedback, pull requests, suggestions and enhancements welcome.

If you are using PROXMOX with LXC containers please complete the procedure at the bottom of the page first.

On the slave we need to allow root SSH which is disabled by default on Debian 8. There will be a instructions to disable this again at the end if you wish to do so.

On the SLAVE node do the following:

Code:
sed -i 's/^PermitRootLogin .*/PermitRootLogin yes/g' /etc/ssh/sshd_config
service ssh restart
apt-get update && apt-get upgrade -y --force-yes

apt-get install -y --force-yes git

cd /usr/src
git clone -b stable http://git.directvoip.co.uk/digitaldaz/fusionpbx-sce-install

chmod 755 -R /usr/src/fusionpbx-sce-install
cd fusionpbx-sce-install/debian/

Now move to the MASTER node and do the following:

Code:
apt-get update && apt-get upgrade -y --force-yes

apt-get install -y --force-yes git sshpass

cd /usr/src
git clone -b stable http://git.directvoip.co.uk/digitaldaz/fusionpbx-sce-install

chmod 755 -R /usr/src/fusionpbx-sce-install
cd fusionpbx-sce-install/debian/

Run the following and follow the instructions onscreen:

Code:
./install.sh --masternode

You will be informed when installation is completed, once that is done, return to the SLAVE node and run:
Code:
cd /usr/src/fusionpbx-sce-install/debian
./install.sh
You will be informed on screen when the installation is completed.

If you wish to disable root password authentication by SSH run the following:

Code:
sed -i 's/^PermitRootLogin yes/PermitRootLogin without-password/g' /etc/ssh/sshd_config
service ssh restart

Debian on Proxmox LXC

If using Debian Jessie on Proxmox LXC containers please run the following BEFORE starting the FusionPBX install.
Code:
apt-get update && apt-get upgrade
apt-get install systemd
apt-get install systemd-sysv
apt-get install ca-certificates
reboot

For additional information to get started go to http://docs.fusionpbx.com/en/latest/getting_started.html

******* UPDATE 30/03/2017 *******

I have just updated and tested the script to deal with the postgres language problem. I'm also now going to delete any further posts. I want to try and keep the thread clean with only unaddressed issues.

Csync2 Tutorial now available.

Please only use this thread for problems with the installation. If you have a problem with using the resulting cluster, please open a separate thread, thanks
Hello DigitalDaz

I want to setup failover cluster, could you please guide how I can do it with below?

FusionPBX version: 4.5.25
Debian version: 10.9
Postgress: 11

could you please also help with kamailio script to setup multiple boxes and postgres bdr scripts for db replication?

Regards
Dev
 
Status
Not open for further replies.