Coder Social home page Coder Social logo

puppet-lustre's Introduction

puppet-lustre

Table of Contents

  1. Module Description
  2. Setup
    • What puppet-lustre affects
    • Setup requirements
    • Beginning with puppet-lustre
  3. Usage - Configuration options and additional functionality
  4. Reference
  5. Limitations
  6. Build Status

Module description

This module is used to install and configure a Lustre filesystem with ZFS and HA using corosync.

Setup

What puppet-lustre affects

This module will format the disks specified in the configuration only if /tmp/puppet_can_erase exist on the local filesystem.

Setup Requirements

This module require TODO modules

This module will install the required RPMs based on what is available in the repos.

For a ZFS only system, theses RPM can be recompiled to use the "stock" centos7 kernel when ldiskfs is removed during the ./configure phase of the compilation.

Beginning with puppet-lustre

This module can install the MGS, MDS and OSS of a Lustre file system.

Other site requirements can also be specified in site.pp, its possible to add disk encryption based on LUKS or SAS multipath.

Most of the configuration is done with hiera, the common.yaml contains the general settings for the Lustre filesystem, then each $(hostname).yaml contains specific information on disk path and ip addresses.

site.pp

node 'mds1', 'mds2' {
  include lustre::server
  include lustre::mgs
  include lustre::mds
}
node 'oss1', 'oss2' {
  include lustre::server
  include lustre::oss
}

hieradata/common.yaml

lustre::server::fsname: 'lustre01'
lustre::mgs::service_nodes: ['10.0.0.1@o2ib', '10.0.0.2@o2ib']
lustre::mgs::prefered_host: 'mds1'
lustre::ldev::devs:
 - 'mds1 mds2 lustre01-MGS     zfs:lustre01-mgt/mgt'
 - 'mds1 mds2 lustre01-MDT0000 zfs:lustre01-mdt0/mdt0'
 - 'mds1 mds2 lustre01-MDT0001 zfs:lustre01-mdt1/mdt1'
 - 'oss1 oss2 lustre01-OST0000 zfs:lustre01-ost0/ost0'
 - 'oss2 oss1 lustre01-OST0001 zfs:lustre01-ost1/ost1'

corosync::authkey: '/etc/puppetlabs/puppet/ssl/certs/ca.pem'
corosync::enable_secauth: true
corosync::enable_corosync_service: false
corosync::enable_pacemaker_service: false

hieradata/hostnames/mds1.yaml and hieradata/hostnames/mds2.yaml

lustre::server::spl_hostid: "0x0000001"

lustre::mds::service_nodes: ['10.0.0.1@o2ib', '10.0.0.2@o2ib']

# A Raid1 for the MGT
lustre::mgs::mgt:
  drives: ['/dev/mapper/open_jbod00-bay00', '/dev/mapper/open_jbod00-bay01']

# Two MDT with a raid10 of 4 disk each
lustre::mds::mdt:
  - drives: [['/dev/mapper/open_jbod00-bay02', '/dev/mapper/open_jbod00-bay03',]
             ['/dev/mapper/open_jbod00-bay04', '/dev/mapper/open_jbod00-bay05',]]
    index: 0
    prefered_host: 'mds1'
  - drives: [['/dev/mapper/open_jbod00-bay06', '/dev/mapper/open_jbod00-bay07',]
             ['/dev/mapper/open_jbod00-bay08', '/dev/mapper/open_jbod00-bay09',]]
    index: 1
    prefered_host: 'mds12'

corosync::unicast_addresses: ['mds1', 'mds2']
corosync::quorum_members: ['mds1','mds2']

corosync::stonith:
  'mds1': { user: 'root', password: 'changeme', ipaddr: 'mds1-bmc' }
  'mds2': { user: 'root', password: 'changeme', ipaddr: 'mds2-bmc' }

hieradata/hostnames/oss1.yaml and hieradata/hostnames/oss2.yaml

lustre::server::spl_hostid: "0x0000003"

lustre::oss::service_nodes: ['10.0.0.3@o2ib', '10.0.0.4@o2ib']

# 2 OST in RAIDZ3 with 11 drives each (8+3)
lustre::oss::ost:
  - drives: [['/dev/mapper/open_jbod00-bay00', '/dev/mapper/open_jbod01-bay00',
              '/dev/mapper/open_jbod00-bay01', '/dev/mapper/open_jbod01-bay01',
              '/dev/mapper/open_jbod00-bay02', '/dev/mapper/open_jbod01-bay02',
              '/dev/mapper/open_jbod00-bay03', '/dev/mapper/open_jbod01-bay03',
              '/dev/mapper/open_jbod00-bay04', '/dev/mapper/open_jbod01-bay04',
              '/dev/mapper/open_jbod00-bay05']]
    index: 0
    prefered_host: 'oss1'
  - drives: [[                                 '/dev/mapper/open_jbod01-bay05',
              '/dev/mapper/open_jbod00-bay06', '/dev/mapper/open_jbod01-bay06',
              '/dev/mapper/open_jbod00-bay07', '/dev/mapper/open_jbod01-bay07',
              '/dev/mapper/open_jbod00-bay08', '/dev/mapper/open_jbod01-bay08',
              '/dev/mapper/open_jbod00-bay09', '/dev/mapper/open_jbod01-bay09',
              '/dev/mapper/open_jbod00-bay10', '/dev/mapper/open_jbod01-bay10']]
    index: 1
    prefered_host: 'oss2'

corosync::unicast_addresses: ['oss1', 'oss2']
corosync::quorum_members: ['oss1','oss2']

corosync::stonith:
  'oss1': { user: 'root', password: 'changeme', ipaddr: 'oss1-bmc' }
  'oss2': { user: 'root', password: 'changeme', ipaddr: 'oss2-bmc' }

Usage

Reference

Limitations

This is currently only support Centos7 and RockyLinux8

Build Status

The current state of the automatic puppet syntax check:

Build Status

puppet-lustre's People

Contributors

guilbaults avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

puppet-lustre's Issues

Tune corosync timeout

Corosync timeout are too short when importing a pool that was not cleanly exported.

The disks scan of zpool import can make the monitoring checks of corosync time out since zpool status hang until the zpool import command returns.

The timeout is currently hardcoded, it should be a variable. Its currently increased from the default corosync value, but this is not enough on large JBODs.

Prevent automatic formatting

Require a file in /tmp before puppet will format storage disk. Just in case the auto detection does not work, this will prevent data loss on a real system.

service_nodes per OST

The service_nodes parameter should be by OST instead of being at the OSS level.

This will enable the correct ordering of the ip address used when a client is connecting.

Without this all clients tries to connect to the first ip, while about half the OST will reside on the second OSS. This is related to the prefered_host parameter which set the primary location of each OST, this prefered host should be the first ip address in service_nodes.

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.