Device-mapper RAID tool Linux-Kongress Hamburg 2005

Slides:



Advertisements
Similar presentations
Linux Installation LINUX INSTALLATION. Download LINUX Linux Installation To install Red Hat, you will need to download the ISO images (CD Images) of the.
Advertisements

Goals Give you a feeling of what Eclipse is.
L V M A Logical Volume Manager for Linux by Heinz Mauelshagen Sistina, Inc.
Operating Systems Concepts 1. A Computer Model An operating system has to deal with the fact that a computer is made up of a CPU, random access memory.
Virtualization for Cloud Computing
 Introduction Introduction  Definition of Operating System Definition of Operating System  Abstract View of OperatingSystem Abstract View of OperatingSystem.
1 The Virtual Reality Virtualization both inside and outside of the cloud Mike Furgal Director – Managed Database Services BravePoint.
Module 10 Configuring and Managing Storage Technologies.
GeoVision Solutions Storage Management & Backup. ๏ RAID - Redundant Array of Independent (or Inexpensive) Disks ๏ Combines multiple disk drives into a.
Guide to Linux Installation and Administration, 2e1 Chapter 3 Installing Linux.
Computer Architecture and Operating Systems CS 3230: Operating System Section Lecture OS-7 Memory Management (1) Department of Computer Science and Software.
Module 9: Configuring Storage
Chapter 2 – Software Part A. Definition Computer is made up of two components Hardware Physical components Software Instructions for the computer Two.
Segmentation & O/S Input/Output Chapter 4 & 5 Tuesday, April 3, 2007.
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 3: Operating Systems Computer Science: An Overview Tenth Edition.
Multiple Device Driver and Flash FTL Sarah Diesburg COP 5641.
MCTS Guide to Microsoft Windows Vista Chapter 4 Managing Disks.
© Janice Regan, CMPT 300, May CMPT 300 Introduction to Operating Systems Operating Systems Overview Part 2: History (continued)
Sys Admin Course Physical Storage and File Systems Fourie Joubert.
Chapter 4 Memory Management Virtual Memory.
© 2006 EMC Corporation. All rights reserved. The Host Environment Module 2.1.
Copyright © Genetic Computer School 2008 Computer Systems Architecture SA 8- 0 Lesson 8 Secondary Management.
Adding a Hard Drive. BIOS / UEFI The Unified Extensible Firmware Interface (UEFI) defines a software interface between an operating system and platform.
Department of Computer Sciences, University of Wisconsin Madison DADA – Dynamic Allocation of Disk Area Jayaram Bobba Vivek Shrivastava.
IBM eServer xSeries Technical Conference © IBM Corporation Session ID: O24 Steve Dobbelstein Lake Buena Vista, FL September 8-12, 2003 Enterprise.
Hands-On Microsoft Windows Server 2008 Chapter 7 Configuring and Managing Data Storage.
Embedded Real-Time Systems Introduction to embedded software development Lecturer Department University.
Building Preservation Environments with Data Grid Technology Reagan W. Moore Presenter: Praveen Namburi.
Visual Programming Borland Delphi. Developing Applications Borland Delphi is an object-oriented, visual programming environment to develop 32-bit applications.
IBM Software Group © 2008 IBM Corporation IBM Tivoli Provisioning Manager 7.1 OS Management with TPM for OS Deployment.
Linux Filesystem Administration
Device-mapper RAID 4/5 target (dm-raid45) Linux-Kongress Nürnberg 2006 Heinz Mauelshagen Consulting Development Engineer Linux-Kongress 2006.
Device-Mapper Remote Replication Target LinuxCon Portland, OR 2009 Heinz Mauelshagen Consulting Development Engineer.
Device-Mapper Remote Replication Target Linux-Kongress Hamburg 2008 Heinz Mauelshagen Consulting Development Engineer.
New Red Hat Use Cases, Get More for your Business Vinny Valdez, RHCA Sr. Enterprise Architect Solutions & Strategy Red Hat Consulting Douglas O'Flaherty.
Systems Administration (Windows) BIT3111 – Lecture 5 (Introduction to Windows OS)
WORKING OF SCHEDULER IN OS
Introduction to Operating Systems Concepts
Day 28 File System.
Introduction to threads
Databases and DBMSs Todd S. Bacastow January 2005.
Android Mobile Application Development
CompTIA Server+ Certification (Exam SK0-004)
Guide to Linux Installation and Administration, 2e
Current Generation Hypervisor Type 1 Type 2.
Goals Give you a feeling of what Eclipse is.
Linux Software RAID & LVM Patrick Ladd 5/2/2007.
Chapter 2: Operating-System Structures
Design Your Own Android App
Structure of Unix OS.
Device-Mapper Remote Replication Target LinuxTag Berlin 2008
DADA – Dynamic Allocation of Disk Area
CMPE419 Mobile Application Development
Introduction to the Kernel and Device Drivers
Operating System Concepts
OS Virtualization.
Operating System Module 1: Linux Installation
Booting Up 15-Nov-18 boot.ppt.
Virtualization Techniques
Selecting a Disk-Scheduling Algorithm
Network Performance Advisor “The Advisor”
Operating System Fundamentals
Chapter 13: I/O Systems I/O Hardware Application I/O Interface
OPERATING SYSTEM B-TECH III YEAR I SEM BRANCH :ECE
CMPE419 Mobile Application Development
Chapter 13: I/O Systems.
Lecture 4: File-System Interface
A very basic introduction
In Today’s Class.. General Kernel Responsibilities Kernel Organization
Presentation transcript:

