CSC414 “Introduction to UNIX/ Linux” Lecture 3. Schedule 1. Introduction to Unix/ Linux 2. Kernel Structure and Device Drivers. 3. System and Storage.

Slides:



Advertisements
Similar presentations
A device that reads and writes data on a magnetic disk or tape. For writing, the surface of the disk or tape is moved past the read/write head. By discharging.
Advertisements

Hard Disks Low-level format- organizes both sides of each platter into tracks and sectors to define where items will be stored on the disk. Partitioning:
Chapter 12: File System Implementation
Hard Disk Drives Chapter 7.
CS 6560: Operating Systems Design
Linux can be generally divided into four major components: 1. KERNEL – OS, ultimate boss The kernel is the core program that runs programs and manages.
Linux Installation LINUX INSTALLATION. Download LINUX Linux Installation To install Red Hat, you will need to download the ISO images (CD Images) of the.
1 CSC 486/586 Network Storage. 2 Objectives Familiarization with network data storage technologies Understanding of RAID concepts and RAID levels Discuss.
Storage Systems: Advanced Topics Learning Objectives: To understand limitations of “one file system per partition” model To understand Logical Volume Management.
Allocation Methods - Contiguous
File Management Systems
Other Disk Details. 2 Disk Formatting After manufacturing disk has no information –Is stack of platters coated with magnetizable metal oxide Before use,
Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition, Chapter 12: Mass-Storage Systems.
1 Web Server Administration Chapter 3 Installing the Server.
Guide To UNIX Using Linux Third Edition
Linux Install. Resources Guide to Linux Installation and Administration, Nicholas Wells, Course Technology, 2000.
Session 3 Windows Platform Dina Alkhoudari. Learning Objectives Understanding Server Storage Technologies Direct Attached Storage DAS Network-Attached.
12.1 Silberschatz, Galvin and Gagne ©2009 Operating System Concepts with Java – 8 th Edition Chapter 12: Mass-Storage Systems.
Secondary Storage Unit 013: Systems Architecture Workbook: Secondary Storage 1G.
RAID Redundancy is the factor for development of RAID in server environments. This allows for backup of the data in the storage in the event of failure.
A+ Guide to Managing and Maintaining Your PC Fifth Edition Chapter 8 Understanding and Installing Hard Drives.
Linux+ Guide to Linux Certification, Third Edition
CompTIA Linux+ Certification
Guide To UNIX Using Linux Fourth Edition
Internal components, Backing Storage, Operating Systems Software
Guide to Linux Installation and Administration, 2e1 Chapter 3 Installing Linux.
Storage Systems: Advanced Topics Learning Objectives: To understand major characteristics of SSD To understand Logical Volume Management – its motivations.
Device and Filesystem Management CSCI N321 – System and Network Administration Copyright © 2000, 2012 by Scott Orr and the Trustees of Indiana University.
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.
Guide to Linux Installation and Administration, 2e 1 Chapter 9 Preparing for Emergencies.
Chapter 2 Installation Overview. Planning the Installation Questions: –Size of partitions –Where to put partitions –Which software packages to install.
Understand Disk Types LESSON Windows Server Administration Fundamentals.
Storage Devices Chapter 7. Floppy Drive Overview The floppy drive subsystem consists of three main parts: ▫the electronic circuits or the controller,
Page 110/12/2015 CSE 30341: Operating Systems Principles Network-Attached Storage  Network-attached storage (NAS) is storage made available over a network.
Guide to Linux Installation and Administration, 2e1 Chapter 2 Planning Your System.
1 Interface Two most common types of interfaces –SCSI: Small Computer Systems Interface (servers and high-performance desktops) –IDE/ATA: Integrated Drive.
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.
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.
COMP25212 STORAGE SYSTEM AND VIRTUALIZATION Sergio Davies Feb/Mar 2014COMP25212 – Storage 3.
Linux+ Guide to Linux Certification Chapter Six Linux Filesystem Administration.
CSC414 “Introduction to UNIX/ Linux” Lecture 2. Schedule 1. Introduction to Unix/ Linux 2. Kernel Structure and Device Drivers. 3. System and Storage.
Chapter 8: Installing Linux The Complete Guide To Linux System Administration.
Copyright © Genetic Computer School 2008 Computer Systems Architecture SA 8- 0 Lesson 8 Secondary Management.
CSC414 “Introduction to UNIX/ Linux” Lecture 6. Schedule 1. Introduction to Unix/ Linux 2. Kernel Structure and Device Drivers. 3. System and Storage.
Week1: Introduction to Computer Networks. Copyright © 2012 Cengage Learning. All rights reserved.2 Objectives 2 Describe basic computer components and.
Lec 5 part2 Disk Storage, Basic File Structures, and Hashing.
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.
This slide deck is for LPI Academy instructors to use for lectures for LPI Academy courses. ©Copyright Network Development Group Module 10 Understanding.
Silberschatz, Galvin and Gagne ©2013 Operating System Concepts – 9 th Edition Chapter 10: Mass-Storage Systems.
Linux Filesystem Administration
Chapter 8 Adding Disks.
Storage HDD, SSD and RAID.
Chapter 8 Unix & Linux.
Chapter 11: File System Implementation
Installing OS.
Chapter 12: File System Implementation
Computer Hard Drive.
I/O System Chapter 5 Designed by .VAS.
Chapter 12: Mass-Storage Structure
Operating System I/O System Monday, August 11, 2008.
Introduction to Computing
Chapter 12: Mass-Storage Systems
Operating System Module 1: Linux Installation
Booting Up 15-Nov-18 boot.ppt.
Overview Continuation from Monday (File system implementation)
Hard disk basics Prof:R.CHARLES SILVESTER JOE Departmet of Electronics St.Joseph’s College,Trichy.
Presentation transcript:

CSC414 “Introduction to UNIX/ Linux” Lecture 3

Schedule 1. Introduction to Unix/ Linux 2. Kernel Structure and Device Drivers. 3. System and Storage Structure. 4. Processes and Inter- Process Communication. 5. Shell Programming. 6. User Management and Disk Quota. 7. System Management. 8. Network Management. 9. Security. 10. Advanced System Administration. 2015Qassim University, College of Computer, 9th level 2

Contents: Disks Types Storage Hardware Interfaces Storage management layers Overview Disk Partitioning. RAID: Redundant Arrays of Inexpensive Disks. Logical Volume Management. Linux filesystems: the ext family Boot Loader. 2015Qassim University, College of Computer, 9th level 3

Disks Types:  Hard disks A typical hard drive contains several rotating platters coated with magnetic film. They are read and written by tiny skating heads that are mounted on a metal arm that swings back and forth to position them. 2015Qassim University, College of Computer, 9th level 4

Cont.  Solid state disks SSDs spread reads and writes across banks of flash memory cells, which are individually rather slow in comparison to modern hard disks. But because of parallelism, the SSD as a whole meets or exceeds the bandwidth of a traditional disk. The great strength of SSDs is that they continue to perform well when data is read or written at random, an access pattern that’s predominant in real-world use. 2015Qassim University, College of Computer, 9th level 5

Storage Hardware Interfaces ATA (Advanced Technology Attachment), known in earlier revisions as IDE, was developed as a simple, low-cost interface for PCs. It was originally called Integrated Drive Electronics because it put the hardware controller in the same box as the disk platters and used a relatively high-level protocol for communication between the computer and the disks. 2015Qassim University, College of Computer, 9th level 6

Cont. Serial ATA, SATA.. In addition to supporting much higher transfer rates (currently 3 Gb/s, with 6 Gb/s soon to arrive), SATA simplifies connectivity with tidier cabling and a longer maximum cable length. SATA has native support for hot-swapping and (optional) command queuing. 2015Qassim University, College of Computer, 9th level 7

Cont. Small Computer System Interface, SCSI, is one of the most widely supported disk interfaces. It supports multiple disks on a bus and various speeds and communication styles. In the past it was used for disks, tape drives, scanners, and printers, but these days most peripherals have abandoned SCSI in favor of USB. 2015Qassim University, College of Computer, 9th level 8

Storage management layers:  A storage device is anything that looks like a disk.  It can be a hard disk, a flash drive, an SSD, an external RAID array implemented in hardware.  The exact hardware doesn’t matter, as long as the device allows random access, handles block I/O, and is represented by a device file. Partition. RAID array. Volume groups and logical volumes. Filesystem 2015Qassim University, College of Computer, 9th level 9

