1 / 20

Virtualisation on Linux and storage high-availability

Virtualisation on Linux and storage high-availability. (C) 2011 - CS / MI Adfinis SyGroup AG. Introduction. Adfinis SyGroup AG Mario Iseli & Christian Schläppi. Table of contents. Virtualisation overview Linux KVM Requirements for dedicated storage Storage concepts Costs.

naiara
Télécharger la présentation

Virtualisation on Linux and storage high-availability

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Virtualisation on Linux and storage high-availability • (C) 2011 - CS / MI Adfinis SyGroup AG

  2. Introduction • Adfinis SyGroup AG • Mario Iseli & Christian Schläppi

  3. Table of contents • Virtualisation overview • Linux KVM • Requirements for dedicated storage • Storage concepts • Costs

  4. Table of contents • HA concepts • Pimp your system • Filesystems • Our flagship implementation ;-)

  5. Virtualisation overview • Full virtualisation (Hypervisor) • Para virtualisation (aka “pimped chroot”)

  6. Linux KVM • Hypervisor, “out of the box” • libvirt • Frontend API • Backend API • nw-filter definition • Storage pool definition

  7. Requirements for dedicated “Storage” • Problems with images • Complexity of migrations (large downtime) • Load-balancing • High-availability • Performance bottlenecks

  8. Storage concepts • NFS (file-sharing, common HW) • iSCSI (block-device sharing, common HW) • FibreChannel (block-device sharing, custom HW)

  9. Cost overview • “real” SANs (appliance solutions) • licensing • feature licensing • high CapEx and high Opex • “custom” Storage

  10. High-availability concepts • Master-Master Clusters • Master-Slave Clusters • Multinode Clusters • Load distribution in clusters

  11. General pimping • Memory sharing (KSM) • Network bonding (EtherChannel, Trunk, Aggregation - however you’d like to call it, IEEE802.3ad aka LACP) • VLANs (Trunking... again - IEEE802.1q) • Logical volumes (LVM)

  12. Linux HA solutions • Pacemaker / Corosync • DRBD

  13. Filesystems • Clustered filesystems • OCFS2 • GFS • GlusterFS • Locking (DLM) • cLVM

  14. Implementation • Architecture overview • Multipathing (and “protocol C” in DRBD) • KVM storage-management (attach a whole target from libvirt) • Config snippets

  15. node node1 node node2 primitive resFSvarwww ocf:heartbeat:Filesystem \ params device="/dev/drbd0" directory="/var/www" fstype="xfs" options="noatime" primitive resHTTPD lsb:lighttpd \ op monitor interval="10s" timeout="5s" \ meta target-role="Started" primitive resIntIP ocf:heartbeat:IPaddr2 \ params ip="10.10.10.30" cidr_netmask="24" primitive resNFS-Kernel-Server lsb:nfs-kernel-server primitive resPing ocf:pacemaker:ping \ params host_list="router1 router2" multiplier="100" \ op monitor interval="10s" timeout="20s" \ op start interval="0" timeout="90s" \ op stop interval="0" timeout="100s"

  16. group groupService resPubIP resIntIP resNFS-Common resNFS-Kernel-Server ms msDRBD resDRBD \ meta master-max="2" notify="true" target-role="Master" is-managed="true" clone clonePing resPing \ meta globally-unique="false" location locServiceonConnected groupService \ rule $id="locServiceonConnected-rule" -inf: not_defined pingd or pingd lte 0 colocation colServiceDRBD inf: groupService msDRBD:Master order ordDRBDbeforeService 0: msDRBD:promote groupService property $id="cib-bootstrap-options" \ stonith-enabled="true" \ no-quorum-policy="ignore" \ maintenance-mode="false"

  17. Performance comparison • Values with iSCSI • Downtime with storage-node failure

  18. Questions?(cu @ social event) • (C) 2011 - CS / MI Adfinis SyGroup AG

More Related