Section 4 Block Storage with SES

Slides:



Advertisements
Similar presentations
Virtual Machine Technology Dr. Gregor von Laszewski Dr. Lizhe Wang.
Advertisements

Tag line, tag line SnapDrive for Windows 6.2 Customer Technical Presentation November 2009.
Copyright © 2014 EMC Corporation. All Rights Reserved. VNX Snapshot Upon completion of this module, you should be able to: Describe VNX Snapshot operations.
Storage Systems: Advanced Topics Learning Objectives: To understand limitations of “one file system per partition” model To understand Logical Volume Management.
Introduction to Unix (CA263) File System
File System Implementation
The Google File System. Why? Google has lots of data –Cannot fit in traditional file system –Spans hundreds (thousands) of servers connected to (tens.
Lab Manager Maintenance July, 2008 VMware Confidential Lab Manager 3 Training Series Module 9.
Guide To UNIX Using Linux Third Edition
Module – 11 Local Replication
VIRTUALISATION OF HADOOP CLUSTERS Dr G Sudha Sadasivam Assistant Professor Department of CSE PSGCT.
Personal vDisk Architecture and Design
NovaBACKUP 10 xSP Technical Training By: Nathan Fouarge
Elad Hayun Agenda What's New in Hyper-V 2012 Storage Improvements Networking Improvements VM Mobility Improvements.
VMware vSphere 4 Introduction. Agenda VMware vSphere Virtualization Technology vMotion Storage vMotion Snapshot High Availability DRS Resource Pools Monitoring.
Guide To UNIX Using Linux Fourth Edition
Storage Systems: Advanced Topics Learning Objectives: To understand major characteristics of SSD To understand Logical Volume Management – its motivations.
Hands-On Virtual Computing
A BigData Tour – HDFS, Ceph and MapReduce These slides are possible thanks to these sources – Jonathan Drusi - SCInet Toronto – Hadoop Tutorial, Amir Payberah.
Module 7: Hyper-V. Module Overview List the new features of Hyper-V Configure Hyper-V virtual machines.
Chapter 8 Implementing Disaster Recovery and High Availability Hands-On Virtual Computing.
Copyright © 2011 EMC Corporation. All Rights Reserved. MODULE – 6 VIRTUALIZED DATA CENTER – DESKTOP AND APPLICATION 1.
SNAP Shoot Services Apr 24 th, 2009 SNAP Shot Services Quick-start Aug 2009.
Copyright © 2014 EMC Corporation. All Rights Reserved. SnapView Snapshot Upon completion of this module, you should be able to: Describe SnapView Snapshot.
Chapter Two Exploring the UNIX File System and File Security.
COMP25212 STORAGE SYSTEM AND VIRTUALIZATION Sergio Davies Feb/Mar 2014COMP25212 – Storage 3.
Chapter Two Exploring the UNIX File System and File Security.
Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition, Chapter 11: File System Implementation.
MCSE Guide to Microsoft Windows Vista Professional Chapter 5 Managing File Systems.
Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition File System Implementation.
Enabling Grids for E-sciencE EGEE and gLite are registered trademarks Tools and techniques for managing virtual machine images Andreas.
 Introduction  Architecture NameNode, DataNodes, HDFS Client, CheckpointNode, BackupNode, Snapshots  File I/O Operations and Replica Management File.
4P13 Week 12 Talking Points Device Drivers 1.Auto-configuration and initialization routines 2.Routines for servicing I/O requests (the top half)
| nectar.org.au NECTAR TRAINING Module 9 Backing up & Packing up.
© 2009 IBM Corporation Statements of IBM future plans and directions are provided for information purposes only. Plans and direction are subject to change.
KVM tutorial #3 Andrea Chierici Virtualization tutorial Catania 1-3 dicember 2010.
From VMware to Proxmox Federico Calzolari Scuola Normale Superiore - INFN Pisa.
Introducing XenServer 2/2 Monforte Salvatore CCR – Virtualization Tutorial Catania 1-3 December 2010.
An Introduction to GPFS
Unit 8: Database and Storage Pool Backup and Recovery.
Intro To Virtualization Mohammed Morsi
The KVM/qemu storage stack Christoph Hellwig. Storage in Virtual Machines – Why? A disk is an integral part of a normal computer Most operating systems.
Elara Introduction Wentao Zhang? (NOTE: PASTE IN PORTRAIT AND SEND BEHIND FOREGROUND GRAPHIC FOR CROP)
Installing Windows 7 Lesson 2.
Andrea Chierici Virtualization tutorial Catania 1-3 dicember 2010
Do-more Technical Training
Bentley Systems, Incorporated
Jonathan Walpole Computer Science Portland State University
Ovirt Storage Overview
Tivoli Storage Manager Product Family
Chapter 11: File System Implementation
Section 6 Object Storage Gateway (RADOS-GW)
Virtualization with libvirt Kashyap Chamarthy
Chapter 12: File System Implementation
Building a Virtual Infrastructure
Section 7 Erasure Coding Overview
StratusLab Tutorial (Orsay, France)
Adam Thompson, Manitoba UNIX User Group, 2016-Feb-09
Storage Virtualization
Ceph: de factor storage backend for OpenStack
Introduction to Docker
Exploring the UNIX File System and File Security
20409A 7: Installing and Configuring System Center 2012 R2 Virtual Machine Manager Module 7 Installing and Configuring System Center 2012 R2 Virtual.
Virtualization Techniques
HC Hyper-V Module GUI Portal VPS Templates Web Console
Btrfs Filesystem Chris Mason.
Lecture 15 Reading: Bacon 7.6, 7.7
Off-line Direct Disk Access System
Instructor Materials Chapter 5: Windows Installation
Adam Thompson, Manitoba UNIX User Group, 2016-Feb-09
Presentation transcript:

Section 4 Block Storage with SES

Objectives Understand Block Storage in SES Configure storage for use as a block device Access storage from a Linux host

Understand Block Storage Objective Notes:

What is Block Storage SES supports clients accessing the RADOS storage cluster as a block device Provides clients with access to the cluster as if it was a disk drive Supported in the Linux kernel since 2.6.32 Supported by KVM/QEMU 16Eb file system sizes Thin provisioning Snapshots Copy on Write clones

Architecture Block devices Up to 16 EiB Thin Provisioning Snapshots (Kernel module) librados RADOS Cluster

RBD Storage VM VM Storage Block Device QEMU/KVM Linux Kernel librbd Kernel module LIBRADOS

Configure Block Storage

Configure a Block Device To use block storage in Ceph, an rbd image needs to be created This image is then mapped to the host as a block device, appearing under the /dev filesystem /dev/rbdn rbd images can be created in different formats Format 1 was the original format Format 2 is the default from Jewel onwards and supports copy-on-write clones Default can be changed if required Add the following lines to ceph.conf to set the rbd default [client] rbd default image format = 1 or 2 as required

Command: rbd Syntax: rbd OPTIONS command Option Description create -create an rbd image in the default pool info -view details of an existing rbd image map -connect a client node to an rbd image showmapped -display local /dev/rbdx → rbd image mapping Notes:

Creating a new rbd image If required, first create a new pool on the RADOS cluster Or use the default or an existing pool Use the rbd create option to make the new rbd image rbd create -p <poolname> <rbdimagename> --size <xxxx> --image format <1|2> If no pool is specified the default rbd pool will be used Size can be given in various units (MB, GB etc). Defaults to MB Check that the image is created rbd list

Access Storage from a Linux Host

Accessing an rbd image Devices are mapped using the pool and image names The rbd map option is used to configure access rbd map -p <poolname> <rbdimagename> If no pool is specified the default rbd pool will be used Check that the image is mapped correctly rbd showmapped

Deploying VMs with Block Storage

Using Block Storage with KVM/QEMU Virtual Machine images are a common use of Ceph block storage Direct support from KVM/QEMU Copy on Write (COW) snapshot support makes it easy to provision many VMs efficiently Preferred format is raw disk Other formats such as qcow are supported but introduce additional overhead and can cause problems with live VM migration if caching is enabled Creating QEMU image files on rbd is supported directly from the command line and from virt-manager via libvirt

Command: qemu-img Syntax: qemu-img command OPTIONS rbd-information Option Description create -create a qemu image file resize -change the size of a qemu image file info -view details of an image file convert -change format of an image file such as qcow to raw This is NOT a ceph specific command, it is part of the qemu project To use with rbd, provide the rbd specific details in place of the more usual filename qemu-img create -f raw rbd:poolname/imagename size Notes:

Snapshots with rbd

Creating Snapshots with rbd An rbd snapshot is a read-only copy of an rbd image taken at a given point in time Snapshots can be rolled back to restore the file-system state Difference files can be created to provide a delta between two snapshot states Similar to btrfs and ZFS functionality

Command: rbd snap Syntax: rdb snap OPTIONS <pool/image> <@snapshot> Option Description create -create a snapshot of an rbd image ls -list snapshots in a pool rollback -return the rbd image to an earlier snapshot state rm -delete a given snapshot purge -delete all snapshots of an image Notes:

Creating a snapshot rbd snap create <poolname>/<image-name>@<snapname> Creates a snapshot of the image, with the name snapname snapname is used to identify the individual snapshot Notes:

Restoring a snapshot rbd snap rollback<poolname>/<image- name>@<snapname> Restores the filesystem to the condition at the time <snapname> was created Need to remount filesystem to update filesystem status Notes:

Copy On Write Clones

Copy on Write Also known as 'snapshot layering' Requires the rbd image to be created as a format 2 image --image format 2 option when creating the rbd image COW Images are fully independent and writeable But require 'parent' snapshot to be present RBD Image (VM OS Base) Snapshot The graphic shows the common use case of hosting multiple VM systems from a single golden base image. Clone images VMs

Copy on Write - dependency Parent snapshot is required to remain present and unchanged Deletion of the parent snapshot will break all COW clones RBD Image (VM OS Base) Snapshot Notes: Clone images VMs

Creating a copy-on-write clone First, ensure that the rbd image is format 2 rbd snap –pool <poolname> --image <imagename> info Before creating any clones, protect the parent snapshot Deletion or changing the source snapshot will break all COW clones rbd snap protect <poolname>/<image-name>@<snapname> Create a COW Clone Basically a writeable snapshot rbd clone <sourcepool>/<sourceimage>@<snapshot> <destinationpool>/<destinationimage> Cloning is almost instantaneous Only a pointer is created back to the source snapshot

View details of a COW Clone rbd COW clones store details of their parent snapshot and how much data has been changed due to writes to the clone Use the info option to view the details of a COW clone Parent snapshot is listed Overlap is also listed to show overlap between clone and parent

Flattening COW Clones The COW clone approach is very effective Rapid creation of each clone Small disk overhead when a clone is created Only pointers to parent No additional data until changed data is written Sometimes there is a need to remove a COW clone from the dependency on the parent shapshot Perhaps to move a VM to a different host system Flatten option combines the parent snapshot with the clone image to make the COW Clone a fully independent rbd image Parent snapshot is unaffected, as are any other COW clones based on the same parent

COW Clone Flattening Use the rbd flatten command to convert from a COW Clone to a full, standalone rbd image rbd flatten <pool>/<imagename> Writes all data from the parent snapshot to the image Takes time and bandwidth as the entire image needs to be recreated rbd image remains available during the process as do all other COW images based on the same parent

Section 4 Exercises Objective Notes: