0.4.3
Formulas for setup and managing a drbd cluster using drbdadm.
Mainly adapted to SUSE / openSUSE Linux distributions, but should be usable on other distributions with minor modifications.
Enable the configuration and installation of drbd cluster using salt.
- Copy the salt-shaptools modules and states in our salt master.
The latest DRBD module/state will be merged into upstream after
neon
release.
git clone https://github.com/SUSE/salt-shaptools.git
# Create /srv/salt/_modules and /srv/salt/_states if they don't exist
sudo cp salt-shaptools/salt/modules/* /srv/salt/_modules
sudo cp salt-shaptools/salt/states/* /srv/salt/_states
- Work with HABOOTSTRAP formula or NFS formula, could deploy NFS on top of DRBD with/without Pacemaker
NFS formula is packaged in openSUSE build service
The easiest way to install the formula in SUSE distributions is using a rpm package. For that follow the next sequence to install all the dependencies (opensuse leap 15 is used in the example):
sudo zypper addrepo https://download.opensuse.org/tumbleweed/repo/oss/
sudo zypper ref
sudo zypper in drbd-formula
Note
In some cases it might be needed to adjust the salt minion configuration to use the new style of callingmodule.run
. See this for more information.
.. contents:: :local:
A full set for load kernel module, write configuration files, initialize resources.
Load the DRBD kernel module.
Configure DRBD global configuration file /etc/drbd.d/global_common.conf
and /etc/drbd.conf
.
Configure the DRBD resource configuration files in /etc/drbd.d/*.res
.
Create the metadata of all resources, do nothing if existed.
Call the DRBD salt module directly to force
create metadata of all resources.
Create the metadata of all resources and run an initialize sync.
Start all DRBD resources.
Stop all DRBD resources.
Premote all DRBD resources.
Demote all DRBD resources.
Waiting all DRBD resources finish syncing.
Format the backing device and get mounted.