11 manage media and image

82
1 VERITAS NetBackup 6.x Administration (Fundamentals I) Lesson 11: Managing Media and Images

Upload: heotop

Post on 18-Nov-2014

115 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: 11 Manage Media and Image

1

VERITAS NetBackup 6.x Administration (Fundamentals I)

Lesson 11: Managing Media and Images

Page 2: 11 Manage Media and Image

2

Lesson Introduction

Fundamentals I Course Introduction Lesson 1: NetBackup Essentials Lesson 2: Installing and Configuring

NetBackup Lesson 3: Configuring Devices Lesson 4: Configuring Storage Units Lesson 5: Configuring Media Lesson 6: Configuring Policy Attributes Lesson 7: Scheduling Policies Lesson 8: Client Lists and Backup Selections Lesson 9: Managing and Monitoring Backups Lesson 10: Performing Restores Lesson 11: Managing Media and Images Lesson 12: Performing Catalog Backups and

RestoresFundamentals II

Page 3: 11 Manage Media and Image

3

Lesson Topics and ObjectivesTopic After completing this lesson, you will be able

to:

Topic 1: Understanding Media Describe how NetBackup selects which media to use.

Explain how NetBackup handles and reports media problems.

Override the media and volume status.

Topic 2: Verifying Backup Images Verify backup images using both the GUI and the command-line interface.

Topic 3: Duplicating Backup Images

Create multiple copies of backup images.

Topic 4: Expiring Backup Images Expire backup images.

Topic 5: Importing Backup Images

Promote a backup copy to be the primary copy. Import backups that have expired or that were

created on another system.

Topic 6: Troubleshooting Media-Related Issues

Troubleshoot media-related issues.

Page 4: 11 Manage Media and Image

4

Topic 1: Understanding Media

After completing this topic, you will be able to: Describe how NetBackup selects

which media to use. Explain how NetBackup handles

and reports media problems. Override the media and volume

status.

Page 5: 11 Manage Media and Image

5

Media States

Media State Reason for the State

Available The tape is currently unassigned.

Active Current, unexpired images

Full Capacity reached

Suspended Exceeded max mounts, exceeded expiration date, or media/hardware errors

Frozen Non-NetBackup data format, NetBackup catalog format, or more than three errors in 12 hours using the same tape

Imported Contains active imported images

Page 6: 11 Manage Media and Image

6

How NetBackup Selects Volumes

Search the EMM database for a volume

from that pool.

Volume found?

Start a backup to a specified pool.

Load the media and perform the backup.

Yes

No

Yes

No

Is a volume

in the scratch pool available?

Assign a scratch tape to the required

volume pool.

Backup fails, error 96

Page 7: 11 Manage Media and Image

7

Determining Media and Volume Status

Use the available_media script. Available media

Use the Media interface. Use NetBackup Management

Reports.

The NetBackup Administration Console

Use the bpadm command utility (UNIX only).

The text-menu interface

Use media commands: bpmedialist, bpimmedia, bperror, bpimagelist, nbemmcmd, and vmquery.

The command line

Page 8: 11 Manage Media and Image

8

The available_media Script (UNIX)

Page 9: 11 Manage Media and Image

9

Assigned and Unassigned Media (UNIX)

Page 10: 11 Manage Media and Image

10

Media Reports (UNIX)

Page 11: 11 Manage Media and Image

11

The Media Summary Report (UNIX)

Page 12: 11 Manage Media and Image

12

bpadm (UNIX Only)

1

Page 13: 11 Manage Media and Image

13

The available_media Script (Windows)

Page 14: 11 Manage Media and Image

14

Assigned and Unassigned Media (Windows)

Page 15: 11 Manage Media and Image

15

Media Reports (Windows)

Page 16: 11 Manage Media and Image

16

The Media Summary Report (Windows)

Page 17: 11 Manage Media and Image

17

Overriding Media State

Media State How to Override the State

Full bpexpdate –m media_id –d date

Suspended bpmedia –m media_id –unsuspend

Frozen bpmedia –m media_id –unfreeze Check the Allow media overwrite

parameter in the Media host properties. bplabel –m media_id ActionsLong/Quick Erase

Imported bpexpdate –m media_id –d date

Active bpexpdate –m media_id –d date

Page 18: 11 Manage Media and Image

18

Topic 2: Verifying Backup Images

After completing this topic, you will be able to verify backup images using both the GUI and the command-line interface.

Page 19: 11 Manage Media and Image

19

Backup Image ReviewAn image is a collection of all backup data from a client into a

single stream during a particular backup session written to tape, optical disk, or disk.

data stream

Client’sBackup

Data

GNU tar image

written to media

Page 20: 11 Manage Media and Image

20

The NetBackup Verification Process

Do you lie awake at night wondering if you can read your backups?

Backup header contents Compared to Metadata

recorded in the Image catalog

Read each block in the media image

Page 21: 11 Manage Media and Image

21

The Images on Media Report (UNIX)