Partition fixed-size subsection of a storage device. Each partition has its own device file and acts much like an independent storage device. For efficiency, the same driver that handles the underlying device usually implements partitioning. Most partitioning schemes consume a few blocks at the start of the device to record the ranges of blocks that make up each partition. Reduce the risk of system failure in case a partition becomes full. Encapsulate your data. Since file system corruption is local to a partition, you stand to lose only some of your data if an accident occurs. 2015Qassim University, College of Computer, 9th level 10

Partition Fields Device: This field displays the partition's device name. Start: This field shows the sector on your hard drive where the partition begins. End: This field shows the sector on your hard drive where the partition ends. Size: This field shows the partition's size (in MB). Type: This field shows the partition's type (for example, ext2, ext3, or vfat). Mount Point: A mount point is the location within the directory hierarchy at which a volume exists; the volume is "mounted" at this location. This field indicates where the partition will be mounted. 2015Qassim University, College of Computer, 9th level 11

Cont. Unless you have a reason for doing otherwise, it is recommended that you create the following partitions: /boot partition – contains kernel images and grub configuration and commands / partition /var partition /home partition Any other partition based on application (e.g /usr/local for squid) swap partition — swap partitions are used to support virtual memory. In other words, data is written to a swap partition when there is not enough RAM to store the data your system is processing. The size of your swap partition should be equal to twice your computer's RAM. 2015Qassim University, College of Computer, 9th level 12

Cont. IDE Disk Partitions /dev/hda (Primary Master Disk) /dev/hda1 (First Primary Partition) /dev/hda2 (Second Primary Partition) /dev/hdb (Primary Slave Partition) /dev/hdb1 /dev/hdc (Secondary Master/Slave Partition) /dev/hdc1 SCSI Disk Partitions /dev/sda1, /dev/sda2 /dev/sdb1, /dev/sdb2 /dev/sdc1, /dev/sdc2 2015Qassim University, College of Computer, 9th level 13

RAID: Redundant Arrays of Inexpensive Disks combines multiple storage devices into one virtualized device. Depending on how you set up the array, this configuration can increase performance (by reading or writing disks in parallel). Increase reliability (by duplicating or parity-checking data across multiple disks). RAID can be implemented by the operating system or by various types of hardware. As the name suggests, RAID is typically conceived of as an aggregation of bare drives, but modern implementations let you use as a component of a RAID array anything that acts like a disk. 2015Qassim University, College of Computer, 9th level 14

Logical Volume Management 2015Qassim University, College of Computer, 9th level 15 These systems aggregate physical devices to form pools of storage called volume groups. The administrator can then subdivide this pool into logical volumes in much the same way that disks of yore were divided into partitions. Since the LVM adds a layer of indirection between logical and physical blocks, it can freeze the logical state of a volume simply by making a copy of the mapping table.

Cont. 2015Qassim University, College of Computer, 9th level 16 Logical volumes are more flexible and powerful than disk partitions. Here are some of the magical operations a volume manager lets you carry out: Move logical volumes among different physical devices Grow and shrink logical volumes on the fly Take copy-on-write “snapshots” of logical volumes Replace on-line drives without interrupting service Incorporate mirroring or striping in your logical volumes

Linux filesystems: the ext family. The “second extended filesystem,” ext2, was for a long time the mainstream Linux standard Ext3 adds journaling capability to the existing ext2 code, a conceptually simple modification that increases reliability enormously. Even more interestingly, the ext3 extensions were implemented without changing the fundamental structure of ext2. In fact, you can still mount an ext3 filesystem as an ext2 filesystem—it just won’t have journaling enabled. Ext4 is a comparatively incremental update that raises a few size limits, increases the performance of certain operations. The on-disk format is compatible enough that ext2 and ext3 filesystems can be mounted as ext4 filesystems. Furthermore, ext4 filesystems can be mounted as if they were ext3 filesystems provided that the extent system has not been used. 2015Qassim University, College of Computer, 9th level 17

Boot Loader In order for the BIOS to load an OS it looks for instructions on the first sector of a hard drive. On the first sector of the hard drive resides the master boot record (MBR), and is where a boot loader is initialized. Depending on the boot loader, additional files may be stored and read from a partition on the hard drive. After this step the boot loader begins to start the operating system, and is not used again until the next boot. 2015Qassim University, College of Computer, 9th level 18

Reading Chapter 8 form “ Unix® and Linux® System Administration Handbook, Fourth Edition” 2015Qassim University, College of Computer, 9th level 19