VM-HA with CloudStack and Linstor, Rene Peinthor

ShapeBlue 174 views 15 slides Oct 14, 2024
Slide 1
Slide 1 of 15
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13
Slide 14
14
Slide 15
15

About This Presentation

Linstor's CloudStack integration uses DRBD's quorum implementation to determine whether a VM currently has problems accessing its disk storage and might need to be restarted on another host. This talk overviewed the implementation and included a live demo of CloudStack’s VM-HA combined wit...


Slide Content

VM-HA with CloudStack and Linstor
Rene Peinthor, LINBIT

1

2
LINSTOR - goals
•storage build from generic Linux nodes
•for SDS consumers (Cloudstack, K8s, OpenNebula, ...)
•building on existing Linux storage components
•LVM, thin LVM or ZFS for volume management
•deployment architectures
•distinct storage nodes
•hyperconverged with hypervisors / container hosts
•Open Source, GPL

3

Architecture, CloudStack support

4

5
CloudStack Support
●4.17
○Volume snapshots
○Live migrate
●4.18
○IOPS QoS
○Backup snapshots
●4.19
○Backup snapshots
○VM snapshots (without memory)
○HA support

6

CloudStack VM High Availability


+

7
VM HA or Host HA?
●VM HA with Linstor and DRBD (3 nodes)


●Host HA
○Out-of-band management
○Fencing

8
DRBD quorum
●3 nodes minimum (3rd node can be diskless)
●No split-brain

9
VM quorum settings
●on-no-quorum suspend-io;
●on-no-data-accessible suspend-io;

Linstor commands:
linstor rg sp DrbdOptions/auto-quorum suspend -io cloudstack
linstor rg opt --on-no-data-accessible suspend-io cloudstack

10
1.Host goes down (network or power)
2.Ping timeout
3.checkOnHostCommand to all cluster agents
a.return: Host not responding
b.return: Other hosts notify host is down
4.CloudStack declares: “Host is down”
5.HA VM restart scheduling starting
CloudStack VM High Availability

11
checkingHeartBeat(pool, host);
Check local node?
●Parse drbdsetup events2 –now
○Check if any resource that is primary and
has promotion score 0

Check other node?
●Parse drbdsetup status –json
○Check if local node has any connected resource
to the other node

12
Settings for Linstor VM-HA
●Compute->High Availability (Mostly for Host HA)
○force.ha
●Hypervisor->KVM
○kvm.ha.activity.check.interval
○kvm.ha.activity.check.timeout
○kvm.ha.degraded.max.period
○…
●Miscellaneous->Others
○wait !!!
●ping.interval
●ping.timeout

13
Live Demo
AGENT-71

LINSTOR
AGENT-72

LINSTOR
AGENT-73

LINSTOR
MGMT-70

14
Live Demo
AGENT-71

LINSTOR
AGENT-72

LINSTOR
AGENT-73

LINSTOR
MGMT-70

15
Thank you
https://www.linbit.com