Page 22: 11 Manage Media and Image

22

The bpimmedia -spangroups Command (UNIX)

Page 23: 11 Manage Media and Image

23

The Catalog Utility (UNIX)

Page 24: 11 Manage Media and Image

24

Verifying Backup Images Using the GUI (UNIX)

Page 25: 11 Manage Media and Image

25

Confirming the Verify Results (UNIX)

Page 26: 11 Manage Media and Image

26

The Images on Media Report (Windows)

Page 27: 11 Manage Media and Image

27

The bpimmedia -spangroups Command (Windows)

Page 28: 11 Manage Media and Image

28

The Catalog Utility (Windows)

Page 29: 11 Manage Media and Image

29

Verifying Backup Images Using the GUI (Windows)

Page 30: 11 Manage Media and Image

30

Confirming the Verify Results (Windows)

Page 31: 11 Manage Media and Image

31

Topic 3: Duplicating Backup Images

After completing this topic, you will be able to create multiple copies of backup images.

Page 32: 11 Manage Media and Image

32

What You Can Do with Duplication

Duplication is not possible:– While the backup is being

created

– When the backup has expired

– By using NetBackup to schedule duplications automatically (except by using Vault)

– For offline NetBackup catalogs

– Nonmultiplexed to multiplexed backups

It is possible to duplicate backups from:– One storage unit to another

– One media density to another

– One server to another

– Multiplex to nonmultiplex format

– Multiplex format; retain the multiplex format on the duplicate

Page 33: 11 Manage Media and Image

33

Setting Maximum Backup Copies Globally (UNIX) The number of copies is limited by the Maximum

backup copies global attribute.

Page 34: 11 Manage Media and Image

34

Duplicating Images Using the GUI (UNIX)

Page 35: 11 Manage Media and Image

35

Setting Duplication Variables (UNIX)

Page 36: 11 Manage Media and Image

36

Promoting a Copy to a Primary Copy (UNIX)

bpchangeprimary

bpduplicate –npc pcopy –backupid bid

Page 37: 11 Manage Media and Image

37

Setting Maximum Backup Copies Globally (Windows) The number of copies is limited by the

Maximum backup copies global attribute.

Page 38: 11 Manage Media and Image

38

Duplicating Images Using the GUI (Windows)

Page 39: 11 Manage Media and Image

39

Setting Duplication Variables (Windows)

Page 40: 11 Manage Media and Image

40

Promoting a Copy to a Primary Copy (Windows)

bpchangeprimary

bpduplicate –npc pcopy –backupid bid

Page 41: 11 Manage Media and Image

41

Topic 4: Expiring Backup Images

After completing this topic, you will be able to expire backup images.

Page 42: 11 Manage Media and Image

42

Volume Expiration vs. Image Retention

Media Manager function How long you want to use the media

Volume expiration

NetBackup function How long the image is available for

restoresImage retention

The image retention period is shorter than volume expiration (generally).

A volume is automatically recycled many times during its lifetime.

Volume expiration vs. image retention

Page 43: 11 Manage Media and Image

43

Volume Expiration (UNIX)

Page 44: 11 Manage Media and Image

44

Expiring a Backup Image (UNIX)

bpexpdate

Page 45: 11 Manage Media and Image

45

Volume Expiration (Windows)

Page 46: 11 Manage Media and Image

46

Expiring a Backup Image (Windows)

bpexpdate

Page 47: 11 Manage Media and Image

47

Topic 5: Importing Backup Images

After completing this topic, you will be able to: Promote a backup copy to be the

primary copy. Import backups that have expired

or that were created on another system.

Page 48: 11 Manage Media and Image

48

Importing Images

NBU can importbackups that: Have expired Were written by

another NBU server Were written by BE

7.0 through 9.1

What can be imported?

Two-phase process: Phase I: Generate a

list of images. Phase II: Import

selected images.

How to import images?

Page 49: 11 Manage Media and Image

49

Phase I: Initiating the Import (UNIX)

Page 50: 11 Manage Media and Image

50

Generating a List of Images (UNIX)

Page 51: 11 Manage Media and Image

51

Phase II: Searching for Imported Images (UNIX)

1

Page 52: 11 Manage Media and Image

52

Importing the Selected Image (UNIX)

Page 53: 11 Manage Media and Image

53

Confirming the Import Results (UNIX)

bpimport

Page 54: 11 Manage Media and Image

54

Phase I: Initiating the Import (Windows)

Page 55: 11 Manage Media and Image

55

Generating a List of Images (Windows)

Page 56: 11 Manage Media and Image

56

Phase II: Searching for Imported Images (Windows)

bpimport1

Page 57: 11 Manage Media and Image

57

Importing the Selected Image (Windows)

Page 58: 11 Manage Media and Image

58

Confirming the Import Results (Windows)

Page 59: 11 Manage Media and Image

59

Topic 6: Troubleshooting Media-Related Issues

After completing this topic, you will be able to troubleshoot media-related issues.

