68

Hard Drive Technologies Chapter 9

  • Upload
    aimee

  • View
    40

  • Download
    1

Embed Size (px)

DESCRIPTION

Hard Drive Technologies Chapter 9. Overview. In this chapter you will learn: Explain how hard drives work Identify and explain ATA hard drive interfaces Identify and explain SCSI hard drive interfaces Describe how to protect data with RAID. Historical/Conceptual. How Hard Drives Work. - PowerPoint PPT Presentation

Citation preview

Page 1: Hard Drive Technologies Chapter 9
Page 2: Hard Drive Technologies Chapter 9

OverviewIn this chapter you will learn:

Explain how hard drives workIdentify and explain ATA hard drive

interfacesIdentify and explain SCSI hard drive

interfacesDescribe how to protect data with RAID

Page 3: Hard Drive Technologies Chapter 9

Historical/Conceptual

Page 4: Hard Drive Technologies Chapter 9

The Hard Drive Hard drives are composed of individual

disks or plattersThe platters are made up of aluminum

(non-magnetic), and are coated with a magnetic medium

Two tiny read/write heads service each platter one to read top and the other to read bottom.

Page 5: Hard Drive Technologies Chapter 9

The Hard Drive The closer the read/write heads are to

the platter, the more densely the data can be packed on to the drive.

Hard drives use a tiny, heavily filtered aperture to equalize the air pressure between the exterior and interior of the hard drive (sensitive for dust).

Platters spin between 3500 and 10,000 rounds per minute (RPM).

Page 6: Hard Drive Technologies Chapter 9

Data Encoding Hard drives store data in binary form.Binary data stored in tiny magnetic fields

(called fluxesfluxes) that can be placed in either direction.

The flux switches back and forth through a process called flux reversalflux reversal

Fluxes in one direction are read as 0 and the other direction as 1

Hard drives read these flux reversals at a very high speed when accessing or writing data using encoding method.

Page 7: Hard Drive Technologies Chapter 9

Data Encoding MethodEncoding methods used by hard driveshard drives are

Run length limited (RLL) Run length limited (RLL) Instated of dealing with individual

fluxes HD read and write group of flux called run. That are unique patterns of ones and zeros

Can have runs of about 7 fluxesPartial Response Maximum Likelihood Partial Response Maximum Likelihood

(PRML) (PRML) Used by current hard derive.Uses a powerful, intelligent circuitry to

analyze each flux reversalCan have runs of about 16-20 fluxesSignificantly increased capacity (up to

1TB)

Page 8: Hard Drive Technologies Chapter 9

Head Actuator

Actuator Arm

Arm Movement in the Hard Drive

Page 9: Hard Drive Technologies Chapter 9

Arm Movement in the Hard DriveOnly two technologies used for moving the

actuator arm.1- The stepper motor technology

Moves the arms in fixed increments or steps Arms parked in non-data area using special

parking program.Only seen in floppies today.

2- The voice coil or linear motor technology Uses a permanent magnet surrounding the coil on

the actuator arm to move the arm.When an electrical current passes the coil

generates a magnetic filed that moves an actuator in both direction.

Automatically parks drive over non-data area when power removed

Page 10: Hard Drive Technologies Chapter 9

Geometry GeometryGeometry is used to determine the location

of the data on the hard driveCHS: Cylinders # , Heads # , Sectors #.

If you open hard drive you would not see the geometry.

Used to be critical to know geometryOld day, had to manually enter into CMOS

Today, Geometry stored on hard driveBIOS can query hard drive for geometry

data

Page 11: Hard Drive Technologies Chapter 9

HeadsNumber of read/write heads used by the

drive to store dataTwo heads per platter

(top and bottom)Most hard drives have an

extra head or two for their own usage, so the number may not be even

This is track

Page 12: Hard Drive Technologies Chapter 9

Cylinders

Cylinder is group of trackstracks of the same diameter going completely through the drive.

Typically hard drive contains thousand of cylinders.

Page 13: Hard Drive Technologies Chapter 9

Sectors per Track

Number of slices in the hard driveStores 512 bytes of data.You can’t divide data into any thing

smaller than a sector.Sector per track is value describe # of

sector in each track.

123

4 5

6

Page 14: Hard Drive Technologies Chapter 9

Obsolete Geometry Might see in older systems

Write pre-compensation cylinder Write pre-compensation cylinder The specific cylinder from where the drive

