Manage your disk space... for free :)

Similar documents
CIS UNIX System Administration

File system manager. Single tool to manage your storage. Red Hat. October 24, 2011

System Administration. Storage Systems

An introduction to Logical Volume Management

BT Cloud Compute. Adding a Volume to an existing VM running Linux. The power to build your own cloud solutions to serve your specific business needs

Advanced Linux System Administra3on

7. Try shrinking / -- what happens? Why? Cannot shrink the volume since we can not umount the / logical volume.

Adding a block devices and extending file systems in Linux environments

As this method focuses on working with LVM, we will first confirm that our partition type is actually Linux LVM by running the below command.

Volume Management in Linux with EVMS

Changing user login password on templates

LPI EXAM LPI Level 2 Exam 201, Advanced Level Linux Certification, Part 1 of 2. Buy Full Product.

Actual4Test. Actual4test - actual test exam dumps-pass for IT exams

MFT / Linux Setup Documentation May 25, 2008

Exam Name: Red Hat Certified Engineer on Redhat

RH202. Redhat Certified Technician on Redhat Enterprise Linux 4 (Labs) Exam.

Actual4Test. Actual4test - actual test exam dumps-pass for IT exams

Arch Linux with an SSD Cache using LVM on BCache. Jeremy Runyan

example.com index.html # vim /etc/httpd/conf/httpd.conf NameVirtualHost :80 <VirtualHost :80> DocumentRoot /var/www/html/

Linux System Administration, level 1. Lecture 4: Partitioning and Filesystems Part II: Tools & Methods

Kernel Korner. What Is AoE? ATA Over Ethernet: Putting Hard Drives on the LAN. Ed L. Cashin. Abstract

Turtles all the Way Down. Image 2013 CC-BY-NC-SA by Tony Gray

EX200 EX200. Red Hat Certified System Administrator RHCSA

Vendor: RedHat. Exam Code: EX200. Exam Name: Red Hat Certified System Administrator - RHCSA. Version: Demo

EX200.redhat

Seltestengine EX200 24q

UUID and R1Soft. What is a UUID and what is it used for?

Linux Files and the File System

mdadm Contents From Wikipedia, the free encyclopedia mdadm is a Linux utility used to manage software RAID devices. mdadm

HP AutoRAID (Lecture 5, cs262a)

The term "physical drive" refers to a single hard disk module. Figure 1. Physical Drive

HP AutoRAID (Lecture 5, cs262a)

EX200.Lead2pass.Exam.24q. Exam Code: EX200. Exam Name: Red Hat Certified System Administrator RHCSA. Version 14.0

EX200.exam.35q. Number: EX200 Passing Score: 800 Time Limit: 120 min. EX200. Red Hat Certified System Administrator RHCSA

Disks & File Systems. Dick Gillman, ITSS. 1/19/06 10:20:11 am docs/disks.sxi

GL-280: Red Hat Linux 7 Update. Course Description. Course Outline

Commands LVM information can be created, displayed, and manipulated with the following commands:

Guide to SATA Hard Disks Installation and RAID Configuration

File System. Computadors Grau en Ciència i Enginyeria de Dades. Xavier Verdú, Xavier Martorell

CSE 451: Operating Systems Winter Redundant Arrays of Inexpensive Disks (RAID) and OS structure. Gary Kimura

Exam Questions RH202

Disks, Filesystems Todd Kelley CST8177 Todd Kelley 1

Red Hat.Actualtests.EX200.v by.Dixon.22q. Exam Code: EX200. Exam Name: Red Hat Certified System Administrator (RHCSA) Exam

Red Hat Enterprise Linux 6 Server Instruction Guide for Creating Volume in Free Disk Space

Installing Linux (Chapter 8) Note packet # 4. CSN 115 Operating Systems Ken Mead Genesee Community College. Objectives

Disk Imaging with Knoppix

Linux+ Guide to Linux Certification, Third Edition. Chapter 2 Linux Installation and Usage

Back Up (And Restore) LVM Partitions With LVM Snapshots

Getting Started with Pentaho and Cloudera QuickStart VM

Longhorn Large Sector Size Support. Anuraag Tiwari Program Manager Core File System

Braindumps EX200 15q

Virtualization Provisioning & Centralized Management with iscsi. RACF Brookhaven National Laboratory James Pryor CHEP 2010

Che-Wei Chang Department of Computer Science and Information Engineering, Chang Gung University

Red Hat Enterprise Linux 5 Logical Volume Manager Administration. LVM Administrator's Guide Edition 1

Manage Directories and Files in Linux. Objectives. Understand the Filesystem Hierarchy Standard (FHS)

How To Resize ext3 Partitions Without Losing Data

How to increase XenServer virtual machine root or swap partition

NVIDIA RAID Installation Guide

ECE590 Enterprise Storage Architecture Homework #2: Drives and RAID

1 LINUX KERNEL & DEVICES

NVIDIA RAID Installation Guide

CompTIA Linux+ Guide to Linux Certification Fourth Edition. Chapter 2 Linux Installation and Usage

Modern RAID Technology. RAID Primer A Configuration Guide

Guide to SATA Hard Disks Installation and RAID Configuration

CSE325 Principles of Operating Systems. Mass-Storage Systems. David P. Duggan. April 19, 2011

Testpassport.

Use the Reiser4 file system under Linux rev.2

Exam : 1Z Title : Enterprise Linux System Administration. Version : DEMO

IST346. Data Storage

Course 55187B Linux System Administration

"Charting the Course... Enterprise Linux System Administration Course Summary

Quota LVM (Logical Volume Manager)

jfield Documentation Release 1 Jason Field

