Grant Cohoe IMPACT OF DISK ALIGNMENT IN VIRTUALIZED ENVIRONMENTS.

Slides:



Advertisements
Similar presentations
Storage Management Lecture 7.
Advertisements

CS 346 – April 4 Mass storage –Disk formatting –Managing swap space –RAID Commitment –Please finish chapter 12.
CN2140 Server II (V2) Kemtis Kunanuraksapong MSIS with Distinction MCT, MCITP, MCTS, MCDST, MCP, A+
File Systems and Disk Management
Disk Fundamentals. More than one platter (round cylinders)
Computer System Basics 2 Hard Drive Storage & File Partitions Computer Forensics BACS 371.
Linux Installation LINUX INSTALLATION. Download LINUX Linux Installation To install Red Hat, you will need to download the ISO images (CD Images) of the.
File Systems.
File Systems Examples.
FILE SYSTEMS. File Names 1 to 255 characters in length  This includes the path You can use uppercase and lowercase (case-aware, but not case-sensitive)
Managing Your Hard Disk and Operating System 23,26 March :30pm - 4:00pm.
CPSC 231 Secondary storage (D.H.)1 Learning Objectives Understanding disk organization. Sectors, clusters and extents. Fragmentation. Disk access time.
70-270, MCSE/MCSA Guide to Installing and Managing Microsoft Windows XP Professional and Windows Server 2003 Chapter Five Managing Disks and Data.
Operating Systems COMP 4850/CISG 5550 Disks, Part II Dr. James Money.
Disk Volume Management CSS-1. Terms  Extent – any contiguous set of clusters  Partition – extent treated as a disk  Volume - partition formatted with.
Session 3 Windows Platform Dina Alkhoudari. Learning Objectives Understanding Server Storage Technologies Direct Attached Storage DAS Network-Attached.
FDISK Partitioning Hard Disks. History We bought our new hard disk drive –Right size for BIOS and OS –Right connections (PATA/SATA) We installed our new.
Storage System: RAID Questions answered in this lecture: What is RAID? How does one trade-off between: performance, capacity, and reliability? What is.
Computer Forensics DOS Partitioning. Partitioning Practices  We separate partition practices into those used by Personal Computers:  DOS  Apple Servers.
1 Partitioning a Hard Drive ©Richard Goldman Revised January 8, 2001 Revised December 9, 2002.
Linux+ Guide to Linux Certification, Third Edition
Tel : 同济大学软件学院 UEFI 与固件程序设计.
CompTIA Linux+ Certification
CS 346 – Chapter 10 Mass storage –Advantages? –Disk features –Disk scheduling –Disk formatting –Managing swap space –RAID.
Using Large Hard Drives in Linux Presented by Kevin McGregor Manitoba UNIX User Group March 12, 2013.
Chapter Sixteen Data Recovery and Fault Tolerance.
Disk Structures. CTEC 1102 Formatting a Disk Two parts to formatting a disk:  Low-level (physical) formatting  High level (logical) formatting Low-level.
Understand Disk Types LESSON Windows Server Administration Fundamentals.
Lecture 9: The FAT and VFAT Filesystems 6/16/2003 CSCE 590 Summer 2003.
Disk Structure Disk drives are addressed as large one- dimensional arrays of logical blocks, where the logical block is the smallest unit of transfer.
Guide to Linux Installation and Administration, 2e1 Chapter 2 Planning Your System.
Chapter 3 Managing Disk and File Systems. File Storage Basics Windows XP supports two types of storage Basic Dynamic Basic storage system Centers on partitioning.
Bits, Bytes, Files, Hard Drives. Bits, Bytes, Letters and Words ● Bit – single piece of information ● Either a 0 or a 1 ● Byte – 8 bits of information.
PC Maintenance: Preparing for A+ Certification Chapter 10: Introduction to Disk Storage.
4.1 © 2004 Pearson Education, Inc. Exam Managing and Maintaining a Microsoft® Windows® Server 2003 Environment Lesson 4: Organizing a Disk for Data.
MCTS Guide to Microsoft Windows Vista Chapter 4 Managing Disks.
File System Management File system management encompasses the provision of a way to store your data in a computer, as well as a way for you to find and.
1 Interface Two most common types of interfaces –SCSI: Small Computer Systems Interface (servers and high-performance desktops) –IDE/ATA: Integrated Drive.
1 EN0129 PC and Network Technology - 1 Sajjad Shami Adrian Robson Gerhard Fehringer School of Computing, Engineering & Information Sciences Northumbria.
The disk surface is divided into tracks. into tracks. 1.
CE Operating Systems Lecture 20 Disk I/O. Overview of lecture In this lecture we will look at: Disk Structure Disk Scheduling Disk Management Swap-Space.
Silberschatz, Galvin and Gagne  Operating System Concepts Chapter 14: Mass-Storage Systems Disk Structure Disk Scheduling Disk Management Swap-Space.
Chapter 3 Partitioning Drives using NTFS and FAT32 Prepared by: Khurram N. Shamsi.
Multi-level Raid Multi-level Raid 2 Agenda Background -Definitions -What is it? -Why would anyone want it? Design Issues -Configuration and.
Week #3 Objectives Partition Disks in Windows® 7 Manage Disk Volumes Maintain Disks in Windows 7 Install and Configure Device Drivers.
File Systems in Real-Time Embedded Applications March 5th Eric Julien Understanding How the File Allocation Table (FAT) Operates 1.
GUID Partition Table Unified Extensible Firmware Interface (UEFI)
Alignment Overview 1 NetApp Public. What is Misalignment?  Misalignment is a condition where a single client IO operation results in multiple shared.
Chapter 8: Installing Linux The Complete Guide To Linux System Administration.
Chapter 6 File Systems. Essential requirements 1. Store very large amount of information 2. Must survive the termination of processes persistent 3. Concurrent.
Chapter 7 Volume versus Partition. Cylinder, Head, and Sector (CHS) Hard or fixed disks store information on a revolving platter of metal or glass coated.
Adding a Hard Drive. BIOS / UEFI The Unified Extensible Firmware Interface (UEFI) defines a software interface between an operating system and platform.
Disk storage systems Question#1 (True/False) A track is divided into multiple units called sectors.
CPSC 231 Secondary storage (D.H.)1 Learning Objectives Understanding disk organization. Sectors, clusters and extents. Fragmentation. Disk access time.
Hands-On Microsoft Windows Server 2008 Chapter 7 Configuring and Managing Data Storage.
Windows 10 vs. 7 – Disk Drives NORTH TEXAS PC USER GROUP WINDOWS INSIDE-OUT SIG GLYNN BROOKS FEBRUARY 20, 2016.
DIT314 ~ Client Operating System & Administration CHAPTER 7 MANAGING DISKS AND FILE SYSTEM Prepared By : Suraya Alias.
Working with Disks Lesson 4.
GUID Partition Table Unified Extensible Firmware Interface (UEFI)
Visit for more Learning Resources
I/O Resource Management: Software
GUID Partition Table Unified Extensible Firmware Interface (UEFI)
Windows XP File Systems
Introduction to Computers
Operating System Module 1: Linux Installation
File Systems Implementation
GUID Partition Table Unified Extensible Firmware Interface (UEFI)
GUID Partition Table Unified Extensible Firmware Interface (UEFI)
Partitioning & Formatting
Storage Management Lecture 7.
Presentation transcript:

Grant Cohoe IMPACT OF DISK ALIGNMENT IN VIRTUALIZED ENVIRONMENTS

WHY SHOULD YOU CARE? Performance Misalignment causes more IO’s than you need Shared Storage issues

UNDERSTAND YOUR STUFF Hard Disk Geometry Sector Size (Logical & Physical) Operating System What does it want? What does it do by default? Sometimes silly things…

LAYERS Disk Geometry/Partitions LVM Host File System VMDK Geometry/Partitions VMFS

DISK GEOMETRY/PARTITIONS Disk Geometry/Partitions LVM Host File System VMDK Geometry/Partitions VMFS

TERMINOLOGY Sectors Units of disk storage Partition Logical group of sectors Track Ring of sectors on a single side of a platter Cylinder 3D track (all platters at one track location) Disk Geometry/Partitions LVM Host File System VMDK Geometry/Partitions VMFS

MASTER BOOT RECORD (MBR) That thing that boots your OS First 512 bytes of the disk 440 bytes of bootloader 32 bytes of partition information 4 primary partitions - max size 2TB 512 START 440 (Boot loader) 32 Disk Geometry/Partitions LVM Host File System VMDK Geometry/Partitions VMFS

MASTER BOOT RECORD (MBR) DOS Compatibility Cannot span cylinders (because DOS was silly) Number of sectors per cylinder = – 1 (MBR) = 62 sectors before first usable This is deprecated MBR LBA-1 LBA-6263 Disk Geometry/Partitions LVM Host File System VMDK Geometry/Partitions VMFS

MASTER BOOT RECORD (MBR) 1MB Alignment Align all partitions to 1MB 1MB = B / 512B sectors = 2048 (1 st Sector) Improves performance Ensures compatibility for 4K “Advanced Format” This is new standard (Windows Vista) MBR LBA-1 LBA Disk Geometry/Partitions LVM Host File System VMDK Geometry/Partitions VMFS

RESULTING DISK 512B MBR – Alignment Space – 1 st Partition Starting Sector – This is good! MBR … MBR 2048 Disk Geometry/Partitions LVM Host File System VMDK Geometry/Partitions VMFS

LOGICAL VOLUME MANAGEMENT (LVM) Disk Geometry/Partitions LVM Host File System VMDK Geometry/Partitions VMFS

TERMINOLOGY Physical Volume Container of data stored as a partition on disk Logical Volume Virtualized storage structure stored as data in a PV pe_start LV offset within a PV Disk Geometry/Partitions LVM Host File System VMDK Geometry/Partitions VMFS