would start writing data farther apart.Internal sectors were physically smallerExternal sectors physically largerThis identified cylinder where spacing changed

Landing zone Landing zone Unused cylinder as a ‘parking placeparking place’ for headsReferred to as Lzone, LZ, ParkNeeded for older drives using stepper motorsstepper motors

Page 15: Hard Drive Technologies Chapter 9

CHS Exercise (1)What is the hard drive capacity with the following

geometry.2100 cyl / 16 heads 63 sectors per track (spt)

AnswerAnswer:C x H x sectors/track x 5122100 x 16 x 63 x 512 = 1,083,801,600 bytes

Each Kilo byte is 1024 byte (2^10)Each Kilo byte is 1024 byte (2^10)

1,083,801,600 / 1024 = 1,058, 400 KB1,058, 400 KB / 1024 = 1033.59375 MB1033.59375 MB / 1024 = 1.009 GB

15

Page 16: Hard Drive Technologies Chapter 9

CHS Exercise (2)A "1.44 MB” floppy disk has:

80 cylinders, 2 heads and 18 sectors/track.

Therefore, its capacity in sectors is computed as follows:C x H x sectors x 51280 x 2 x 18 x 512= 1474560 bytes (1.44

MB)

Page 17: Hard Drive Technologies Chapter 9

IT Technician

Page 18: Hard Drive Technologies Chapter 9

Hard Drive Interfaces Over years many interface existed for

hard drive.ATA interfaces dominate today’s market

Many changes throughout years.Parallel ATA (PATA) historically prominentSerial ATA (SATA) since 2003

Small Computer System Interface (SCSI)Pronounced “Scuzzy”Used in many high-end systems

Page 19: Hard Drive Technologies Chapter 9

ATA Overview

Cable Keywords Speed Max size

ATA-1ATA-1 40-pin PIO and DMA 3.3 MB/s to 8.3MB/s 504 MB

ATA-2ATA-2 40-pin EIDEATAPI

11.1 MBps to 16.6 MBps 8.4 GB

ATA-3ATA-3 40-pin SMART 11.1 MBps to 16.6 MBps 8.4 GB

ATA-4ATA-4 40-pin Ultra 16.7 MBps to 33.3 MBps 8.4 GB

INT13INT13 BIOS Upgrade

137 GB

ATA-5ATA-5 40-pin80-wires

ATA/33 ATA/66

44.4 MBps to 6.6 MBps 137 GB

ATA-6ATA-6 40-pin80-wires

Big Drive 100 MBps 144 PB

ATA-7ATA-7 40-pin80-wires 7-pin

ATA/133

SATA

133 MBps to 300 MBps 144 PB

Page 20: Hard Drive Technologies Chapter 9

ATA-1Parallel ATAUsed a single, 40-pin ribbon cable to

connect hard drive to the singlesingle controller on motherboard

Max of 2 drives can attach to a single IDE connector : master and slave

20

Page 21: Hard Drive Technologies Chapter 9

Single

Master

Slave

Page 22: Hard Drive Technologies Chapter 9

ATA-1 Max. Capacity

Supported hard drives up to 504 MB.a max of 1024 cylinders, 16 heads and 63 sectors per track (CHS).1024 cylinders*16 heads* 63 sectors/track

*512 bytes/sector = 528 million bytes= 504 MB (528 million/ 2^20)

22

limitation by BIOS

Page 23: Hard Drive Technologies Chapter 9

ATA-1 SpeedTo make a Hdrive standard, we must define

both the methodmethod and speedspeed at which the data is going to move: Programmable I/O (PIO) – traditional data traditional data

transfertransfer, is an I/O addressing scheme where CPU talks directly to Hdrive via BIOS to send and receive data. 3.3 MB/s to 8.3 MB/s

DMA – Direct Memory Access 2.1 MB/s to 8.3 MB/s

Called PIO Mode and DMA Mode

Page 24: Hard Drive Technologies Chapter 9

PIO and DMA modeDMA modes defined a method to enable Hdrives

to talk to RAM directly using old-style DMA commands (called single word DMA)

3 ATA single word DMA modes (which were slow):

Single word DMA mode 0mode 0 : 2.1 MBps Single word DMA mode 1 mode 1 : 4.2 MBps Single word DMA mode 2 mode 2 : 8.3 MBps

At boot: BIOS queried Hdrive to see what modes it could use and would then automatically adjust to the fastest mode.

