2 Disks and Things.

Slides:



Advertisements
Similar presentations
Building Things :Disks Databases. Introduction This is a mix and match section It contains all the information that does not have a home elsewhere in.
Advertisements

 RAID stands for Redundant Array of Independent Disks  A system of arranging multiple disks for redundancy (or performance)  Term first coined in 1987.
Operating Systems ECE344 Ashvin Goel ECE University of Toronto Disks and RAID.
Enhanced Availability With RAID CC5493/7493. RAID Redundant Array of Independent Disks RAID is implemented to improve: –IO throughput (speed) and –Availability.
RAID- Redundant Array of Inexpensive Drives. Purpose Provide faster data access and larger storage Provide data redundancy.
RAID Redundant Arrays of Inexpensive Disks –Using lots of disk drives improves: Performance Reliability –Alternative: Specialized, high-performance hardware.
The HP AutoRAID Hierarchical Storage System John Wilkes, Richard Golding, Carl Staelin, and Tim Sullivan Hewlett-Packard Laboratories Presented by Sri.
12: IO Systems1 I/O SYSTEMS This Chapter is About Processor I/O Interfaces: Connections exist between processors, memory, and IO devices. The OS must manage.
CPSC 231 Secondary storage (D.H.)1 Learning Objectives Understanding disk organization. Sectors, clusters and extents. Fragmentation. Disk access time.
I/O Systems and Storage Systems May 22, 2000 Instructor: Gary Kimura.
CSE 451: Operating Systems Winter 2010 Module 13 Redundant Arrays of Inexpensive Disks (RAID) and OS structure Mark Zbikowski Gary Kimura.
DAS Last Update Copyright Kenneth M. Chipps Ph.D. 1.
Administration etc.. What is this ? This section is devoted to those bits that I could not find another home for… Again these may be useless, but humour.
Day 10 Hardware Fault Tolerance RAID. High availability All servers should be on UPSs –2 Types Smart UPS –Serial cable connects from UPS to computer.
Database Storage Considerations Adam Backman White Star Software DB-05:
I/O – Chapter 8 Introduction Disk Storage and Dependability – 8.2 Buses and other connectors – 8.4 I/O performance measures – 8.6.
Disk Access. DISK STRUCTURE Sector: Smallest unit of data transfer from/to disk; 512B 2/4/8 adjacent sectors transferred together: Blocks Read/write heads.
RAID COP 5611 Advanced Operating Systems Adapted from Andy Wang’s slides at FSU.
Guide to Linux Installation and Administration, 2e 1 Chapter 9 Preparing for Emergencies.
© Pearson Education Limited, Chapter 16 Physical Database Design – Step 7 (Monitor and Tune the Operational System) Transparencies.
1 Selecting LAN server (Week 3, Monday 9/8/2003) © Abdou Illia, Fall 2003.
RAID SECTION (2.3.5) ASHLEY BAILEY SEYEDFARAZ YASROBI GOKUL SHANKAR.
10/23/2015ISYS366 - Installation1 ISYS366 Installation.
Configuring Disk Devices. Module 4 – Configuring Disk Devices ♦ Overview This module deals with making partitions using fdisk, implementing RAID and Logical.
Adaptive Server IQ Multiplex. AS IQ Multiplex All of the released software for ASIQ is now Multiplex enabled All platforms are now Multiplex enabled You.
CS 153 Design of Operating Systems Spring 2015 Lecture 22: File system optimizations.
RAID Disk Arrays Hank Levy. 212/5/2015 Basic Problems Disks are improving, but much less fast than CPUs We can use multiple disks for improving performance.
Chapter 14: Mass-Storage Systems Disk Structure. Disk Scheduling. RAID.
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.
Lecture Topics: 11/22 HW 7 File systems –block allocation Unix and NT –disk scheduling –file caches –RAID.
CS Introduction to Operating Systems
Computer System Structures Storage
Storage HDD, SSD and RAID.
Integrating Disk into Backup for Faster Restores
Memory Management.
Nature & Types of Software
Data Center Infrastructure
Multiple Platters.
RAID, Programmed I/O, Interrupt Driven I/O, DMA, Operating System
Ramya Kandasamy CS 147 Section 3
I/O System Chapter 5 Designed by .VAS.
Chapter 12: Mass-Storage Structure
CSE451 I/O Systems and the Full I/O Path Autumn 2002
Operating System I/O System Monday, August 11, 2008.
Project 3: An Introduction to File Systems
Introduction To Computers
Operating Systems What are they and why do we need them?
Storage Virtualization
Hands-On Microsoft Windows Server nd Edition
RAID Disk Arrays Hank Levy 1.
RAID RAID Mukesh N Tekwani
Chapter 12: Mass-Storage Systems
RAID Disk Arrays Hank Levy 1.
CSE 451: Operating Systems Spring 2005 Module 17 Redundant Arrays of Inexpensive Disks (RAID) Ed Lazowska Allen Center 570.
CSE 451: Operating Systems Winter 2009 Module 13 Redundant Arrays of Inexpensive Disks (RAID) and OS structure Mark Zbikowski Gary Kimura 1.
TECHNICAL SEMINAR PRESENTATION
UNIT IV RAID.
Mark Zbikowski and Gary Kimura
CSE 451: Operating Systems Autumn 2004 Redundant Arrays of Inexpensive Disks (RAID) Hank Levy 1.
Mass-Storage Systems.
CSE 451: Operating Systems Winter 2012 Redundant Arrays of Inexpensive Disks (RAID) and OS structure Mark Zbikowski Gary Kimura 1.
Chapter 2: Operating-System Structures
RAID Disk Arrays Hank Levy 1.
CSE451 File System Introduction and Disk Drivers Autumn 2002
RAID RAID Mukesh N Tekwani April 23, 2019
CSE 451: Operating Systems Winter 2004 Module 17 Redundant Arrays of Inexpensive Disks (RAID) Ed Lazowska Allen Center 570.
Chapter 2: Operating-System Structures
CSE 451: Operating Systems Winter 2006 Module 18 Redundant Arrays of Inexpensive Disks (RAID) Ed Lazowska Allen Center 570.
Seminar on Enterprise Software
Presentation transcript:

