LiveBackup. Jagane Sundar jagane@sundar.org



Similar documents
Virtualization System Vulnerability Discovery Framework. Speaker: Qinghao Tang Title:360 Marvel Team Leader

Live und in Farbe Live Migration. André Przywara CLT 2010

How to Backup XenServer VM with VirtualIQ

VDC SLA Annex Additional Terms for Virtual Data Centre - SLAs

Operating Systems Virtualization mechanisms

Wishful Thinking vs. Reality in Regards to Virtual Backup and Restore Environments

Microsoft SMB File Sharing Best Practices Guide

Yiwo Tech Development Co., Ltd. EaseUS Todo Backup. Reliable Backup & Recovery Solution. EaseUS Todo Backup Solution Guide. All Rights Reserved Page 1

IOS110. Virtualization 5/27/2014 1

Virtualization in Linux KVM + QEMU

Week Overview. Installing Linux Linux on your Desktop Virtualization Basic Linux system administration

How to Install Windows on Xen TM 3.0

Solution for private cloud computing

Virtual Systems with qemu

The QEMU/KVM Hypervisor

Cloud Server. Parallels. Key Features and Benefits. White Paper.

Cloud UT. Pay-as-you-go computing explained

Network File System (NFS) Pradipta De

SPICE and desktop virtualization

Virtzone Cloud Control User Guide

Overview Customer Login Main Page VM Management Creation... 4 Editing a Virtual Machine... 6

BackupAssist v6 quickstart guide

Backing Up the CTERA Portal Using Veeam Backup & Replication. CTERA Portal Datacenter Edition. May 2014 Version 4.0

A SURVEY OF POPULAR CLUSTERING TECHNOLOGIES

Trusteer Rapport Virtual Implementation Scenarios

OpenNebula Open Souce Solution for DC Virtualization

Sheepdog: distributed storage system for QEMU

OpenNebula Open Souce Solution for DC Virtualization. C12G Labs. Online Webinar

A Project Summary: VMware ESX Server to Facilitate: Infrastructure Management Services Server Consolidation Storage & Testing with Production Servers

Cloud n Service Presentation. NTT Communications Corporation Cloud Services

Introduction. Setup of Exchange in a VM. VMware Infrastructure

Citrix XenServer-6.2 Administration Training

Virtual Machine Synchronization for High Availability Clusters

Supported File Systems

Zero-Downtime MySQL Backups

VDC SLA Annex Additional Terms for Virtual Data Centre - SLAs

2) Xen Hypervisor 3) UEC

Trends in Application Recovery. Andreas Schwegmann, HP

Web-Based Data Backup Solutions

MySQL Backup and Security. Best practices on how to run MySQL on Linux in a secure way Lenz Grimmer <lenz@mysql.com>

Options in Open Source Virtualization and Cloud Computing. Andrew Hadinyoto Republic Polytechnic

Backup Software Technology

Novell PlateSpin Orchestrate

OpenNebula Open Souce Solution for DC Virtualization

REMOTE BACKUP-WHY SO VITAL?

Backup Solution Testing on UCS for Small-Medium Range Customers (Disk to Tape) Acronis Advanced Backup Software

IGNITE Cloud Server enhancements

STeP-IN SUMMIT June 18 21, 2013 at Bangalore, INDIA. Performance Testing of an IAAS Cloud Software (A CloudStack Use Case)

Network Licensing. White Paper 0-15Apr014ks(WP02_Network) Network Licensing with the CRYPTO-BOX. White Paper

13.1 Backup virtual machines running on VMware ESXi / ESX Server

Configuring a VEEAM off host backup proxy server for backing up a Windows Server 2012 R2 Hyper-V cluster with a DELL Compellent SAN (Fiber Channel)

Managing your Red Hat Enterprise Linux guests with RHN Satellite

KVM: Kernel-based Virtualization Driver

How To Back Up A Computer To A Backup On A Hard Drive On A Microsoft Macbook (Or Ipad) With A Backup From A Flash Drive To A Flash Memory (Or A Flash) On A Flash (Or Macbook) On

Developing tests for the KVM autotest framework

VMware Data Recovery. Administrator's Guide EN

BackupAssist v6 quickstart guide

Implementing and Managing Windows Server 2008 Hyper-V

Vembu VMBackup v3.1.0 BETA

BEST PRACTICES GUIDE: VMware on Nimble Storage

Altaro Hyper-V Backup

Securing your Virtual Datacenter. Part 1: Preventing, Mitigating Privilege Escalation

ServerPronto Cloud User Guide

UserLock advanced documentation

Open File Backups WHITEPAPER. BackupAssist Version 6

Real-Time KVM for the Masses Unrestricted Siemens AG All rights reserved

ROADMAP TO DEFINE A BACKUP STRATEGY FOR SAP APPLICATIONS Helps you to analyze and define a robust backup strategy

WINDOWS AZURE EXECUTION MODELS

Lenz Grimmer

Fault-Tolerant Computer System Design ECE 695/CS 590. Putting it All Together

Solaris For The Modern Data Center. Taking Advantage of Solaris 11 Features

Virtual Server Agent v9 with VMware. March 2011

CHOOSING THE RIGHT RED HAT ENTERPRISE LINUX SUBSCRIPTION. Gerry Riveros Senior Manager Server Solutions, Red Hat May 6, 2011

Cloud.com CloudStack Community Edition 2.1 Beta Installation Guide

SAP HANA Backup and Recovery (Overview, SPS08)

Cloud^H^H^H^H^H Virtualization Technology. Andrew Jones May 2011