24

Page 25: Hard Drive Technologies Chapter 9

ATA-2Commonly called EIDE -enhanced

Integrated Drive Electronics - (though a misnomermisnomer).

Added second controller to allow for four drives instead of only two.

Added ATAPI that enabled non-hard drive device such as CD-ROM to connect to the PC via ATA-2 controllers.

Broke the 504 MB barrier using Logical Block Addressing (LBA).

Page 26: Hard Drive Technologies Chapter 9

ATA-2 CapacityWith LBA Hdrive lieslies to computer about its

geometry through an advanced type of sector translationsector translation.

To get up to 8.4 GB instead of 504 MB

So, the ATA-2 spec was designed to have 2 geometries: the physical geometryphysical geometry defined the real layout of

CHS inside drive. Logical geometry Logical geometry described what the drive told

CMOS.

26

Page 27: Hard Drive Technologies Chapter 9

Sector translationWhen data was being translated to and

from the drive, the onboard circuitry of the derive translated the logical geometry into the physical geometry.

Since the BIOS CHS allows for fewer cylinders, the actual cylinders reported by the drive are divided by 2, 4, 8, or 16 to bring the number below 1024 and the number of heads is multiplied by that same number. 27

Page 28: Hard Drive Technologies Chapter 9

Example of sector translationPhysical CHS Parameters

Logical CHS Parameters

Cylinders 12,000 750

Heads 16 256

Sectors/Track 63 63

Total Sectors 12,096,000 12,096,000

Capacity 6,193MB 6,193MB

28

Page 29: Hard Drive Technologies Chapter 9

Self-Monitoring Analysis and Reporting Technology

S.M.A.R.T.Helps predict when a hard drive is going to

fail by monitoring the hard drives mechanical components.

No real change in other stats

ATA-3

Page 30: Hard Drive Technologies Chapter 9

Introduced Ultra DMA Ultra DMA ModesUltra DMA Mode 0Mode 0: 16.7 MBpsUltra DMA Mode 1Mode 1: 25 MBpsUltra DMA Mode 2Mode 2: 33.3 MBps

Ultra DMA Mode 2, the most popular of ATA-4 DMA model, also called ATA/33

ATA-4

Page 31: Hard Drive Technologies Chapter 9

The original ATA-1 standard allowed for hard drives up to 137 GB!

504 MB limit was caused by old AT BIOS , AND BIOS not ATA standard could support only 504 MB.

LBA was a work-around that told Hdrive to lie to BIOS to get it up to 8.4 GB

Eventually Hdrives started edging close to LBA limit. BIOS makers needed to fix BIOS. It was done by a new set of BIOS commands called INT13 extensions

31

Interrupt 13 Extensions (INT 13)

Page 32: Hard Drive Technologies Chapter 9

Developed by PhoenixPhoenix TechnologiesPhoenix came up with a new set of BIOS

commands called Interrupt 13 extension.It broke the 8.4 GB barrier by ignoring CHS

values and feeding LBA a stream of addressable sectors

BIOS must recognize INT 13

32

INT 13 extension

Page 33: Hard Drive Technologies Chapter 9

Introduced newer Ultra DMA ModesUltra DMA Mode 3Mode 3: 44.4 MBpsUltra DMA Mode 4Mode 4: 66.6 MBps

Ultra DMA Mode 4 is the most popular also called ATA/66

Used 40 pin cable, but had 80 wires ATA-5 defined exactly where the controller master

and slave drives connected (don’t need jumpers). Blue connector – to controller Gray connector – slave drive Black connector – master drive

ATA-5

Page 34: Hard Drive Technologies Chapter 9

ATA/66 is backward compatible.You can safely plug an earlier drive into an

ATA/66 cable and controller.

if you plug an ATA/66 drive into an older controller , it will work (but not in ATA/66 mode).

The only risky action is to use an ATA/66 controller and Hdrive with a non-ATA/66 cable. It causes data losses.

34

ATA-5

Page 35: Hard Drive Technologies Chapter 9

“Big Drives” introduced

Replaced INT13 & 24 bit LBA to 48 bit LBA

Increased maximum size to 144 PetaBayte144,000,000 GB

Introduced Ultra DMA 5Ultra DMA Mode 5Mode 5: 100 MBps ATA/100Used same 40-pin 80 wire cables as ATA-5