2 Disks and Things

Introduction This is a mix and match section It contains all the information that does not have a home elsewhere in this presentation It covers Disk layouts Disk Farms Striping on Striping April 28, 2019

Disk Layouts In IQ (Simplex or Multiplex) the disk performance is critical to the overall speed of the system In an IQ-M system you can have a number of different disk configurations We consider the following Simple SCSI (or UDMA-[1]66) Disks Basic Disk “Farms” (Collections of raw disks) RAID Systems (NT RAID, Clariion etc.) Disk Subsystems (EMC, HDS[SunStor].) April 28, 2019

Basic Disk Farms Here we are considering a number of “dumb” disks There is no intelligence in the disks – or the controllers Here is where we use IQ-M striping Here we have a number of disk drives (on various controllers) We stripe across a series of disks April 28, 2019

Disk Striping Basic Disks 1-dimensional IQ Striping In the 1-dimensional striping we are spreading the data writes (and reads) across a series of disk drives – limiting the overall disk head movement. April 28, 2019

Problems with Disk Striping IQ-M has to make location decisions as to where to write and read the data It is not as simple as writing to “bit bucket” or a serial list of disk blocks It is faster than simple 1 disk = 1 device The performance hit is measured in extra micro seconds per read/write – but with a 10 TBytes database this could be important April 28, 2019

RAID – 0,1 A D C B A D C B Redundant Array of Inexpensive Disks In RAID 1 – Mirror, we can consider that Disks A and B are mirrored and Disks C and D This improves read and write performance, as the controller will pick which disk heads are closer to the data required. Also there is an improvement in data security – 2 copies Raid 1 - Mirror A D C B In RAID 0 – Stripe, we can spread the reads and writes as per the last slide Raid 0 - Stripe A D C B This dramatically improves the read and write performance, but does nothing for the data security April 28, 2019

RAID – 0/1 and 5 A D C B A D C B Redundant Array of Inexpensive Disks In RAID 0/1 – Stripe and Mirror, we can see that the stripe sets on A and B mirror to C and D This gives security – in the mirroring (copies) of the data, and improved performance due both to the two copies and the stripe sets Raid 0/1 – Stripe and Mirror A D C B In RAID 5 – Csum/MR, The data is in “stripes” across the disks then a checksum is written to the final disk This gives a small performance improvement for reads, no improvement for writes (in fact it will slow writes down!). The only bonus is security. The system will allow a disk failure in the pack without requiring the 2 to 1 overhead of mirroring systems Raid 5 – Checksum Multi-read A D C B April 28, 2019