LVM PHYSICAL VOLUMES (LVM PV) pe_start specifies the start of LV data Very intelligent. Usually not a problem Needs to be aligned to your sectors! Disk Geometry/Partitions LVM Host File System VMDK Geometry/Partitions VMFS

LVM PHYSICAL VOLUMES (LVM PV) Bad pe_start does not line up with a sector Going to hurt performance later Disk Geometry/Partitions LVM Host File System VMDK Geometry/Partitions VMFS MBR Physical Volume pe_start PV Data Region

LVM PHYSICAL VOLUMES (LVM PV) Good As long as pe_start is a multiple of your sector size (usually 512B) you’re good! Disk Geometry/Partitions LVM Host File System VMDK Geometry/Partitions VMFS MBR Physical Volume pe_start PV Data Region

LVM PHYSICAL VOLUMES (LVM PV) PE Size Physical Extent – LVM “block” size Usually default is fine Multiple of sector size (512) Disk Geometry/Partitions LVM Host File System VMDK Geometry/Partitions VMFS

RESULTING VOLUME LV starting point aligned (pe_start) PV aligned to sectors on disk Disk Geometry/Partitions LVM Host File System VMDK Geometry/Partitions VMFS MBR Physical Volume pe_start PV Data Region Logical Volume

HOST FILE SYSTEM Disk Geometry/Partitions LVM Host File System VMDK Geometry/Partitions VMFS

HOST FILE SYSTEM Not much to do here RAID would be a different story… Ext is good at picking sane defaults Block size Smallest unit of data for the filesystem Disk Geometry/Partitions LVM Host File System VMDK Geometry/Partitions VMFS

RESULTING FILESYSTEM MBR Physical Volume pe_start PV Data Region Logical Volume Filesystem

VMDK GEOMETRY & PARTITIONS Disk Geometry/Partitions LVM Host File System VMDK Geometry/Partitions VMFS

VMDK GEOMETRY/PARTITIONS Same principles as host disks DOS compatibility sucks 1MB alignment is good Performance impact is bigger Disk Geometry/Partitions LVM Host File System VMDK Geometry/Partitions VMFS MBR

VM FILE SYSTEM Disk Geometry/Partitions LVM Host File System VMDK Geometry/Partitions VMFS

VM FILE SYSTEM Don’t use RAID/LVM in VMs Unless you really need it for some reason Or if you did a P2V Disk Geometry/Partitions LVM Host File System VMDK Geometry/Partitions VMFS MBR VM File System

VM ALIGNMENT Disk Geometry/Partitions LVM Host File System VMDK Geometry/Partitions VMFS

PERFECTLY ALIGNED VM Disk Geometry/Partitions LVM Host File System VMDK Geometry/Partitions VMFS MBR VM File System MBR Physical Volume pe_start PV Data Region Logical Volume Filesystem 2054

PERFECTLY ALIGNED VM Disk Geometry/Partitions LVM Host File System VMDK Geometry/Partitions VMFS VM FS Block VMDK Sectors Host FS Block LVM PE* Host Disk Blocks * PE shown as 1K for example 1024

MISALIGNED VM Disk Geometry/Partitions LVM Host File System VMDK Geometry/Partitions VMFS VM disk image sits across two Host FS blocks, thus requiring more reads of the host disks to get all data 4096B of VM data requires 8192B of host disk data to read 1024

END GOAL Disk Geometry/Partitions LVM Host File System VMDK Geometry/Partitions VMFS MBR VM File System MBR Physical Volume pe_start PV Data Region Logical Volume Filesystem

Grant Cohoe QUESTIONS?

MODERN STUFF BONUS MATERIAL

ADVANCED FORMAT DISKS 4K Sectors Old: New: Much more efficient with todays data usage 512e Emulation Mode Lets old stuff still work with new disks Logical (OS): Physical (Disk):

ADVANCED FORMAT DISKS & MBR Regular disks (512 byte sectors) LBA-63 Advanced Format (4K sectors) w/ e512 LBA-63 PROBLEM LATER ON MBR MBR K sectors 789

GUID PARTITION TABLE (GPT) That new thing that boots your OS First 17K of the disk Lots of stuff > On Disk GPT Alignment Space2048

RAID IMPLICATIONS If RAID volume misaligned, entire array is affected RAID in VMs is BAD!

RAID TERMINOLOGY Data Disk A disk that has real data (not parity) Stripe RAID unit of IO (“block”) Also called “Chunk” Stride Amount of data from a stripe before moving to next disk Stripe Width Length of a stripe

RAID MATH Constants DATA_DISKS = 3 (lets say this is RAID5 with 4 disks) BLOCK_SIZE = 4K (from the filesystem) CHUNK_SIZE = 512K Calculate Stride STRIDE = CHUNK_SIZE / BLOCK_SIZE = 128K Calculate Stripe Width STRIPE_WIDTH = STRIDE * DATA_DISKS = 384K What this means: One unit of RAID IO will write 128K to the first disk then move on to the next one

REFERENCES drives-e512/ drives-e512/