Device-mapper RAID tool Linux-Kongress Hamburg 2005 (dmraid) Linux-Kongress Hamburg 2005 Heinz Mauelshagen Consulting Development Engineer Linux-Kongress 2005

Top ATARAID requirements device-mapper architecture/features device-mapper Raid Tool Top ATARAID requirements device-mapper architecture/features dmraid architecture/features user Interface usage examples project Status/Summary URLs Linux-Kongress 2005

device-mapper Raid Tool ATARAID ATARAID is a generic term for a variety of cheap vendor software RAID solutions (eg, Highpoint, Silicon Image, ...) typically combines a number of P/SATA adaptors (HBA and/or on MoBo), a BIOS extension, a host OS driver and a management tool BIOS extension supports creation of vendor specific metadata describing RAID devices/sets through a UI and mapping created RAID sets as a single device OS driver contains the actual RAID logic (ie. mirroring); Windows version shipped with the product RAID driver for a subset of solutions were part of Linux 2.4 Device-mapper in Linux 2.6 avoids having seperate RAID drivers for each solution Linux-Kongress 2005

Requirements Device-Mapper runtime Tool to: discover ATARAID devices device-mapper Raid Tool Requirements Device-Mapper runtime Tool to: discover ATARAID devices retrieve RAID properties from vendor metadata group RAID sets create/remove mapped devices (ie. logical devices) display RAID device/set properties handle device events (eg, disk failure) avoid hardware dependencies by ignoring interface types completely Linux-Kongress 2005

Software-Architecture (1) device-mapper Raid Tool Software-Architecture (1) Device-Mapper is the generic mapping runtime platform in the Linux kernel (since 2.5) can be used by multiple applications which need block device mapping (eg, dmraid, LVM2 or EVMS) manages Mapped-Devices (create, remove, …) handles text formatted Mapping-Tables (load, unload, reload) all table loading actions happen online to reflect changed layouts (eg, a MD size change) code to handle mappings factored out into Mapping-Targets, which handle linear, striped, mirrored, snapshot, multipath, zero, error and crypt layouts maps to arbitrary block devices (eg, (i)SCSI) Linux-Kongress 2005

Software-Architecture (2) device-mapper Raid Tool Software-Architecture (2) Device-Mapper (continued...) Mapping-Targets are dynamically loadable and register with the Device-Mapper core Mapped-Devices can be stacked in order to build complex mappings (eg, to create a RAID10 set) more than 2 Terabytes per mapped device in Linux 2.6 (CONFIG_LBD) comes with a user space library to be interfaced by Device/Volume Management applications and a test tool dmsetup lib creates nodes to access Mapped Devices in /dev/mapper/ Linux-Kongress 2005

Software-Architecture (3) device-mapper Raid Tool Software-Architecture (3) Examples of Device-Mapper tables which can be activated using the dmsetup tool 0 1024 linear /dev/hde1 40 1024 2048 striped 2 64 /dev/hde1 1064 /dev/hdf1 0 0 1024 zero 1024 1000 error 0 83886080 mirror core 1 64 2 /dev/sda 0 /dev/sdb 0 Linux-Kongress 2005

