Unix System Administration

Similar documents
LVM and Raid. Scott Gilliland

ENTERPRISE LINUX SYSTEM ADMINISTRATION

Linux Software Raid. Aug Mark A. Davis

GL-250: Red Hat Linux Systems Administration. Course Outline. Course Length: 5 days

Typing some stupidities in text files, databases or whatever, where does it fit? why does it fit there, and how do you access there?

Redundant Array of Inexpensive/Independent Disks. RAID 0 Disk striping (best I/O performance, no redundancy!)

Red Hat Linux Administration II Installation, Configuration, Software and Troubleshooting

RH033 Red Hat Linux Essentials or equivalent experience with Red Hat Linux..

Data storage, backup and restore

technology brief RAID Levels March 1997 Introduction Characteristics of RAID Levels

Table of Contents. Introduction. Audience. At Course Completion. Prerequisites

How To Create A Multi Disk Raid

Advanced Linux System Administration on Red Hat

Lecture 36: Chapter 6

GLS250 "Enterprise Linux Systems Administration"

System Administration. Backups

Shared Storage Setup with System Automation

How to choose the right RAID for your Dedicated Server

CS 6290 I/O and Storage. Milos Prvulovic

Filesystems Performance in GNU/Linux Multi-Disk Data Storage

Operating Systems. RAID Redundant Array of Independent Disks. Submitted by Ankur Niyogi 2003EE20367

This is when a server versus a workstation is desirable because it has the capability to have:

Summer Student Project Report

What is RAID and how does it work?

IncidentMonitor Server Specification Datasheet

Input / Ouput devices. I/O Chapter 8. Goals & Constraints. Measures of Performance. Anatomy of a Disk Drive. Introduction - 8.1

Linux Filesystem Comparisons

760 Veterans Circle, Warminster, PA Technical Proposal. Submitted by: ACT/Technico 760 Veterans Circle Warminster, PA

PIONEER RESEARCH & DEVELOPMENT GROUP

HARFORD COMMUNITY COLLEGE 401 Thomas Run Road Bel Air, MD Course Outline CIS INTRODUCTION TO UNIX

RedHat (RHEL) System Administration Course Summary

Advanced SUSE Linux Enterprise Server Administration (Course 3038) Chapter 5 Manage Backup and Recovery

How To Manage Your Volume On Linux (Evms) On A Windows Box (Amd64) On A Raspberry Powerbook (Amd32) On An Ubuntu Box (Aes) On Linux

short introduction to linux high availability description of problem and solution possibilities linux tools

Rsync: The Best Backup System Ever

File System & Device Drive. Overview of Mass Storage Structure. Moving head Disk Mechanism. HDD Pictures 11/13/2014. CS341: Operating System

1 Storage Devices Summary

Definition of RAID Levels

Oracle Linux 7: System Administration Ed 1 NEW

ZFS Administration 1

Linux Troubleshooting. 5 Days

ICANWK401A Install and manage a server

Installing Debian with SATA based RAID

Oracle Database 10g: Performance Tuning 12-1

Overview of I/O Performance and RAID in an RDBMS Environment. By: Edward Whalen Performance Tuning Corporation

Veritas Volume Manager Administration on HP-UX Course Summary

LBNC and IBM Corporation Document: LBNC-Install.doc Date: Path: D:\Doc\EPFL\LNBC\LBNC-Install.doc Version: V1.0

Introduction to Gluster. Versions 3.0.x

Storage node capacity in RAID0 is equal to the sum total capacity of all disks in the storage node.

Linux System Administration on Red Hat

ZFS Backup Platform. ZFS Backup Platform. Senior Systems Analyst TalkTalk Group. Robert Milkowski.

RAID. Contents. Definition and Use of the Different RAID Levels. The different RAID levels: Definition Cost / Efficiency Reliability Performance

How To Set Up Software Raid In Linux (Amd64)

Dependable Systems. 9. Redundant arrays of. Prof. Dr. Miroslaw Malek. Wintersemester 2004/05

An Introduction to RAID. Giovanni Stracquadanio

Introduction Disks RAID Tertiary storage. Mass Storage. CMSC 412, University of Maryland. Guest lecturer: David Hovemeyer.

RAID Level Descriptions. RAID 0 (Striping)

Performance Analysis of RAIDs in Storage Area Network

Agenda. Enterprise Application Performance Factors. Current form of Enterprise Applications. Factors to Application Performance.

Amanda The Open Source Backup & Archiving Software. Ian Turner ian@zmanda.com 11 April Copyright 2006 Zmanda, Inc. All rights reserved.

RAID HARDWARE. On board SATA RAID controller. RAID drive caddy (hot swappable) SATA RAID controller card. Anne Watson 1

How To Write A Disk Array

Scalable Internet Services and Load Balancing

Supported File Systems

Chapter 12: Mass-Storage Systems

Ubuntu bit + 64 bit Server Software RAID Recovery and Troubleshooting.

INCREASING EFFICIENCY WITH EASY AND COMPREHENSIVE STORAGE MANAGEMENT

CS 153 Design of Operating Systems Spring 2015

PARALLELS SERVER BARE METAL 5.0 README

Ultimate Guide to Oracle Storage

Virtualization and Performance NSRC

