Upgrade to Pro — share decks privately, control downloads, hide ads and more …

DRBD block device replication solution for HA cluster mainly

DRBD block device replication solution for HA cluster mainly

This is the slide for openSUSE.Asia Summit 2018. This slide describe DRBD and management components. also this slide describe how to switch primary machine.

hashimotosyuta

August 17, 2018
Tweet

More Decks by hashimotosyuta

Other Decks in Technology

Transcript

  1. DRBD
    block device replication
    solution for HA cluster
    mainly
    - one of the choices for SDS -
    hashimoto syuta
    [email protected]

    View full-size slide

  2. 2
    Table of Contents
    • High Availability
    • DRBD
    • DRBD kernel module
    • DRBD managing software
    • Switching
    • DRBD SDS

    View full-size slide

  3. Self Introduction

    View full-size slide

  4. 4
    Syuta Hashimoto
    • openSUSE-ja member
    • openSUSE.Asia Summit 2017 Local Committee
    Hello!! >
    Twitter @syuta_openSUSE
    FB: syutah

    View full-size slide

  5. High Availability

    View full-size slide

  6. 6
    Running
    We need service.
    We do not need down service.
    But
    Sometimes, service is down.

    View full-size slide

  7. 7
    Sometimes, It happen
    Memory
    is broken...
    CPU is
    heat up...
    Power Unit
    is broken...
    Disk
    is broken...
    Ethernet Card
    is broken...
    Cable
    is disconnect...

    View full-size slide

  8. 8
    The rate of operation
    DOWN TIME
    99% 3d 15h 36m
    99.99% 52m 34s
    99.999% 5m 16s
    / year

    View full-size slide

  9. 9
    How do you make
    high availability?

    View full-size slide

  10. 10
    Clone
    Same Hardware,
    Same OS,
    Same middleware,
    Same software
    But, Is cloning data easy?

    View full-size slide

  11. 11
    Shared Storage is
    One Idea
    Data is always same.
    But

    Storage is Single Point Of
    Failure

    Storage is maybe expensive

    You need high spec
    connection

    View full-size slide

  12. 12
    One Solution
    Realtime storage cloning
    You can do this if you use DRBD.

    View full-size slide

  13. 14
    What is DRBD?
    • Distributed Replicated Block Device
    • Developed mainly by LINBIT
    • GNU Public License 2
    • Use Linux kernel
    • Now version is 9 (DRBD9)

    View full-size slide

  14. 15
    DRBD components
    DRBD manager
    Disk Manager
    DRBD kernel module
    Another
    Machine

    View full-size slide

  15. DRBD
    kenel module

    View full-size slide

  16. 17
    DRBD KernelModule1
    SERVICE
    Disk
    Manager
    DRBD
    SERVICE
    Disk
    Manager
    DRBD
    Primary Secondary

    View full-size slide

  17. 18
    DRBD KernelModule2
    SERVICE
    Disk
    Manager
    DRBD
    SERVICE
    Disk
    Manager
    DRBD
    Out Of Service Secondary

    View full-size slide

  18. 19
    Primary side detail
    SERVICE
    FILE SYSTEVM
    BUFFER CACHE
    DRBD
    DISK SCHED
    DISK DRIVER
    RAW DEVICE
    TCP/IP
    NIC DRIVER

    View full-size slide

  19. 20
    Secondary side detail
    SERVICE
    FILE SYSTEVM
    BUFFER CACHE
    DRBD
    DISK SCHED
    DISK DRIVER
    RAW DEVICE
    TCP/IP
    NIC DRIVER

    View full-size slide

  20. DRBD
    managing software

    View full-size slide

  21. 22
    DRBD with openSUSE
    openSUSE Leap15
    YaST
    (yast2-drbd)
    △ Broken...
    drbdmanage
    △ Broken...
    LINSTOR
    × Not Yet

    View full-size slide

  22. 23
    LINSTOR
    DRBD kernel module
    LINSTOR satelite
    LINSTOR Controller
    LINSTOR Client
    LINSTOR Controller
    DRBD kernel module
    LINSTOR satelite
    LINSTOR Client
    Kernel
    Service
    Client
    Machine1 Machine2

    View full-size slide

  23. 25
    Switching
    •DRDB replicate data.
    •If it is happen, There is no
    way to switch.

    View full-size slide

  24. 26
    Switching Case1
    SERVICE
    Disk
    Manager
    DRBD
    SERVICE
    Disk
    Manager
    DRBD
    Primary Secondary
    Corosynrc/
    Pacemaker
    Corosynrc/
    Pacemaker

    View full-size slide

  25. 27
    Do Switching
    SERVICE
    Disk
    Manager
    DRBD
    SERVICE
    Disk
    Manager
    DRBD
    Primary Secondary
    Corosynrc/
    Pacemaker
    Corosynrc/
    Pacemaker

    View full-size slide

  26. 29
    DRBD SDS
    • OpenStack
    • OpenNebula
    • Docker
    • VMware
    • Kubernetes
    • LINBIT joins the Open Source OpenSDS
    Project

    View full-size slide

  27. Thank you.
    Join the conversation,
    contribute & have a lot of fun!
    www.opensuse.org

    View full-size slide

  28. 32
    Have a Lot of Fun, and Join Us At:
    www.opensuse.org

    View full-size slide

  29. General Disclaimer
    This document is not to be construed as a promise by any participating organisation to develop,
    deliver, or market a product. It is not a commitment to deliver any material, code, or
    functionality, and should not be relied upon in making purchasing decisions. openSUSE makes
    no representations or warranties with respect to the contents of this document, and specifically
    disclaims any express or implied warranties of merchantability or fitness for any particular
    purpose. The development, release, and timing of features or functionality described for
    openSUSE products remains at the sole discretion of openSUSE. Further, openSUSE reserves the
    right to revise this document and to make changes to its content, at any time, without obligation
    to notify any person or entity of such revisions or changes. All openSUSE marks referenced in
    this presentation are trademarks or registered trademarks of SUSE LLC, in the United States and
    other countries. All third-party trademarks are the property of their respective owners.
    License
    This slide deck is licensed under the Creative Commons Attribution-ShareAlike 4.0
    International license. It can be shared and adapted for any purpose (even commercially) as
    long as Attribution is given and any derivative work is distributed under the same license.
    Details can be found at https://creativecommons.org/licenses/by-sa/4.0/
    Credits
    Template
    Richard Brown
    [email protected]
    Design & Inspiration
    openSUSE Design Team
    http://opensuse.github.io/branding-
    guidelines/

    View full-size slide