ATA-6

Page 36: Hard Drive Technologies Chapter 9

Introduced Ultra DMA 6Ultra DMA Mode 6: 133 MBps ATA/133Used same 40-pin 80 wire cables as ATA-5 and ATA6Didn’t really take off due to SATA’s popularity

Introduced Serial ATA (SATA)Increased throughput to 150 MBps to 300 MBps

ATA-7

Page 37: Hard Drive Technologies Chapter 9

Integrated Drive ElectronicsRibbonRoundedNo twist!40 pin 40 pin/80 wires

37

IDE Cables

Max speed = 33MB/sec

Max speed = 133MB/sec

Page 38: Hard Drive Technologies Chapter 9

38

40 wire IDE ribbon cable33 MB/sec max

80 wire IDE ribbon cable133MB/sec max

Page 39: Hard Drive Technologies Chapter 9

39

Onboard Controllers(2 x 40 pin male ports)

Primary IDE controller is usually faster – ATA/66, 100

or 133. Secondary controlleroperates at ATA/33

Normally, the IDE controllersIdentified as IDE1 and IDE2

on the motherboard

Page 40: Hard Drive Technologies Chapter 9

PATA problems:IDE cables block airflow and hinder coolingMax cable length of 18 inchesCan’t hot-swap PATA drivesTechnology has reached the limits of what it can

do in terms of throughput

SATA addresses these issues.SATA derives transfer data in serial bursts

instead of parallel.

40

Problems with PATA

Page 41: Hard Drive Technologies Chapter 9

Serial ATA Serial ATA (SATA) creates a point-to-point

connection between the device and the controller◦ Hot-swappable

◦ Can have as many as 8 SATA devices

◦ Thinner cables resulting in better air flow and cable control in the PC

◦ Maximum cable length of 40 inches (1 meter) compared to 18 inches for PATA cables

Page 42: Hard Drive Technologies Chapter 9

Serial ATA

Page 43: Hard Drive Technologies Chapter 9

Serial ATA More on SATA

◦ SATA is backward compatible.◦ PATA device my be connected to SATA cable using a

SATA bridge

Page 44: Hard Drive Technologies Chapter 9

Serial ATA More on SATA

◦ Can have as many as 8 SATA devices Add more SATA functionality via a PCI

card

eSATA◦ External SATA◦ Extends SATA bus to external devices

eSATA Port

Page 45: Hard Drive Technologies Chapter 9

45

7 pin connector

4-wire data cable

Motherboard SATA socket

Page 46: Hard Drive Technologies Chapter 9
Page 47: Hard Drive Technologies Chapter 9

Pronounced “Scuzzy” Used by specialized server machines. Been around since 70’s Devices can be internal or external

Historically the choice for RAID◦ Faster than PATA◦ Could have more than 4 drives

SATA replacing SCSI in many applications

SCSI

Page 48: Hard Drive Technologies Chapter 9

SCSI devices connect together in string of device called chain.

The host adapter is a device that attaches the SCSI chain to the PC

All SCSI devices are divided into internal and external groups

The maximum number of devices, including the host adapter, is 16

SCSI Chains

Page 49: Hard Drive Technologies Chapter 9

SCSI host adapter

PCI host adapter (SCSI controllerSCSI controller)

Page 50: Hard Drive Technologies Chapter 9

Internal SCSI devices are installed inside the PC and connect to the host adapter through the internal connector

Internal devices use a 68-pin ribbon cable. Flat and flexible cable.

Cables can be connected to multiple devicesCD-ROM drive is an example of internal SCSI device.

Internal Devices

Page 51: Hard Drive Technologies Chapter 9

External SCSI devices are connected to host adapter to external connection of host adapter D shape connector.

Many external devices connect to the host adapter with 50-pin high density (HD) connector. Higher end SCSI device use 68-pin HD connector like

internal device.

External Devices

Page 52: Hard Drive Technologies Chapter 9

External devices have two connections in the back, to allow for daisy-chaining process of connecting device directly to anther

device is called daisy chaining

You can daisy chain up to 15 device to one host adapter. These device can be internal or external or both.

External Devices

Page 53: Hard Drive Technologies Chapter 9

Each SCSI device must have a unique SCSI ID

The values of ID numbers range from 0 to 15

No two devices connected to a single host adapter can share the same ID number

There is no order for the use of SCSI IDs, and any SCSI device can have any SCSI ID

