System Administration Storage Systems. Agenda Storage Devices Partitioning LVM File Systems.

Slides:



Advertisements
Similar presentations
CST8177 File Systems.
Advertisements

File System Topics Lei Xu.
Linux+ Guide to Linux Certification, Third Edition
ITI-481: Unix Administration Rutgers University Center for Applied Computer Technologies Christopher Uriarte, Instructor Meeting 4.
Linux+ Guide to Linux Certification, Second Edition
Chapter 9 Part III Linux File System Administration
Implementing Local Storage
Working with Disks and Devices
Hands-on RAID on Moxa Computer Prepared by: (40min) Date: mm-dd-yyyy.
The Linux Storage People Simple Fast Massively Scalable Network Storage Coraid EtherDrive ® Storage.
Linux Installation LINUX INSTALLATION. Download LINUX Linux Installation To install Red Hat, you will need to download the ISO images (CD Images) of the.
Storage Systems: Advanced Topics Learning Objectives: To understand limitations of “one file system per partition” model To understand Logical Volume Management.
Solaris Volume Manager M. Desouky. RAID Overview SDS Software SDS Installation SDS User Interfaces MD State Database Concats & Stripes Mirrors Hot Spares.
Grant Cohoe IMPACT OF DISK ALIGNMENT IN VIRTUALIZED ENVIRONMENTS.
Allocation Methods - Contiguous
Chapter 10: File-System Interface
Open-File Backup & App. Consistent Snapshots Microsoft Volume Shadow Copy Service Introduced 2002 –VSS Broadly Adopted by 3 rd Party Backup Vendors –Enables.
L V M A Logical Volume Manager for Linux by Heinz Mauelshagen Sistina, Inc.
Operating Systems File Systems (in a Day) Ch
GNU/Linux Filesystem 1 st AUT GNU/Linux Festival Computer Engineering & IT Department Bahador Bakhshi.
Operating Systems File Systems (Select parts of Ch 6)
Linux Operating System
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.
File System and Directory Structure in Linux. What is File System In a computer, a file system is the way in which files are named and where they are.
Managing Storage Lesson 3.
GeoVision Solutions Storage Management & Backup. ๏ RAID - Redundant Array of Independent (or Inexpensive) Disks ๏ Combines multiple disk drives into a.
Using Large Hard Drives in Linux Presented by Kevin McGregor Manitoba UNIX User Group March 12, 2013.
RAID RAID stands for Redundant Array of Inexpensive (Independent) Disks.
B-Tree File System BTRFS
LINUX FILE SYSTEMS ADMINISTRATION TOPIC 4.0. LINUX DIRECTORY STRUCTURE DIRECTORY STRUCTURE ABSOLUTE PATHNAME RELATIVE PATHNAME.
Device and Filesystem Management CSCI N321 – System and Network Administration Copyright © 2000, 2012 by Scott Orr and the Trustees of Indiana University.
COMP091 – Operating Systems 1 Linux Filesystems (EXTx) ISO9660 UDF.
Chapter 2 Installation Overview. Planning the Installation Questions: –Size of partitions –Where to put partitions –Which software packages to install.
Module 9: Configuring Storage
Implementing Storage Spaces
File Systems in Real-Time Embedded Applications March 4th Eric Julien Introduction to File Systems 1.
MCTS Guide to Microsoft Windows Vista Chapter 4 Managing Disks.
Chapter 6: Linux Filesystem Administration
1 Interface Two most common types of interfaces –SCSI: Small Computer Systems Interface (servers and high-performance desktops) –IDE/ATA: Integrated Drive.
Chapter 1 Managing Storage. Contents Understanding Partitioning Understanding LVM Understanding RAID Understanding Clustering and GFS Using Access Control.
MCTS Guide to Microsoft Windows 7
Disks and File Systems Greg Porter V1.0, February 07, 2009.
Sys Admin Course Physical Storage and File Systems Fourie Joubert.
Experience with the Thumper Wei Yang Stanford Linear Accelerator Center May 27-28, 2008 US ATLAS Tier 2/3 workshop University of Michigan, Ann Arbor.
Configuring Disk Devices. Module 4 – Configuring Disk Devices ♦ Overview This module deals with making partitions using fdisk, implementing RAID and Logical.
Device and Filesystem Management CSCI N321 – System and Network Administration Copyright © 2000, 2010 by Scott Orr and the Trustees of Indiana University.
Chapter 5 File Management File System Implementation.
Davie 5/18/2010.  Thursday, May 20 5:30pm  Ursa Minor  Co-sponsored with CSS  Guest Speakers  Dr. Craig Rich – TBA  James Schneider – Cal Poly.
System Administrator Responsible for? Install OS Network Configuration Security Configuration Patching Backup Performance Management Storage Management.
Jeff's Filesystem Papers Review Part I. Review of "Design and Implementation of The Second Extended Filesystem"
MCTS GUIDE TO MICROSOFT WINDOWS 7 Chapter 4 Managing Disks.
Adding a Hard Drive. BIOS / UEFI The Unified Extensible Firmware Interface (UEFI) defines a software interface between an operating system and platform.
1 CEG 2400 Fall 2012 Network Servers. 2 Network Servers Critical Network servers – Contain redundant components Power supplies Fans Memory CPU Hard Drives.
Hands-On Microsoft Windows Server 2008 Chapter 7 Configuring and Managing Data Storage.
File systems – Unix based Mostly…. Before We Start… What can you conclude from this (recent) lab output? run: Loop iteration number 0 Trying to lock lockA.
Device Mapper tools: RAID, Logical Volume Manager, and LUKS encryption Alan Porter Triangle Linux Users Group.
Chapter 8 Adding Disks.
L V M A Logical Volume Manager for Linux by Heinz Mauelshagen
Chapter 8 Adding a Disk.
Disks and Formatting Ch 3.
Linux Software RAID & LVM Patrick Ladd 5/2/2007.
Storage and Filesystem
File Structure 2018, Spring Pusan National University Joon-Seok Kim
Operating System Module 1: Linux Installation
Booting Up 15-Nov-18 boot.ppt.
Linux File Systems Partitioning Mounting File Systems
Btrfs Filesystem Chris Mason.
CS 295: Modern Systems Organizing Storage Devices
Task 36a Scope – Storage (L=ChrisH)
Presentation transcript:

