SlideShare ist ein Scribd-Unternehmen logo
1 von 30
Downloaden Sie, um offline zu lesen
High Availability Storage
SUSE's Building Blocks
Roger Zhou
Sr. Eng Manager
zzhou@suse.com
Guoqing Jiang
HA Specialist
gqjiang@suse.com
2
SLE-HA Introduction
The SUSE Linux Enterprise High Availability Extension is powered by Pacemaker & Corosync
to eliminate SPOF for critical data, applications, and services, to implement HA clusters.
TUT88811 - Practical High Availability
Web Site A
Web Site B
Web Server 1
Web Site C
Web Site D
Web Site E
Web Site F
Web Server 2 Web Server 3
Shared StorageFibre Channel Switch
Web Site A Web Site B
Web Server 1
Web Site C
Web Site D
Web Site E
Web Site F
Web Server 2 Web Server 3
Shared StorageFibre Channel Switch
3
Storage
Software Elements
– Block Device: hdX, sdX, vdX => vgX, dmX, mdX
– Filesystem: ext3/4, xfs, btrfs => ocfs2, gfs2
Enterprise Requirements ( must-have )
– High Available (Active-Passive, Active-Active)
– Data Protection (Data Replication)
4
Small Business
5
High Availability Block Device
- active/passive
6
High Availability – DRBD
• DRBD – Data Replication Block Device
• A special master/slave resources is
managed by pacemaker, corosync
software stack
• SLE HA stack manages the service
ordering, dependency, and failover
• Active-Passive approach
Host1 Host2
Virtual IP
Apache/ext4
DRBD Master
Kernel
Virtual IP
Apache/ext4
DRBD Slave
Pacemaker + Corosync
Kernel
Failover
7
High Availability LVM
• HA-LVM resources managed by
pacemaker, corosync software stack
• lvmconf --enable-halvm
• Active-Passive approach
Host1 Host2
Virtual IP
LVM
DRBD Master
Kernel
Virtual IP
LVM
DRBD Slave
Pacemaker + Corosync
Kernel
Failover
8
High Availability iSCSI Server
• iSCSI provides the block devices
over TCP/IP
• Active-Passive approach
Host1 Host2
Virtual IP
ISCSILogicalUnit
iSCSITarget
Kernel
Virtual IP
iSCSILogicalUnit
iSCSITarget
Pacemaker + Corosync
Kernel
Failover
DRBD
Master/LVM
DRBD
Slave/LVM
9
High Availability Filesystem
10
High Availability NFS (HA-NAS)
• NFS server on top of ext3/ext4
• Same applies to:
– xfs
– cifs samba
– etc.
• Active-Passive approach
Host1 Host2
Virtual IP
NFS Exports
Filesystem(ext4)
Kernel
Virtual IP
NFS Exports
Filesystem(ext4)
Pacemaker + Corosync
Kernel
Failover
DRBD
Master/LVM
DRBD
Slave/LVM
11
High Availability NFS (HA-NAS) with Shared Disk
• Active-Passive approach
NOTE: multipathing is “must-have”
for Enterprise
Host1 Host2
Virtual IP
NFS Exports
Kernel
Virtual IP
NFS Exports
Pacemaker + Corosync
Kernel
Failover
Shared
Disk
Filesystem(ext4) Filesystem(ext4)
12
Motivation for Your Storage Growth
Scalability —► extendable storage
Easy Management —► cluster aware components
Cost Effective —► shared resources
Performance —► active – active
13
Concurrent Sharing – you need a lock
14
Clustered LVM2 (cLVM2)
• cLVM2 enables multiple nodes to use
LVM2 on the shared disk
• cLVM2 coordinates LVM2 metadata,
does not coordinate access to the
shared data
• That said, multiple nodes access data
of different dedicated VG are safe
• lvmconf --enable-cluster
• Active-Active approach
Host1 Host2
Pacemaker + Corosync +DLM
LVM2
Metadata
clvmd
Shared LUN 2
Shared LUN 1
LVM2
Metadata
clvmd
15
Clustered FS – OCFS2 on shared disk
• OCFS2 resources is managed by
using pacemaker, corosync, dlm
software stack
• Multiple host can modify the same
file with performance penalty
• DLM lock protects the data access
• Active-Active approach
Host1 Host2
Clustered File System
Kernel
Pacemaker + Corosync + DLM
Kernel
OCFS2 OCFS2
Shared
Disk
16
OCFS2 + cLVM2 (both volumes and data are safe)
• cLVM provides clustered VG. Metadata
is protected
• OCFS2 protect the data access inside
the volume
• Safe to enlarge the filesystem size
• Active-Active approach
Host1 Host2
Clustered File System
Kernel
Pacemaker + Corosync + DLM
Kernel
cLVM2 cLVM2
Shared
Disk
OCFS2 OCFS2
17
Is Data Safe Enough?
18
Data Replication
Data Replication in general
– File Replication (Not the focus of this talk.)
– Block Level Replication
• A great new feature “Clustered MD RAID 1” now is available in in SLE12 HA SP2
– Object Storage Replication
• TUT89016 - SUSE Enterprise Storage: Disaster Recovery with Block Mirroring
Requirements in HA context
– Multiple nodes
– Active-active
19
Data Replication – DRBD
DRBD can be thought as a networked RAID1.
DRBD allows you to create a mirror of two block devices that
are located at two different sites across the network.
It mirrors data in real-time, so its replication occurs
continuously, and works well for long distance replication.
SLE 12 HA SP2 now supports DRBD 9.
20
Data Replication – clvm/cmirrord
● There are different types of LV in CLVM: Snapshot, Striped and
Mirrored etc.
● CLVM has been extended from LVM to support transparent
management of volume groups across the whole cluster.
● For CLVM, we can also created mirrored lv to achieve data
replication, and cmirrord is used to tracks mirror log info
in a cluster.
21
Data Replication – clustered md/raid1
The cluster multi-device (Cluster MD) is a software based RAID
storage solution for a cluster.
The biggest motivation for Cluster MD is that CLVM/cmirrord has
severe performance issue and people are not happy about it.
Cluster MD provides the redundancy of RAID1
mirroring to the cluster. SUSE considers to
support other RAID levels with further evaluation.
22
Data Replication – clustered md/raid1 (cont.)
Internals:
– Cluster MD keeps write-intent-bitmap for each cluster node.
– During "normal" I/O access, we assume the clustered filesystem ensures that only one
node writes to any given block at a time.
– With each node have it's own bitmap, there would be no locking
and no need to keep sync array during normal operation.
– Cluster MD would only handle the bitmaps when
resync/recovery etc happened.
23
Data Replication – clustered md/raid1 (cont.)
It coordinates RAID1 metadata, not coordinate access to the
shared data, and it’s performance is close to native RAID1.
CLVM must send a message to user space, that must be
passed to all nodes. Acknowledgments must return to the
originating node, then to the kernel module.
Some related links:
https://lwn.net/Articles/674085/
http://www.spinics.net/lists/raid/msg47863.html
24
Data Replication – Comparison
Active/Active mode Suitable for Geo Shared Storage
DRBD
Supported
(limited to two nodes)
Yes
No,
storage is dedicated
to each node.
CLVM
(cmirrord)
Supported, the node number
is limited by pacemaker and
corosync
No Yes
Clustered
md/raid1
Supported, the node number
is limited by pacemaker and
corosync
No Yes
25
Data Replication – Performance Comparison
FIO test with sync engine
Read Write
4k
16k
0 500 1000 1500 2000 2500 3000 3500
RawDisk
NativeRaid
Clustermd
Cmirror
Average iops
Blocksize
4k
16k
0 1000 2000 3000 4000 5000 6000 7000 8000
RawDisk
NativeRaid
Clustermd
Cmirror
Average iops
Blocksize
26
Data Replication – Performance Comparison
FIO test with libaio engine
Read Write
4k
16k
0 5000 10000 15000 20000 25000 30000 35000 40000
RawDisk
NativeRaid
Clustermd
Cmirror
Average iops
Blocksize
4k
16k
0 5000 10000 15000 20000 25000
RawDisk
NativeRaid
Clustermd
Cmirror
Average iopsBlocksize
27
Recap
28
Recap: HA Storage Building Blocks
Block-level
HA DRBD
HA LVM2
HA iSCSI
cLVM2
Clustered MD RAID1
Filesystem-level
HA NFS / CIFS
HA EXT3/EXT4/XFS
OCFS2 (GFS2)
29
Question & Answer
High Availability Storage (susecon2016)

