Giter Site home page Giter Site logo

drbd-formula's Introduction

drbd-formula

Travis Build

Version

0.3.3

DRBD bootstrap salt formula

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.

GOAL

Enable the configuration and installation of drbd cluster using salt.

How to use

  1. 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
  1. 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

Install (Suse distros)

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

Available states

.. contents:: :local:

DRBD

A full set for load kernel module, write configuration files, initialize resources.

drbd.drbd_kmod

Load the DRBD kernel module.

drbd.global_confs

Configure DRBD global configuration file /etc/drbd.d/global_common.conf and /etc/drbd.conf.

drbd.res

Configure the DRBD resource configuration files in /etc/drbd.d/*.res.

drbd.create

Create the metadata of all resources, do nothing if existed.

drbd.createmd_force

Call the DRBD salt module directly to force create metadata of all resources.

drbd.initial_sync

Create the metadata of all resources and run an initialize sync.

drbd.start

Start all DRBD resources.

drbd.stop

Stop all DRBD resources.

drbd.promote

Premote all DRBD resources.

drbd.demote

Demote all DRBD resources.

drbd.wait_sync

Waiting all DRBD resources finish syncing.

drbd.nfs_ready

Format the backing device and get mounted.

drbd-formula's People

Contributors

nick-wang avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.