VMware and VSS: Application Backup and Recovery

Backup & Disaster Recovery Appliance User Guide

COLO: COarse-grain LOck-stepping Virtual Machine for Non-stop Service. Eddie Dong, Tao Hong, Xiaowei Yang

efolder BDR for Veeam Cloud Connection Guide

1. Introduction About the BackupAssist Hyper-V solution Advantages Features Granular technology... 2

AFACT Cloud Computing Working Group. Chia Hung Kao Institute for Information Industry

SERVICE SCHEDULE PULSANT ENTERPRISE CLOUD SERVICES

Veeam ONE What s New in v9?

Assignment # 1 (Cloud Computing Security)

VMware VDR and Cloud Storage: A Winning Backup/DR Combination

Logicalis Enterprise Cloud Frequently Asked Questions

ZEN LOAD BALANCER EE v3.02 DATASHEET The Load Balancing made easy

SEP Disaster Recovery and Backup Restore: Best

Transcription:

LiveBackup Jagane Sundar jagane@sundar.org

LiveBackup A complete Backup Solution Create Full and Incremental Backups of running VMs A System Administrator or Backup Software can use livebackup_client to connect to the qemu process using a TCP socket and transfer dirty blocks over Once dirty blocks are transferred over: They can be saved in an incremental backup file and written to tape, or The dirty blocks can be applied to a full backup image and kept ready to restart the VM on the backup host

LiveBackup - Overview VM Host Backup Host VM Qemu Live Backup LiveBackup client vdisk0 vdisk1 LiveBackup s copy of VM s Virtual Disk Files vdisk0 vdisk1 VM s Virtual Disk Files

LiveBackup Design Principles Designed for cloud operator needs Must have minimal performance impact on the running VM while it is in normal operation Must work with all types of virtual disk types, qcow, qcow2, LVM volumes, etc. Under failure circumstances, the operation of the VM must not be impaired (the backup operation can be sacrificed, but the VM must continue to operate just fine) Extra disk requirements should not be onerous

LiveBackup A Complete Backup Solution Solution consists of: Functional improvements to the qemu block layer: Track dirty blocks in memory since last full backup. Persist this across VM reboots A custom network protocol to transfer dirty disk blocks (will possibly be replaced by enhancements to libvirt) A snapshot mechanism to maintain a snapshot while the backup client transfers the dirty blocks over to the backup server livebackup_client to transfer dirty blocks from qemu

LiveBackup Characteristics Most of the time, i.e. when a livebackup_client is not connected to qemu, LiveBackup merely sets a bit in the in-memory bitmap indicating that the block has been dirtied When a backup client wants to take a backup, it will to create a point-in-time snapshot of all the virtual disks, usually after inducing the Application and Guest OS to flush buffered data

LiveBackup Example Backup a VM that uses mysql ssh into guest OS and run mysql command: flush tables with read lock Run sync on guest OS to flush blocks (wait for a few seconds) Connect to qemu livebackup and call create snapshot ssh into guest OS and run mysql command: unlock tables Connect to qemu livebackup and copy blocks for snapshot (all blocks for full backup, just dirty blocks for incremental backup) Connect to qemu livebackup and call destroy snapshot

Timeline of backup operation LiveBackup client mysql: flush tables with read lock OS sync mysql: unlock tables guest (with mysql, etc.) create snap transfer blocks destroy snap qemu with LiveBackup, running in host OS Time during which mysql cannot write Time during which snap is active

Usage Example Livebackup Server (built into qemu process for the VM) #./x86_64-softmmu/qemu-system-x86_64 \ -drive file=/dev/kvm_vol_group/kvm_root_part,boot=on,if=virtio,livebackup=on \ -drive file=/dev/kvm_vol_group/kvm_disk1,if=virtio,livebackup=on \ -vnc 0.0.0.0:1000 -usb -usbdevice tablet \ -livebackup_dir /root/kvm/livebackup -livebackup_port 7900 \ -m 512 -net nic,model=virtio,macaddr=52:54:00:00:00:01 \ -net tap,ifname=tap0,script=no,downscript=no Livebackup Client (run on backup server) # livebackup_client /root/kvm-backup 192.168.1.220 7900

LiveBackup Failure Scenarios qemu crashes during normal operation of the VM livebackup_client is forced to do a full backup the next time around qemu crashes while livebackup is in progress livebackup_client is forced to do a full backup the next time around livebackup_client crashes while livebackup is in progress a new livebackup_client can redo the last type of backup it was doing - an incremental backup or a full backup In most failure scenarios, the backup is impacted, but the VM itself continues to run unimpaired

LiveBackup Testing methodology Hypothesis: LiveBackup creates a backup of all the virtual disks of a VM such that the backup virtual disk images will be a bit for bit match of the virtual disk images at the point in time when the livebackup_client program issues a 'create snapshot' command I added code to my implementation of do_snap in livebackup.c, such that after the livebackup snapshot is created, I would invoke lvcreate to create a LVM snapshot of the underlying LVM logical volume # /sbin/lvcreate -L1G -s -n kvm_root_part_backup /dev/kvm_vol_group/kvm_root_part Run the livebackup_client on the same machine as the VM to create a backup image of the virtual disks Run cmp to compare the backup disk image file and the snapshot logical volume created # cmp /dev/kvm_vol_group/kvm_root_part_backup kvm_root_part

Git repositories git://github.com/jagane/qemu-livebackup.git git://github.com/jagane/qemu-kvm-livebackup.git

LiveBackup Thank You Question? Comments? Flames? Jagane Sundar jagane@sundar.org