Software-Architecture (4) device-mapper Raid Tool Software-Architecture (4) dmraid application falls appart into tool and library dmraid library functional areas: discovery of block devices retrieval of device properties (ie. path, size, serial#) multi RAID metadata format registry (format handlers) discovery of RAID devices (ie. metadata) translation of particular metadata format into internal generic RAID device representaion grouping of RAID sets (hierarchical with eg. RAID10) represented via internal generic format derivation of mapping tables from internal RAID device/set format Linux-Kongress 2005

Software-Architecture (5) device-mapper Raid Tool Software-Architecture (5) library functional areas (continued...): creation of mapped devices activation of (stacked) mappings logging of block/RAID device and RAID set properties Linux-Kongress 2005

Software-Architecture (6) device-mapper Raid Tool Software-Architecture (6) tool functional areas (continued...): display discovered block devices display discovered RAID devices display grouped RAID sets (de)activate RAID sets dump/erase native ATARAID metadata list supported metadata formats help Linux-Kongress 2005

Architecture Overview device-mapper Raid Tool Architecture Overview tool libdmraid libdm Userspace Kernelpace dm target target target lld dm = device-mapper core lld = low level driver Linux-Kongress 2005

User Interface (1) 'dmraid' tool -b : display discovered block devices device-mapper Raid Tool User Interface (1) 'dmraid' tool -b : display discovered block devices -l : list all supported metadata formats -r : display discovered RAID devices -s : display grouped RAID sets -n : display native metadata -ay : activate all grouped RAID sets -an : deactivate all grouped RAID sets -tay : display mapping tables Linux-Kongress 2005

User Interface (2) 'dmraid' tool -rD : dump vendor metadata into files device-mapper Raid Tool User Interface (2) 'dmraid' tool -rD : dump vendor metadata into files -rE : erase vendor metadata on devices -h : help -r, -s and -a optionally take -f to select formats (identifiers as listed with -l; eg, '-fhpt,sil') -r and -n take an optional list of device paths -ay, -an and -s take an optional list of RAID set names Linux-Kongress 2005

Examples (1) device-mapper Raid Tool # dmraid -l hpt37x : Highpoint HPT37X (S,0,1,10,01) hpt45x : Highpoint HPT45X (S,0,1) isw : Intel Software RAID (0,1) lsi : LSI Logic MegaRAID (0,1,10) nvidia : NVidia RAID (S,0,1,10) pdc : Promise FastTrack (S,0,1) sil : Silicon Image(tm) Medley(tm) (0,1,10) via : VIA Software RAID (S,0,1,10) dos : DOS partitions on SW RAIDs Linux-Kongress 2005

Examples (2) device-mapper Raid Tool # dmraid -b /dev/sda: 72170879 total, "680631431K" /dev/sdb: 8887200 total, "LG142316" /dev/sdc: 72170879 total, "680620811K" /dev/dm-14: 312581808 total, "N/A" /dev/dm-18: 312581808 total, "N/A" /dev/dm-22: 234441648 total, "N/A" /dev/dm-26: 234441648 total, "N/A" /dev/dm-30: 312581808 total, "N/A" /dev/dm-34: 312581808 total, "N/A" Linux-Kongress 2005

Examples (3) device-mapper Raid Tool # dmraid -r /dev/dm-30: sil, "sil_afadbgdebbde", stripe, ok, 312578720 sectors, data@ 0 /dev/dm-34: sil, "sil_afadbgdebbde", stripe, ok, 312578720 sectors, data@ 0 /dev/dm-14: hpt37x, "hpt37x_badgbjbbhb-3", stripe, ok, 78165248 sectors, data@ 0 /dev/dm-18: hpt37x, "hpt37x_badgbjbbhb-3", stripe, ok, 78165238 sectors, data@ 10 /dev/dm-22: hpt37x, "hpt37x_badgbjbbhb-2", stripe, ok, 78165248 sectors, data@ 0 /dev/dm-26: hpt37x, "hpt37x_badgbjbbhb-2", stripe, ok, 78165238 sectors, data@ 10 # dmraid -r /dev/dm-34 Linux-Kongress 2005

Examples (4) device-mapper Raid Tool # dmraid -s hpt37x_badgbjbbhb *** Superset name : hpt37x_badgbjbbhb size : 156330476 stride : 128 type : raid10 status : ok subsets: 2 devs : 4 spares : 0 # dmraid -cc -s hpt37x_badgbjbbhb:156330476:128:raid10:ok:2:4:0 sil_afadbgdebbde:625157440:32:stripe:ok:0:2:0 Linux-Kongress 2005

Examples (5) device-mapper Raid Tool # dmraid -tay sil_afadbgdebbde: 0 625157440 striped 2 32 /dev/dm-30 0 /dev/dm-34 0 hpt37x_badgbjbbhb-2: 0 156330476 striped 2 128 /dev/dm-22 0 /dev/dm-26 10 hpt37x_badgbjbbhb-3: 0 156330476 striped 2 128 /dev/dm-14 0 /dev/dm-18 10 hpt37x_badgbjbbhb: 0 156330476 mirror core 2 64 nosync 2 \ /dev/mapper/hpt37x_badgbjbbhb-2 0 /dev/mapper/hpt37x_badgbjbbhb-3 0 Linux-Kongress 2005

Status and Future Directions device-mapper Raid Tool Status and Future Directions Device-Mapper in Linux 2.6 Mainline -> Distributors are shipping it dmraid shipped with Debian, Fedora, RHEL, SuSE, ... anaconda support for dmraid in the works use dmeventd for device monitoring support SNIA DDF support RAID levels > 1 Linux-Kongress 2005

device-mapper Raid Tool Summary dmraid utilizes the generic mapping capabilties of device-mapper in order to make a growing number of ATARAID solutions available on Linux 2.6 Linux-Kongress 2005

URLs http://sources.redhat.com/dm (Device-Mapper tool+library) device-mapper Raid Tool URLs http://sources.redhat.com/dm (Device-Mapper tool+library) http://people.redhat.com/heinzm/sw/dmraid/ http://www.redhat.com/mailman/listinfo/ataraid-list to subscribe to ataraid-list@redhat.com Linux-Kongress 2005

device-mapper Raid Tool Q & A Linux-Kongress 2005