Weitere ähnliche Inhalte

Was ist angesagt?

How VXLAN works on Linux
How VXLAN works on LinuxHow VXLAN works on Linux
How VXLAN works on Linux
Etsuji Nakai
 
ZFS
ZFSZFS

Was ist angesagt? (20)

DPDK: Multi Architecture High Performance Packet Processing
DPDK: Multi Architecture High Performance Packet ProcessingDPDK: Multi Architecture High Performance Packet Processing
DPDK: Multi Architecture High Performance Packet Processing
 
Troubleshooting common oslo.messaging and RabbitMQ issues
Troubleshooting common oslo.messaging and RabbitMQ issuesTroubleshooting common oslo.messaging and RabbitMQ issues
Troubleshooting common oslo.messaging and RabbitMQ issues
 
How to size up an Apache Cassandra cluster (Training)
How to size up an Apache Cassandra cluster (Training)How to size up an Apache Cassandra cluster (Training)
How to size up an Apache Cassandra cluster (Training)
 
Ceph issue 해결 사례
Ceph issue 해결 사례Ceph issue 해결 사례
Ceph issue 해결 사례
 
VLANs in the Linux Kernel
VLANs in the Linux KernelVLANs in the Linux Kernel
VLANs in the Linux Kernel
 
Running MariaDB in multiple data centers
Running MariaDB in multiple data centersRunning MariaDB in multiple data centers
Running MariaDB in multiple data centers
 
