Backing Up Photos 1 What Can Happen to Your Masterpiece? 2 3 4 - - PowerPoint PPT Presentation

backing up photos
SMART_READER_LITE
LIVE PREVIEW

Backing Up Photos 1 What Can Happen to Your Masterpiece? 2 3 4 - - PowerPoint PPT Presentation

Backing Up Photos 1 What Can Happen to Your Masterpiece? 2 3 4 5 Your Photos Here 6 7 8 Causes for Data Loss Hard drive head crash Ageing of media Cosmic rays Obsolescence Human error Software bugs Disasters


slide-1
SLIDE 1

Backing Up Photos

1

slide-2
SLIDE 2

What Can Happen to Your Masterpiece?

2

slide-3
SLIDE 3

3

slide-4
SLIDE 4

4

slide-5
SLIDE 5

5

slide-6
SLIDE 6

6

Your Photos Here

slide-7
SLIDE 7

7

slide-8
SLIDE 8

8

slide-9
SLIDE 9

Causes for Data Loss

  • Hard drive head crash
  • Ageing of media
  • Cosmic rays
  • Obsolescence
  • Human error
  • Software bugs
  • Disasters (fire, earthquake, ...)

9

slide-10
SLIDE 10

Failure Characteristics

  • Independence
  • Mean Time to Failure (Failure Rate)
  • Rate changes over time (bathtub curve)
  • Detectable
  • Repair Time

10

slide-11
SLIDE 11

How good are Hard Disks?

  • I would not trust more than 5 years
  • Much depends on:

– type of disk – on all the time? – off line vs on line?

  • Hard drives often fail in batches!

11

slide-12
SLIDE 12

Solid State Disks (SSDs)

  • Faster and more expensive than hard disks
  • Can also fail
  • Not that much more reliable than hard disks

12

slide-13
SLIDE 13

Reliability (from Wikipedia)

  • SSD: Reliability varies across manufacturers and models

with return rates reaching 40% for specific drives. As of 2011 leading SSDs have lower return rates than mechanical

  • drives. Many SSDs critically fail on power outages; a

December 2013 survey found that only some of them are able to survive multiple power outages.

  • Hard Disk: According to a study performed by CMU for

both consumer and enterprise-grade HDDs, their average failure rate is 6 years, and life expectancy is 9–11 years. Leading SSDs have overtaken hard disks for reliability, however the risk of a sudden, catastrophic data loss can be lower for mechanical disks.

CS 245 Notes 2 13

slide-14
SLIDE 14

How good are CDs and DVDs?

  • You can find claims of 10-100 year life
  • Much depends on:

– type of disk – exposure to heat & light – proper handling

  • How do you test??

14

slide-15
SLIDE 15

Solutions

  • Make Copies!!!
  • Copies on devices with different failure

characteristics

  • Check for data loss
  • Repair and restore copies

15

slide-16
SLIDE 16

How Many Copies??

  • Need model
  • Example model:

– One data “object” (e.g., photo, album, ...) – Every week (say):

  • bject survives with probability p
  • bject is lost with probability 1 – p

– Example: p = 0.990

16

slide-17
SLIDE 17

State Transition Model

17

  • bject

OK

  • bject

dead p 1 - p

slide-18
SLIDE 18

Expected Time to Failure (MTF)

  • Let X be time to failure (years)
  • E(X) =

– with probability (1-p): 1 – with probability (1-p)p: 2 – with probability (1-p)p2: 3 – with probability (1-p)p3: 4 – with probability (1-p)p4: 5 – ...

18

slide-19
SLIDE 19

Expected Time to Failure (MTF)

  • E(X)

= (1-p)[ 1 + 2p + 3p2 + 4p3 + 5p4 + ...]

19

slide-20
SLIDE 20

Expected Time to Failure (MTF)

  • E(X)

= (1-p)[ 1 + 2p + 3p2 + 4p3 + 5p4 + ...]

  • Let

S = [ 1 + 2p + 3p2 + 4p3 + 5p4 + ...] T = [ p + p2 + p3 + p4 + ...]

  • Note that

dT/dp = S

  • Now let us solve for T...

20

slide-21
SLIDE 21

Expected Time to Failure (MTF)

  • T = [ p + p2 + p3 + p4 + ...]
  • T = p[ 1 + p + p2 + p3 + p4 + ...]
  • T = p[ 1+ T ]

21

slide-22
SLIDE 22

Expected Time to Failure (MTF)

  • T = [ p + p2 + p3 + p4 + ...]
  • T = p[ 1 + p + p2 + p3 + p4 + ...]
  • T = p[ 1+ T ]
  • T – pT = p
  • T = p/(1-p)

22

slide-23
SLIDE 23

Expected Time to Failure (MTF)

  • T = [ p + p2 + p3 + p4 + ...]
  • T = p[ 1 + p + p2 + p3 + p4 + ...]
  • T = p[ 1+ T ]
  • T – pT = p
  • T = p/(1-p)
  • dT/dp = p(-1)(1-p)-2(-1) + (1-p)-1
  • dT/dp = 1/(1-p)2
  • E(X) = (1-p)S = (1-p)/(1-p)2 = 1/(1-p)

23

slide-24
SLIDE 24

Expected Time to Failure (MTF)

  • E(X) = 1/(1-p)

24

p MTF 0.9999 10000.00 0.999 1000.00 0.99 100.00 0.9 10.00 0.85 6.67 0.8 5.00

slide-25
SLIDE 25

Multiple Copies

  • Number of copies = n
  • What is probability we lose data at end of year?
  • Assume independence, same p

25

n=3 p p p

slide-26
SLIDE 26

Multiple Copies

  • Probability of loss = (1-p)n
  • Probability data survives = [1 - (1-p)n ]

26

n=3 p p p

slide-27
SLIDE 27

Multiple Copies

  • New p = [1 - (1-p)n ]

– assume repairs at end of week

27

p n new p MTF 0.99 1 0.99 100 0.99 2 0.9999 10000 0.99 3 0.999999 1000000 0.99 4 0.99999999 99999999.5 0.80 1 0.8 5 0.80 2 0.96 25 0.80 3 0.992 125 0.80 4 0.9984 625

slide-28
SLIDE 28

Analysis Can Be More Detailed

  • Many different system states
  • Time varying failure/repair rates
  • Malicious failures
  • ...

28

slide-29
SLIDE 29

In Practice

  • Backup your photos!!
  • Use different formats and media
  • Check periodically & repair
  • Migrate to new media

29

slide-30
SLIDE 30

End