Red Hat Enterprise Linux 7

CS5460: Operating Systems Lecture 20: File System Reliability

Manual File System Check Linux Command Line

Cloning and Repartitioning sessionmgr Disks

Disks, Filesystems, Booting Todd Kelley CST8177 Todd Kelley 1

Ubuntu - How to Create Software RAID 1 in Ubuntu Linux - Tutorial

LVM Administrator's Guide. Configuration and Administration 5.2

Enterprise Volume Management System Project. April 2002

Associate Professor Dr. Raed Ibraheem Hamed

HPC File Systems and Storage. Irena Johnson University of Notre Dame Center for Research Computing

NVIDIA / JMicron RAID Installation Guide

Storage Profiles. Storage Profiles. Storage Profiles, page 12

SYSTEM UPGRADE, INC Making Good Computers Better. System Upgrade Teaches RAID

Linux Manually Mount External Hard Drive Ntfs-3g Could Not

Outline. Computer Center, CS, NCTU. Interfaces Geometry Add new disks RAID. Appendix SCSI & SAS

Choosing Hardware and Operating Systems for MySQL. Apr 15, 2009 O'Reilly MySQL Conference and Expo Santa Clara,CA by Peter Zaitsev, Percona Inc

The NetBSD Logical Volume Manager

Storage Area Networks: Performance and Security

Configuring Storage Profiles

RAID. Redundant Array of Inexpensive Disks. Industry tends to use Independent Disks

Manually Mount Usb Flash Drive Linux Command Line Redhat

Drive Backup. 10 Professional PARAGON. Data Sheet. Automatization Features

SAP HANA Restore Guide (for A2040d SLES) 23 rd of January 2017 NEC SAP Global Competence Center

Univention Corporate Server. Extended installation documentation

Adding a disk. SA s important tasks

I/O, Disks, and RAID Yi Shi Fall Xi an Jiaotong University

Linux Manually Mount External Hard Drive Ntfs 3g Could Not

Transcription:

Manage your disk space... for free :) Julien Wallior Plug Central

Agenda Background RAID LVM Some basics Practice Booting on a raid device What is that? How it works Hardware raid... if you really want it

Background Just got out of college I don't want a pay for anything I don't need that much performance If it breaks... it's my problem Does it mean this presentation is useless? Of course not... I've been using these technologies for two years without issue

RAID: The Basics Redundant Array of Inexpensive Disks Two usage: Performance Redundancy Different RAID level depending on your needs Tradeoffs

Basic Levels RAID 0 (stripping) RAID 1 (mirroring) Performance ++ Redundancy Performance Read ++ Write Redundancy ++

Fancier (or Funkier) RAID 5 Distributed Parity Performance Read ++ Write Redundancy + Less popular Dedicated parity disk RAID 3 Byte level stripping RAID 4 Block level stripping Two parity disks RAID 6 Like RAID 5

The Combos RAID 0+1 RAID 1+0 What's the difference???

mdadm... Some nice features: integrated in the OS spare drives email when a disk fails periodic rebuild Enough theory for now...

Let's play a little bit Create a raid 5 array with one hot spare mdadm create /dev/md0 raid devices=3 sparedevice=1 level=5 /dev/ram0 /dev/ram1 /dev/ram2 /dev/ram3 Check the state of the array mdadm detail /dev/md0 cat /proc/mdstat Simulate a drive failure mdadm manage /dev/md0 set faulty /dev/ram0

Let's play a little bit Hot remove a drive mdadm manage /dev/md0 remove /dev/ram0 Hot add a drive mdadm manage /dev/md0 add /dev/ram4 Some performance measurements Raid 5 vs Raid 1 write: 7 times slower!

Booting on it? It works... Little tricky grub setup (mbr not mirrored) grub> device (hd0) /dev/hda grub> root (hd0,0) grub> setup (hd0) grub> device (hd0) /dev/hdb grub> root (hd0,0) grub> setup (hd0) grub> exit

LVM: what is that? Logical Volume Manager LVM2 is standard in kernel 2.6 Physical volume (pv...) Volume group (vg...) Logical volume (lv...)

Why would I use it? Partition spread across multiple disks different than RAID0 (no stripping) Resize partition of the fly you just need to unmount it don't forget to resize the filesystem (resize2fs) Snapshots very useful for backups requires free space in the volume group

Let's see something Enough talking... Our goal: Demo... RAID for redundancy LVM for flexibility

Physical Volume Creation pvcreate /dev/md0 Get config pvs

Volume group Creation vgcreate vg1 /dev/md0 Get config vgs Add a new physical volume vgextend vg1 /dev/ram5

Logical volume Creation lvcreate name lv1 size 80M vg1 mkfs.ext3 /dev/mapper/vg1 lv1 mount /dev/mapper/vg1 lv1 /mnt Get state lvs Resize resize2fs /dev/mapper/vg1 lv1 80M (don't forget it) lvresize L 20M /dev/vg1/lv1

Snapshot Takes a snapshot of a logical volume Creation Deletion modprobe dm snapshot lvcreate snapshot name lv1 snapshot1 size 80M /dev/vg1/lv1 lvremove /dev/vg1/lv1 snapshot1

Hardware Better performances... more expensive On HP Proliant servers Utility hpacucli for linux ctrl slot=0 pd all show ctrl slot=0 ld all show ctrl slot=0 create type=ld drives=2:0,2:1 raid=1 Hot plug and hot swap the disks... Basically it works and it's no fun at all :)

Conclusion Personal experience: You can really do a lot Excellent mean to learn how it works It's amazing how well it works Sorry for the french accent :) One last thing: make a backup before messing around with these things.

Thank you Questions?