Page 60: 11 Manage Media and Image

60

Logical Media Problems

Use status codes, the Media Logs report, and the bptm log file.

Isolate media problems

Suspended, frozen, and full volumesCommon media problems

NBU code 84: Media write error MM code 94: Volume is not in the

specified pool NBU code 96: Unable to allocate

new media

Common media-related status codes

Page 61: 11 Manage Media and Image

61

Physical Media Problems

Unreadable bar code labels Stretched, jammed, or broken tapes Erasure from exposure to strong

electrical fields

Common physical problems

Data center fire Flood Other disaster

Destruction of media

Make a physical copy of every volume.

Preventing physical problems

Page 62: 11 Manage Media and Image

62

What Did You Learn?

You are about to be asked a series of questions related to the current lesson.

Read and try to answer each question.

Click “Answer” at the bottom of the slide to view the correct answer.

Page 63: 11 Manage Media and Image

63

When Media Manager receives a backup request, it searches its ______ for an available volume from that volume pool.

A. NOM database

B. EMM database

C. Volume pool database

D. Catalog database

Answer

Page 64: 11 Manage Media and Image

64

When Media Manager receives a backup request, it searches its ______ for an available volume from that volume pool.

A. NOM database

B. EMM database

C. Volume pool database

D. Catalog database

The correct answer is B.

Next >>

Page 65: 11 Manage Media and Image

65

A _______ media state is set when end of media (EOM) is encountered during a backup or archive.

A. Active

B. Expired

C. Full

D. Unavailable

Answer

Page 66: 11 Manage Media and Image

66

The correct answer is C.

Next >>

A _______ media state is set when end of media (EOM) is encountered during a backup or archive.

A. Active

B. Expired

C. Full

D. Unavailable

Page 67: 11 Manage Media and Image

67

If a volume is suspended, the reason is logged in the ______report.

A. Problems

B. Images on Media

C. Media Summary

D. Errors

Answer

Page 68: 11 Manage Media and Image

68

If a volume is suspended, the reason is logged in the ______report.

A. Problems

B. Images on Media

C. Media Summary

D. Errors

The correct answer is A.

Next >>

Page 69: 11 Manage Media and Image

69

Which media state indicates that no active backup images are currently associated with this tape?

A. Active

B. Available

C. Full

D. Suspended

Answer

Page 70: 11 Manage Media and Image

70

The correct answer is B.

Next >>

Which media state indicates that no active backup images are currently associated with this tape?

A. Active

B. Available

C. Full

D. Suspended

Page 71: 11 Manage Media and Image

71

Information about each image (metadata) is stored in the EMM database on the master server.

A. True

B. False

Answer

Page 72: 11 Manage Media and Image

72

Information about each image (metadata) is stored in the EMM database on the master server.

A. True

B. False

The correct answer is B.

Next >>

Page 73: 11 Manage Media and Image

73

NetBackup can duplicate backups _______________.

A. For offline NetBackup catalogs

B. While the backup is being created

C. From one storage unit to another

D. When the backup has expired

Answer

Page 74: 11 Manage Media and Image

74

The correct answer is C.

Next >>

NetBackup can duplicate backups _______________.

A. For offline NetBackup catalogs

B. While the backup is being created

C. From one storage unit to another

D. When the backup has expired

Page 75: 11 Manage Media and Image

75

Volume expiration and image expiration are the same.

A. True

B. False

Answer

Page 76: 11 Manage Media and Image

76

Volume expiration and image expiration are the same.

A. True

B. False

The correct answer is B.

Next >>

Page 77: 11 Manage Media and Image

77

Which report is used to find media errors or messages that are recorded in the NetBackup error catalog?

A. Images-on-Media

B. Media Written

C. Media Contents

D. All Log Entries

Answer

Page 78: 11 Manage Media and Image

78

The correct answer is D.

Next >>

Which report is used to find media errors or messages that are recorded in the NetBackup error catalog?

A. Images-on-Media

B. Media Written

C. Media Contents

D. All Log Entries

Page 79: 11 Manage Media and Image

79

Use the _______ command to expire a backup image.

A. bpexpdate

B. vmexpdate

C. vmexpire

D. bpexpire

Answer

Page 80: 11 Manage Media and Image

80

Use the _______ command to expire a backup image.

A. bpexpdate

B. vmexpdate

C. vmexpire

D. bpexpire

The correct answer is A.

Next >>

Page 81: 11 Manage Media and Image

81

Lesson Summary Key Points

– You now know how NetBackup works with media.– You also know how to monitor, manage, troubleshoot,

and control media within your backup environment. Reference Materials

– NetBackup 6.x System Administrator's Guide, Volume I and NetBackup 6.x System Administrator's Guide, Volume II

– NetBackup 6.x Media Manager System Administrator’s Guide

– NetBackup 6.x Commands– NetBackup 6.x Troubleshooting Guide– http://support.veritas.com

Page 82: 11 Manage Media and Image

82

End of Presentation