System Administration Storage Systems

Agenda Storage Devices Partitioning LVM File Systems

STORAGE DEVICES

Single Disk

RAID?

RAID Redundant Array of Independent Disks Software vs. Hardware RAID 0, 1, 3, 5, 6

Software RAID Parity done by CPU FakeRAID Linux md LVM ZFS, btrfs Later

Hardware RAID RAID controller card Dedicated hardware box

Direct Attached Storage SAS interface

Storage Area Network Fiber Channel iSCSI ATA-over-Ethernet

Fiber Channel

Network Attached Storage NFS CIFS (think Windows File Sharing)

SAN vs. NAS

PARTITIONING

1 File System / Disk?

2 TB maybe… 2TB x 12?

2TB x 128 then?

Partitioning in Linux fdisk No support for GPT Parted GParted

Fdisk

Add Partition

Delete Partition

Save & Exit

Parted

Add Partition

Change Units

Delete Partition

No need to save Any action you do is permanent Parted will try to update system partition table

Script support parted can also take commands from command line: parted /dev/sda mkpart pri ext2 1Mib 10Gib

Resize (Expand) 1. Edit partition table Delete and create with same start position 2. Reload partition table Reboot if needed 3. Expand filesystem

Resize (Shrink) 1. Shrink filesystem Slightly smaller than final 2. Edit partition table Delete and create with same start position 3. Reload partition table Reboot if needed 4. Expand filesystem to fit partition

No Partition Moving

LOGICAL VOLUME MANAGER

What is LVM? A system to manage storage devices Volume == Disk

Why use LVM? Storage pooling Online resizing Resize any way Snapshots

Concepts Physical Volume A disk or partition Volume Group A group of PVs Logical Volume A virtual disk/partition Physical Extent Data blocks of a PV

Using a partition for LVM Best to have a partition table 1. Create partition with LVM type Fdisk: use t to change type to 8e Parted: toggle lvm flag 2. pvcreate /dev/XXX

Create a volume group vgcreate /dev/XXX …

Add PVs to volume groups vgextend /dev/XXX …

Create a logical volume lvcreate --name --size Size units: B, K, M, G, T … Path to new volume /dev/ /

More about LVM hp/LVM

FILE SYSTEMS

What is a File System? A file system (or filesystem) is an abstraction to store, retrieve and update a set of files. Learn more in OS course

Linux Disk File Systems Ext Family Ext2 Ext3 Ext4 ReiserFS XFS ZFS Btrfs

Ext Family Ext replaced MINIX file system Ext2 was major overhaul Ext3 adds Journaling Online expand Htree directory index (was linked-list)

Ext Family cont. Ext4 adds Larger file system (> 2TB) Extents Journal Checksum Increase subdirectory limit Delayed Allocation Persistent Pre-allocation …

Ext Family cont. Default FS in many distros

ReiserFS (Reiser3) By Hans Reiser / NAMESYS Earlier than ext3 Fast for huge directories and small files Features Journaling Online resize Tail packing

XFS By SGI Opensourced and ported to Linux Fast for large filesystems and large files Features Journaling Extents …

ZFS Filesystem + LVM By Sun Open-source but license not compatible with Linux Available on Solaris FreeBSD (older/slower than Solaris) Linux using FUSE or ZFS on Linux Basis for Sun Open Storage

Btrfs Started by Oracle Experimental Comparable to ZFS

Recommendation Use ext4 or XFS See manpages for tunables Features Block size RAID stripe size / stride width Journaling level

How to create a filesystem /sbin/mkfs. /dev/XXX Type: ext2, ext3, ext4, xfs, reiserfs, … ZFS and btrfs have special tools

Filesystem Utilities Ext Family e2fsprogs ReiserFS reiserfsprogs XFS xfsprogs

How to mount a filesystem A filesystem is mounted at a mount point, a directory Contents of that directory are hidden mount /dev/XXX /mnt mount Shows currently mounted filesystems

How to unmount unmount /dev/XXX unmount /mnt

Automatic mounting Add entry in /etc/fstab Will mount during boot

Practice Use a spare HDD or flat file Create a 10G flat file with dd: dd if=/dev/zero of=XXX bs=1M count=10k Play with fdisk/parted and LVM Go through the docs or Wikipedia Learn the features

Homework: Write a script Given 2 HDDs /dev/sdb /dev/sdc Use parted in script mode to create LVM partitions on both HDDs Add them to LVM volume group Use your student ID as the name Create a 20G LV named ID-1 and format as ext4 Create a 20G LV named ID-2 and format as XFS Undo (delete everything) Be sure to try it SAFELY before submitting Do not include any useless commands