Introduction. What is RAID? The Array and RAID Controller Concept. Click here to print this article. Re-Printed From SLCentral

LVM2 data recovery. Milan Brož LinuxAlt 2009, Brno

RAID: Redundant Arrays of Independent Disks

Linux Disaster Recovery best practices with rear

Guide to SATA Hard Disks Installation and RAID Configuration

VERY IMPORTANT NOTE! - RAID

Price/performance Modern Memory Hierarchy

Implementing SAN & NAS with Linux by Mark Manoukian & Roy Koh

RAID technology and IBM TotalStorage NAS products

Striped Set, Advantages and Disadvantages of Using RAID

Storage Architectures for Big Data in the Cloud

These application notes are intended to be a guide to implement features or extend the features of the Elastix IP PBX system.

Storing Data: Disks and Files

TELE 301 Lecture 7: Linux/Unix file

RAID Basics Training Guide

Linux Backups. Russell Adams Linux Backups p. 1

Distributed RAID Architectures for Cluster I/O Computing. Kai Hwang

Filing Systems. Filing Systems

Transcription:

Unix System Administration Caleb Phillips Data Redundancy CSCI 4113, Spring 2010

Where are We? Advanced Topics NTP and Cron Data Redundancy (RAID, rsync, backups...) Division of Labor (NFS, NIS, PAM, LDAP,...)... Guest Lectures

Overview Losing Data is Bad Want to Protect from: Hardware failures (predominantly disk failures) User Mistakes (oh noes! I be-leted it!?) Solutions: Real-time Data Redudancy ala RAID Many types/approaches Delayed Data Redundancy ala Backups Many types/approaches

RAID Tape-backup is sloooow and (can be) costly Redundant Array of Inexpensive Disks to the rescue! General idea is to spread/mirror data across multiple disks to be robust to hardware failures (and maybe get a performance boost too) Different schemes are called levels 0-5 in practice :-( :-)

RAID 0 Simple Striping Data is striped across multiple devices Not Redundant! No storage overhead Higher bandwidth

RAID 1 Simple Mirroring Two or more disks contain identical data 200% minimum storage overhead No slower than a single disk Good enough for many situations

RAID 2-5 Striping with Parity no one uses RAID 2 RAID 3 is byte-level striping with a single parity disk RAID 4 is block-level striping with a single parity disk RAID 5 is block-level striping with distributed parity information RAID 5 is the most popular Require at least 3 disks and can handle 1 disk failure Parity calculation may hurt performance slightly Less overhead than RAID-0 (1/3 instead of 1/2)

RAID 6 Striping with Dual Parity Like RAID 5 but keep two parity blocks distributed Can handle 2 simultaneous disk failures

Hardware versus Software RAID Used to be that if you wanted RAID, you bought an expensive RAID controller card Now days, these cards just offload processing onto the CPU Software RAID, vis-a-vis the Linux Kernel is just as fast and is cheaper and (often) more flexible mdadm tool controls/creates/monitors arrays /dev/md0, /dev/md1, /dev/md2,...

Linux Software RAID Example on dante... $ df -h $ less /etc/fstab $ less /etc/mdadm/mdadm.conf $ cat /proc/mdstat $ sudo mdadm query detail /dev/md0

Logical Volume Management (LVM) More flexible partitioning scheme than standard schemes: LVM partitions can span multiple physical disks partitions can be resized and moved easily Physical Volume Physical Partitions Physical Extents (PEs) Logical Extents (LEs) Volume Group (VG) Logical Volumes (LVs) Filesystems

Backups In the beginning there was tar... Today: All hail rsync! rsync does backups over the network and only transfers the parts that have changed very efficient Still can take a while on big disks You can do tape/cd/dvd backups too if you want but harddisks are cheap and fast and ubiquitious... Schedule periodic backups with cron Can keep several rolling backups too...

rsync examples rsync /etc/ /backup/etc/ rsync -avc /etc/ /backup/etc/ checksum files to make sure they transferred w/o errors archival mode (preserve perms and owner) be verbose rsync -e ssh -avc /etc me@elsewhere:/backup/ encapsulation mode (rsync has it's own remote transfer protocol too)

Let's build a server... Web server Backup server Database server Email server DNS server Firewall

Let's build a server... Web server Big/Fast RAIDed /var/ RAID-5? RAID-1? reiserfs? Slow/static RAIDed? / ext3? Swap space Backup server Database server Email server DNS server Firewall

Let's build a server... Web server Backup server Big/Slow RAIDed /storage/ Raid-1? Raid-5? xfs? jfs? ext4? Slow/static / Swap space Database server Email server DNS server Firewall

Let's build a server... Web server Backup server Database server Big/fast RAIDed /var/ Slow/static / swap space regular/rolled backups Email server DNS server Firewall

Let's build a server... Web server Backup server Database server Email server Big/fast RAIDed /home/ Big/fast RAIDed /var/ Small/Slow / swap space DNS server Firewall

Let's build a server... Web server Backup server Database server Email server DNS server Slow/static / Fast memory, good connection swap space Periodic backups Firewall

Let's build a server... Web server Backup server Database server Email server DNS server Firewall Slow/static everything Small solid-state (i.e. compact flash) media Periodic backups Tripwire?