SCSI IDs

Page 54: Hard Drive Technologies Chapter 9

The SCSI ID for a particular device can be set by configuring jumpers, switches or even dials Make sure you can look at any SCSI device and understand

how to set its SCSI ID!

Use your hexadecimal knowledge to set the device ID◦ Device 1 = 0 0 0 1 Off, Off, Off, On◦ Device 7 = 0 1 1 1 Off, On, On, On◦ Device 15 = 1 1 1 1 On, On, On, On

Host adapters often set to 7 or 15 but can be changed

Setting SCSI IDs

Page 55: Hard Drive Technologies Chapter 9

Terminators are used to prevent a signal reflection which can corrupt the signal

Pull-down resistors are usually used as terminators

Only the ends of the SCSI chains need to be terminated (both both

device at the end of device at the end of cablecable)Most manufacturers

build SCSI devices that self terminate

Termination

Page 56: Hard Drive Technologies Chapter 9
Page 57: Hard Drive Technologies Chapter 9

The most important part of a PC is the data it holdsCompanies have gone out of business because of

loosing the data on their hard drive

Hard drives will eventually develop faults

Fault tolerance allows systems to still operate even when a component failsRedundant Array of Inexpensive Disks (RAID) is one

such technology

Protecting Data

Page 58: Hard Drive Technologies Chapter 9

RAID Level 0Disk Striping

Spreading the data among multiple drive.Requires at least 2 hard drives.Provides increased read and writes (faster).

Not fault tolerant (not safe)If any drive fails,

the data is lost

Page 59: Hard Drive Technologies Chapter 9

Disk Mirroring/Duplexing is the process of writing the same data to two drives at the same timeRequires two drives. What does it means? What does it means?Produces an exact mirror of the primary

driveMirroring uses the same controller.Duplexing uses separate controllers.

Ultimately safe but you lose space.

RAID Level 1

Page 60: Hard Drive Technologies Chapter 9

RAID Level 1

DuplexingDuplexingMirroringMirroring

Page 61: Hard Drive Technologies Chapter 9

RAID 2Disk Striping with Multiple Parity DrivesNot used

RAID 3 and 4Disk Striping with Dedicated ParityCombined dedicated data drives and dedicated

parity drivesQuickly replaced by RAID 5

RAID Levels 2 to 4

Page 62: Hard Drive Technologies Chapter 9

Disk Striping with Distributed ParityDistributes data and parity evenly across the drivesRequires at least 3 drivesMost common RAID implementation

RAID Level 5

Software based RAID 5

Page 63: Hard Drive Technologies Chapter 9

RAID 5 (Stripe with Parity)Decimal 22 21 20

4 2 1

0 0 0 0

1 0 0 1

2 0 1 0

3 0 1 1

4 1 0 0

Decimal 21 20 OddParity

2 1

0 0 0 1

1 0 1 0

2 1 0 0

3 1 1 1

0

0

1

1

Data

0

1

0

1

Data

1

0

0

1

Parity

One of the derive use to store One of the derive use to store parity.parity.

Page 64: Hard Drive Technologies Chapter 9

Disk Striping with Extra Parity

Its RAID 5 with extra parity information.

RAID Level 6

Page 65: Hard Drive Technologies Chapter 9

SCSI has been the primary choice in the pastSCSI chaining of multiple device to single controller

made it natural for RAID. Faster than PATA PATA only allowed 4 drives

SATA today viewed as comparable choiceSpeeds comparable to SCSIDedicated SATA controllers can support up to 15

drives

Implementing RAID

Page 66: Hard Drive Technologies Chapter 9

Hardware RAIDUsed when you need speed along with data

redundancy.Need intelligent controller.Invisible to OS Operating system (views it as single views it as single

volumevolume)Most RAID setup in real world are hardware based.

Hardware vs. Software

Page 67: Hard Drive Technologies Chapter 9

Software RAIDUsed when price takes priority over performance.Does not required special controllers.

You can use ATA controller or SCSI host adapter.Operating system recognizes all individual disksNeeds small software like disk Manager built in Windows server 2003Combines them together as single volume

Hardware vs. Software

Page 68: Hard Drive Technologies Chapter 9

ATA RAID controller chips have gone down in price

Some motherboards are now coming with RAID built-in

The Future is RAIDRAID has been around for 20 years but is now less

expensive and moving into desktop systems

Personal RAID