How VXLAN works on Linux
How VXLAN works on LinuxHow VXLAN works on Linux
How VXLAN works on Linux
 
ML2/OVN アーキテクチャ概観
ML2/OVN アーキテクチャ概観ML2/OVN アーキテクチャ概観
ML2/OVN アーキテクチャ概観
 
Receive side scaling (RSS) with eBPF in QEMU and virtio-net
Receive side scaling (RSS) with eBPF in QEMU and virtio-netReceive side scaling (RSS) with eBPF in QEMU and virtio-net
Receive side scaling (RSS) with eBPF in QEMU and virtio-net
 
Under the Hood of a Shard-per-Core Database Architecture
Under the Hood of a Shard-per-Core Database ArchitectureUnder the Hood of a Shard-per-Core Database Architecture
Under the Hood of a Shard-per-Core Database Architecture
 
Ceph Day Beijing - Ceph All-Flash Array Design Based on NUMA Architecture
Ceph Day Beijing - Ceph All-Flash Array Design Based on NUMA ArchitectureCeph Day Beijing - Ceph All-Flash Array Design Based on NUMA Architecture
Ceph Day Beijing - Ceph All-Flash Array Design Based on NUMA Architecture
 
EBPF and Linux Networking
EBPF and Linux NetworkingEBPF and Linux Networking
EBPF and Linux Networking
 
Scylla Summit 2022: The Future of Consensus in ScyllaDB 5.0 and Beyond
Scylla Summit 2022: The Future of Consensus in ScyllaDB 5.0 and BeyondScylla Summit 2022: The Future of Consensus in ScyllaDB 5.0 and Beyond
Scylla Summit 2022: The Future of Consensus in ScyllaDB 5.0 and Beyond
 
Excitingly simple multi-path OpenStack networking: LAG-less, L2-less, yet ful...
Excitingly simple multi-path OpenStack networking: LAG-less, L2-less, yet ful...Excitingly simple multi-path OpenStack networking: LAG-less, L2-less, yet ful...
Excitingly simple multi-path OpenStack networking: LAG-less, L2-less, yet ful...
 
Kernel Recipes 2019 - XDP closer integration with network stack
Kernel Recipes 2019 -  XDP closer integration with network stackKernel Recipes 2019 -  XDP closer integration with network stack
Kernel Recipes 2019 - XDP closer integration with network stack
 
ZFS
ZFSZFS
ZFS
 
Ceph RBD Update - June 2021
Ceph RBD Update - June 2021Ceph RBD Update - June 2021
Ceph RBD Update - June 2021
 
Zero Downtime Schema Changes - Galera Cluster - Best Practices
Zero Downtime Schema Changes - Galera Cluster - Best PracticesZero Downtime Schema Changes - Galera Cluster - Best Practices
Zero Downtime Schema Changes - Galera Cluster - Best Practices
 
Open vSwitch 패킷 처리 구조
Open vSwitch 패킷 처리 구조Open vSwitch 패킷 처리 구조
Open vSwitch 패킷 처리 구조
 
CXL_説明_公開用.pdf
CXL_説明_公開用.pdfCXL_説明_公開用.pdf
CXL_説明_公開用.pdf
 

Ähnlich wie High Availability Storage (susecon2016)

How To Build A Scalable Storage System with OSS at TLUG Meeting 2008/09/13
How To Build A Scalable Storage System with OSS at TLUG Meeting 2008/09/13How To Build A Scalable Storage System with OSS at TLUG Meeting 2008/09/13
How To Build A Scalable Storage System with OSS at TLUG Meeting 2008/09/13
Gosuke Miyashita
 