Other RAID There is RAID 2, 3 and 4 These are variations on the mirroring/striping and checksum theme There are also proprietary RAID schemes RAID S The is EMC’s RAID system RAID M This is the MTI RAID Scheme We will come on to talk about proprietary schemes in a few slides time April 28, 2019

Well is RAID useful ? Yes it is – mainly ! If the RAID system handles the data distribution at the hardware level (with RAID controllers) then RAID is both fast and safe Windows NT (and 2000) can drive RAID through the operating system This can be slower than IQ-M performing the striping Watch out for large numbers of reads – and individual read performance slowing down RAID 5 on Disk Subsystems is a good compromise between speed and reliability April 28, 2019

Disk Subsystems (emc, HDS) These are disk arrays where we have no idea what the internal organization of the disks is (and nor do we care) Generally we can consider that we are writing to memory (and usually we are!) The tuning of the disks is usually best left up to the Hardware Support guys April 28, 2019

Striping on Striping There is one very contentious area in disk organisation This is 2 dimensional disk striping or striping on stripes This is driven by using an operating system or RAID unit to provide 1 dimensional striping on a series of disks Then we apply IQ striping onto the existing striping 2 Dimensional stripes Do it right – it’s very fast, do it wrong and it isn’t! April 28, 2019

A diagram Operating System Striping AS IQ-M Striping The reason this works is now the individual disks only have a very small amount of data to read and write so we rely on very fast disk -> processor communications If this is done properly it is the fastest disk access for ASIQ-M April 28, 2019

Disk Striping By default Disk_Striping is set ON for RAW devices and OFF for file system devices We should be using RAW devices – they are (generally) a lot faster and potentially safer than file system devices You may want to play with this parameter if you are running devices on disk farms or RAID array systems April 28, 2019

Disk Striping Packed This was put in to the 12.4.3 release – but is little used. This option changes the number of Allocation Maps from 1 to 16 - allowing each allocation map to present space in specific unit values, such as 1 Block, 2 blocks etc.. This allows for very slightly slower allocation of pages (minimal incremental cost), but better space utilization within the database – and in some case potentially faster allocation of space if there is a very fragmented store. It is recommended that this is turned on at all times. We will talk more about this during CREATE DATABASE April 28, 2019

IQ Store Dbspace Management New functionality permits removing a dbspace from the IQ Store without interrupting database activity You can add a new dbspace and move data from an 'old' disk to a new device Drop a dbspace after all objects have been relocated New Commands and Functions: Determine database objects on a dbspace Set a dbspace in 'read_only' status to prevent new writes Move objects from one dbspace to another April 28, 2019

IQ Store Dbspace Management Dbspaces may be enlarged For dbspaces created using 12.6, you may be able to enlarge a dbspace In order to enlarge a dbspace you must 'reserve' space for the freelist when you create a new dbspace Explanation follows April 28, 2019

Sybase IQ Dbspace Basics When you create a dbspace some pages are reserved for the 'freelist' The freelist tracks pages that are available to hold data in that particular dbspace The amount of space reserved for the freelist depends on the size of the dbspace Freelist Pages April 28, 2019

Reserving Space for the Freelist New parameter in the Create Database and Create Dbspace commands allow for reserving space in the freelist Command below creates a new dbspace reserving 5 MB for the freelist Create dbspace newdbs as '/data/iqstore2' IQ STORE Size 500 Reserve 5 Freelist Pages Reserved Pages April 28, 2019

Alter Dbspace Command With space for the freelist reserved you could increase the size of the dbspace using the Alter Dbspace command - Alter dbspace newdbs Size 750 MB New Options for dbspace READWRITE READONLY RELOCATE April 28, 2019

Dbspace “Commands” sp_iqdbspaceinfo sp_dbspace sp_iqrelocate What is located within the dbspaces sp_dbspace Usages and properties of the dbspace sp_iqrelocate Moves data between dbspaces April 28, 2019

Disk etc. - End April 28, 2019