GlusterFS Update and OpenStack Integration
GlusterFS Update and OpenStack IntegrationGlusterFS Update and OpenStack Integration
GlusterFS Update and OpenStack Integration
Etsuji Nakai
 
What CloudStackers Need To Know About LINSTOR/DRBD
What CloudStackers Need To Know About LINSTOR/DRBDWhat CloudStackers Need To Know About LINSTOR/DRBD
What CloudStackers Need To Know About LINSTOR/DRBD
ShapeBlue
 

Ähnlich wie High Availability Storage (susecon2016) (20)

Linux High Availability Overview - openSUSE.Asia Summit 2015
Linux High Availability Overview - openSUSE.Asia Summit 2015 Linux High Availability Overview - openSUSE.Asia Summit 2015
Linux High Availability Overview - openSUSE.Asia Summit 2015
 
SUSE Expert Days Paris 2018 - SUSE HA Cluster Multi-Device
SUSE Expert Days Paris 2018 - SUSE HA Cluster Multi-DeviceSUSE Expert Days Paris 2018 - SUSE HA Cluster Multi-Device
SUSE Expert Days Paris 2018 - SUSE HA Cluster Multi-Device
 
How To Build A Scalable Storage System with OSS at TLUG Meeting 2008/09/13
How To Build A Scalable Storage System with OSS at TLUG Meeting 2008/09/13How To Build A Scalable Storage System with OSS at TLUG Meeting 2008/09/13
How To Build A Scalable Storage System with OSS at TLUG Meeting 2008/09/13
 
Gpfs introandsetup
Gpfs introandsetupGpfs introandsetup
Gpfs introandsetup
 
Distributed replicated block device
Distributed replicated block deviceDistributed replicated block device
Distributed replicated block device
 
DAS RAID NAS SAN
DAS RAID NAS SANDAS RAID NAS SAN
DAS RAID NAS SAN
 
What's new in Jewel and Beyond
What's new in Jewel and BeyondWhat's new in Jewel and Beyond
What's new in Jewel and Beyond
 
RAC - The Savior of DBA
RAC - The Savior of DBARAC - The Savior of DBA
RAC - The Savior of DBA
 
GlusterFS Update and OpenStack Integration
GlusterFS Update and OpenStack IntegrationGlusterFS Update and OpenStack Integration
GlusterFS Update and OpenStack Integration
 
Build a High Available NFS Cluster Based on CephFS - Shangzhong Zhu
Build a High Available NFS Cluster Based on CephFS - Shangzhong ZhuBuild a High Available NFS Cluster Based on CephFS - Shangzhong Zhu
Build a High Available NFS Cluster Based on CephFS - Shangzhong Zhu
 
Big Data in Container; Hadoop Spark in Docker and Mesos
Big Data in Container; Hadoop Spark in Docker and MesosBig Data in Container; Hadoop Spark in Docker and Mesos
Big Data in Container; Hadoop Spark in Docker and Mesos
 
Glusterfs for sysadmins-justin_clift
Glusterfs for sysadmins-justin_cliftGlusterfs for sysadmins-justin_clift
Glusterfs for sysadmins-justin_clift
 
Building High Availability Clusters with SUSE Linux Enterprise High Availabil...
Building High Availability Clusters with SUSE Linux Enterprise High Availabil...Building High Availability Clusters with SUSE Linux Enterprise High Availabil...
Building High Availability Clusters with SUSE Linux Enterprise High Availabil...
 
Performance characterization in large distributed file system with gluster fs
Performance characterization in large distributed file system with gluster fsPerformance characterization in large distributed file system with gluster fs
Performance characterization in large distributed file system with gluster fs
 
What CloudStackers Need To Know About LINSTOR/DRBD
What CloudStackers Need To Know About LINSTOR/DRBDWhat CloudStackers Need To Know About LINSTOR/DRBD
What CloudStackers Need To Know About LINSTOR/DRBD
 
Introduction to hadoop and hdfs
Introduction to hadoop and hdfsIntroduction to hadoop and hdfs
Introduction to hadoop and hdfs
 
OpenNebulaConf 2016 - The DRBD SDS for OpenNebula by Philipp Reisner, LINBIT
OpenNebulaConf 2016 - The DRBD SDS for OpenNebula by Philipp Reisner, LINBITOpenNebulaConf 2016 - The DRBD SDS for OpenNebula by Philipp Reisner, LINBIT
OpenNebulaConf 2016 - The DRBD SDS for OpenNebula by Philipp Reisner, LINBIT
 
First steps on CentOs7
First steps on CentOs7First steps on CentOs7
First steps on CentOs7
 
Lightweight Virtualization in Linux
Lightweight Virtualization in LinuxLightweight Virtualization in Linux
Lightweight Virtualization in Linux
 
ZFS and MySQL on Linux, the Sweet Spots
ZFS and MySQL on Linux, the Sweet SpotsZFS and MySQL on Linux, the Sweet Spots
ZFS and MySQL on Linux, the Sweet Spots
 

Kürzlich hochgeladen

EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
Earley Information Science
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
giselly40
 

Kürzlich hochgeladen (20)

Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdf
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 

High Availability Storage (susecon2016)

  • 1. High Availability Storage SUSE's Building Blocks Roger Zhou Sr. Eng Manager zzhou@suse.com Guoqing Jiang HA Specialist gqjiang@suse.com
  • 2. 2 SLE-HA Introduction The SUSE Linux Enterprise High Availability Extension is powered by Pacemaker & Corosync to eliminate SPOF for critical data, applications, and services, to implement HA clusters. TUT88811 - Practical High Availability Web Site A Web Site B Web Server 1 Web Site C Web Site D Web Site E Web Site F Web Server 2 Web Server 3 Shared StorageFibre Channel Switch Web Site A Web Site B Web Server 1 Web Site C Web Site D Web Site E Web Site F Web Server 2 Web Server 3 Shared StorageFibre Channel Switch
  • 3. 3 Storage Software Elements – Block Device: hdX, sdX, vdX => vgX, dmX, mdX – Filesystem: ext3/4, xfs, btrfs => ocfs2, gfs2 Enterprise Requirements ( must-have ) – High Available (Active-Passive, Active-Active) – Data Protection (Data Replication)
  • 5. 5 High Availability Block Device - active/passive
  • 6. 6 High Availability – DRBD • DRBD – Data Replication Block Device • A special master/slave resources is managed by pacemaker, corosync software stack • SLE HA stack manages the service ordering, dependency, and failover • Active-Passive approach Host1 Host2 Virtual IP Apache/ext4 DRBD Master Kernel Virtual IP Apache/ext4 DRBD Slave Pacemaker + Corosync Kernel Failover
  • 7. 7 High Availability LVM • HA-LVM resources managed by pacemaker, corosync software stack • lvmconf --enable-halvm • Active-Passive approach Host1 Host2 Virtual IP LVM DRBD Master Kernel Virtual IP LVM DRBD Slave Pacemaker + Corosync Kernel Failover
  • 8. 8 High Availability iSCSI Server • iSCSI provides the block devices over TCP/IP • Active-Passive approach Host1 Host2 Virtual IP ISCSILogicalUnit iSCSITarget Kernel Virtual IP iSCSILogicalUnit iSCSITarget Pacemaker + Corosync Kernel Failover DRBD Master/LVM DRBD Slave/LVM
  • 10. 10 High Availability NFS (HA-NAS) • NFS server on top of ext3/ext4 • Same applies to: – xfs – cifs samba – etc. • Active-Passive approach Host1 Host2 Virtual IP NFS Exports Filesystem(ext4) Kernel Virtual IP NFS Exports Filesystem(ext4) Pacemaker + Corosync Kernel Failover DRBD Master/LVM DRBD Slave/LVM
  • 11. 11 High Availability NFS (HA-NAS) with Shared Disk • Active-Passive approach NOTE: multipathing is “must-have” for Enterprise Host1 Host2 Virtual IP NFS Exports Kernel Virtual IP NFS Exports Pacemaker + Corosync Kernel Failover Shared Disk Filesystem(ext4) Filesystem(ext4)
  • 12. 12 Motivation for Your Storage Growth Scalability —► extendable storage Easy Management —► cluster aware components Cost Effective —► shared resources Performance —► active – active
  • 13. 13 Concurrent Sharing – you need a lock
  • 14. 14 Clustered LVM2 (cLVM2) • cLVM2 enables multiple nodes to use LVM2 on the shared disk • cLVM2 coordinates LVM2 metadata, does not coordinate access to the shared data • That said, multiple nodes access data of different dedicated VG are safe • lvmconf --enable-cluster • Active-Active approach Host1 Host2 Pacemaker + Corosync +DLM LVM2 Metadata clvmd Shared LUN 2 Shared LUN 1 LVM2 Metadata clvmd
  • 15. 15 Clustered FS – OCFS2 on shared disk • OCFS2 resources is managed by using pacemaker, corosync, dlm software stack • Multiple host can modify the same file with performance penalty • DLM lock protects the data access • Active-Active approach Host1 Host2 Clustered File System Kernel Pacemaker + Corosync + DLM Kernel OCFS2 OCFS2 Shared Disk
  • 16. 16 OCFS2 + cLVM2 (both volumes and data are safe) • cLVM provides clustered VG. Metadata is protected • OCFS2 protect the data access inside the volume • Safe to enlarge the filesystem size • Active-Active approach Host1 Host2 Clustered File System Kernel Pacemaker + Corosync + DLM Kernel cLVM2 cLVM2 Shared Disk OCFS2 OCFS2
  • 17. 17 Is Data Safe Enough?
  • 18. 18 Data Replication Data Replication in general – File Replication (Not the focus of this talk.) – Block Level Replication • A great new feature “Clustered MD RAID 1” now is available in in SLE12 HA SP2 – Object Storage Replication • TUT89016 - SUSE Enterprise Storage: Disaster Recovery with Block Mirroring Requirements in HA context – Multiple nodes – Active-active
  • 19. 19 Data Replication – DRBD DRBD can be thought as a networked RAID1. DRBD allows you to create a mirror of two block devices that are located at two different sites across the network. It mirrors data in real-time, so its replication occurs continuously, and works well for long distance replication. SLE 12 HA SP2 now supports DRBD 9.
  • 20. 20 Data Replication – clvm/cmirrord ● There are different types of LV in CLVM: Snapshot, Striped and Mirrored etc. ● CLVM has been extended from LVM to support transparent management of volume groups across the whole cluster. ● For CLVM, we can also created mirrored lv to achieve data replication, and cmirrord is used to tracks mirror log info in a cluster.
  • 21. 21 Data Replication – clustered md/raid1 The cluster multi-device (Cluster MD) is a software based RAID storage solution for a cluster. The biggest motivation for Cluster MD is that CLVM/cmirrord has severe performance issue and people are not happy about it. Cluster MD provides the redundancy of RAID1 mirroring to the cluster. SUSE considers to support other RAID levels with further evaluation.
  • 22. 22 Data Replication – clustered md/raid1 (cont.) Internals: – Cluster MD keeps write-intent-bitmap for each cluster node. – During "normal" I/O access, we assume the clustered filesystem ensures that only one node writes to any given block at a time. – With each node have it's own bitmap, there would be no locking and no need to keep sync array during normal operation. – Cluster MD would only handle the bitmaps when resync/recovery etc happened.
  • 23. 23 Data Replication – clustered md/raid1 (cont.) It coordinates RAID1 metadata, not coordinate access to the shared data, and it’s performance is close to native RAID1. CLVM must send a message to user space, that must be passed to all nodes. Acknowledgments must return to the originating node, then to the kernel module. Some related links: https://lwn.net/Articles/674085/ http://www.spinics.net/lists/raid/msg47863.html
  • 24. 24 Data Replication – Comparison Active/Active mode Suitable for Geo Shared Storage DRBD Supported (limited to two nodes) Yes No, storage is dedicated to each node. CLVM (cmirrord) Supported, the node number is limited by pacemaker and corosync No Yes Clustered md/raid1 Supported, the node number is limited by pacemaker and corosync No Yes
  • 25. 25 Data Replication – Performance Comparison FIO test with sync engine Read Write 4k 16k 0 500 1000 1500 2000 2500 3000 3500 RawDisk NativeRaid Clustermd Cmirror Average iops Blocksize 4k 16k 0 1000 2000 3000 4000 5000 6000 7000 8000 RawDisk NativeRaid Clustermd Cmirror Average iops Blocksize
  • 26. 26 Data Replication – Performance Comparison FIO test with libaio engine Read Write 4k 16k 0 5000 10000 15000 20000 25000 30000 35000 40000 RawDisk NativeRaid Clustermd Cmirror Average iops Blocksize 4k 16k 0 5000 10000 15000 20000 25000 RawDisk NativeRaid Clustermd Cmirror Average iopsBlocksize
  • 28. 28 Recap: HA Storage Building Blocks Block-level HA DRBD HA LVM2 HA iSCSI cLVM2 Clustered MD RAID1 Filesystem-level HA NFS / CIFS HA EXT3/EXT4/XFS OCFS2 (GFS2)