Manual administración VTL

Embed Size (px)

DESCRIPTION

Manual para la creación de librería virtuales, en plataformas TSM, Netbackup.

Citation preview

TSM Lab

Task 4: Backup Application Server Scan for New DevicesThis t ask requires check for new hardware devices from t he backup server. The newly configured Virt ual devices can now be discovered under Medium Changers and Tape drives. St e p 1 Act ion From t he Device Manager re- scan for devices:

Aft er t he scan com plet es you should see t hat t here are new ent ries under Medium Changers and Tape Drives I f t he Medium Changer shows up as I BM Tivoli St orage Manager for Medium Changers , t he follow st eps are not required. They are here for reference. Not e: I f t he t ape drives are not ident ified correct ly by Windows an addit ional device driver m ay need t o be inst alled.

15

NearStore VTL Academy St e p 2 Act ion I f not already updat ed, updat e t he driver for t he Exabyt e EXB- 440 Medium Changer t o t he Tivoli St orage Manager driver by double- clicking t he Exabyt e EXB440 device. Select t he Driver Tab and click on Update Driver

3

I n t he Hardware Updat e Wizard window, select No, not this time and click

Next

16

TSM Lab

St e p 4

Act ion Select Install from a list or specific location (Advanced) and click Next

5

Select Dont search I will choose the driver to install and click

Next

17

NearStore VTL Academy

St e p 6

Act ion Select IBM Tivoli Storage Manager for Medium Changers and click

Next

7

Click on Continue Anyway and Finish t he driver inst allat ion

18

TSM Lab

St e p 8

Act ion Verify t hat I BM Tivoli St orage Manager for Medium Changers is now list ed under Medium Changers

NOTE: I f t here is an exclam at ion m ark on t he Medium Changer, t hat m eans t hat t he driver was not properly loaded. I n t his case, it is best t o disable Rem ovable St orage Manager Service.

19

NearStore VTL Academy

Task 5: Backup Application Server Configure and Initialize the TSM serverThis t ask will configure t he virt ual library in TSM and configure t he client t o be able t o backup dat a. St e p 1 Act ion Launch t he TSM Managem ent Console

Start All Programs Tivoli Storage Manager Management Console2 Select Standard Configuration in t he I nit ial Configurat ion Task List Window and click Start

3

Click Next in t he I nit ial Environm ent Configurat ion Wizard window

20

TSM Lab

St e p 4

Act ion Select Yes and click Next in t he I nit ial Configurat ion Preferences window

5

Click Next t o select Network (network connected clients)

6

Click Finish t o exit t he wizard

21

NearStore VTL Academy 7 Click Next in t he Perform ance Configurat ion Wizard window.

St e p 8

Act ion Click Next in t he TSM Perform ance Opt ions window t o select 2-49 client s and an even mix of small and large files

9

Click Finish aft er Perform ance Test is com plet e

22

TSM Lab 10 Click Next in t he Server I nit ializat ion Wizard window

11

Click Next in t he Server Key and Locat ion window

23

NearStore VTL Academy St e p 12 Updat e t he following param et ers: Act ion

Initial database volume size t o 513MB Initial recover log volume size t o 25MB

And click Next 13 Click Next in t he Server Service Logon Param et ers window

24

TSM Lab St e p 14 Act ion Not e or updat e t he TSM Server nam e and click Next in t he Server nam e and password window ( default user is adm in and default password is adm in ) . THE SERVER NAME WI LL BE NEEDED WHEN DEFI NI NG OBJECTS USI NG THE TSM COMMAND LI NE I NTERFACE.

Your TSM Server nam e ___________________ 15 16 Click Finish t o init ialize t he server

17 18

Cancel t he Device Configurat ion Wizard Devices will be added via t he com m and line Click No t o exit t he init ial configurat ion

25

NearStore VTL Academy St e p 19 Act ion Click Done t o exit t he I nit ial configurat ion window

26

TSM Lab

Task 6: Backup Application Server Configure Storage DeviceThis t ask will configure t he policy dom ain, client node, and backup schedule in TSM. St e p 1 Act ion I n t he St orage Managem ent / Tivoli St orage Manager window, browse t o: Tivoli Storage Manager (Windows local) TSM Device Driver Reports Device Information and t ake not e of t he TSM Nam es. Alt ernat ively, t he TSM Nam es can be found by running \Program Files\Tivoli\tsm\console\tsmdlst.exe from a Com m and prom pt window.

Medium Changer _________________ Tape Device1 ____________________ Tape Device2 ____________________ Tape Device3 ____________________ Tape Device4 ____________________ 2 Open t he C:\library_config file using Not epad. This is t he script t hat will be used t o creat e t he various obj ect s in t he TSM dat abase, so t hat t he TSM server can use t he virt ual library. The next few st eps explain what each com m and does. Also, please verify t hat values in t he script m at ch your environm ent . 3 The define library com m and will define t he library obj ect in t he TSM dat abase. This com m and will creat e a library in TSM nam ed VTL1 . The TSM library nam e does not need t o m at ch t he nam e of t he virt ual library configured int o t he NearSt ore VTL.

define library VTL1 libtype=scsi shared=yes

27

NearStore VTL Academy St e p 4 Act ion The define path com m and for t he library will allow t he TSM server t o access t he robot . ( Double- check device nam e for t he Medium Changer found in St ep 1 of Task 6 and t he TSM Server nam e found in St ep 14 of Task 5) .

define path ntrain2_server1 VTL1 srctype=server desttype=library device=lb0.0.0.2 online=yes5 The define drive com m and will define t he drive obj ect in t he TSM dat abase. Double- check t he elem ent address of t he first drive ( found in St ep 3 of Task 3) in t he define drive com m ands.

define drive VTL1 DRIVE0 element=0This com m and is repeat ed for each drive in t he library, subst it ut ing t he drive nam e and elem ent address. 6 The define path com m and for each of t he drives will allow t he TSM server t o access t he drives. ( Double- check t he device nam e for t he Tape Peripheral found in St ep 1 of Task 6 and t he TSM Server nam e found in St ep 14 of Task 5) .

define path ntrain2_server1 DRIVE0 srctype=server desttype=drive library=VTL1 device=mt0.1.0.2 online=yes

Com m and is repeat ed for each drive in t he library subst it ut ing t he drive nam e and elem ent address. 7 The define devclass com m and will define t he logical represent at ion of t he library in TSM. The mountlimit lim it s how m any drives can be m ount ed at one t im e. The mountretention is t he t im e in seconds t he server will wait t o unm ount a t ape from a drive when it is idle.

define devclass VTL1_CLASS devtype=LTO format=drive library=VTL1 mountlimit=drives mountretention=08 The define stgpool com m and defines a st orage pool of m edia t hat point s t o a device class. Client s will back up t heir dat a t o such a st orage pool. The reclaim param et er is opt ional wit h a default value of 60 . This is t he percent age of reclaim able space before reclam at ion will st art . For VTLs t his can be set t o 20 t o have 80% ut ilizat ion of t he space in t he VTL. I n t his exercise, we will set t he reclaim value t o 100 so t hat reclam at ion will only run when m anually invoked using t he reclaim stgpool com m and. The maxscratch param et er specifies how m any volum es can be t aken from t he scrat ch pool for t his st orage pool.

define stgpool VTL1_POOL VTL1_CLASS pooltype=primary maxscratch=40 reclaim=1009 The define domain com m and creat es a dom ain. Client s assigned t o t his new dom ain can be configured t o back up t heir dat a t o t he VTL. Usually, client s of sim ilar backup/ ret ent ion policies will be assigned t o t he sam e dom ain. Client s can only be assigned t o one dom ain.

define domain DOM1 backretention=30 archretention=365

28

TSM Lab St e p 10 Act ion The define policyset com m and defines a policy cont ainer for t he dom ain. Each dom ain m ust have a policyset .

define policyset DOM1 SET111 The define mgmtclass com m and defines where t o backup/ archive dat a as well as cont ains how m any versions t o keep ( in t he Copygroup definit ion) . Each policyset m ust have a m anagem ent class.

define mgmtclass DOM1 SET1 CLASS112 The define copygroup com m and defines a copygroup in t he m anagem ent class which st orage pool t he backup should go t o as well as how m any versions of a file t o keep. For an increm ent al backup copygroup t hat ret ains 3 versions of files:

define copygroup DOM1 SET1 CLASS1 destination=VTL1_POOL verexists=3 mode=modified13 The assign defmgmtclass com m and set s a m anagem ent class as t he default m anagem ent class in t he polcyset . Each policyset m ust have a default m anagem ent class.

assign defmgmtclass DOM1 SET1 CLASS114 Aft er m aking changes t o a policyset , t he policyset m ust be act ivat ed using t he activate policyset com m and

activate policset DOM1 SET115 16 I f changes were m ade t o t he C:\library_config script , save and close t he file. I n t he St orage Managem ent / Tivoli St orage Manager window, browse t o: Tivoli Storage Manager (Windows local) TSM Server1 Command Line

29

NearStore VTL Academy St e p 17 Act ion Right click Command Line and select Command Line Prompt t hen run t he m acro t o creat e t he library configurat ion: macro C:\library_config

Check t o m ake sure t hat t he highest ret urn code is 0 ( m eans all com m ands were successfully run) . I f t here is a com m and wit h an error, j ust re- run t hat com m and wit h t he correct param et ers ( as well as any com m ands t hat could not be run because a com m and failed) . 18 Close t he graphical Com m and Line Prom pt window and launch t he t ext based com m and line t ool.

C:\Program Files\Tivoli\TSM\server\tsmdiag\dsmadmcUsernam e = admin Password = admin

30

TSM Lab St e p 19 Act ion To label t he volum es in t he virt ual library, ent er t he following com m and:

label libvolume search=yes labelsource=barcode checkin=scratch

For exam ple:

label libvolume VTL1 search=yes labelsource=barcode checkin=scratch20 Run query process t o m onit or t he label process:

query process21 When no act ive processes are found, run query libvolume t o see t he volum es:

query libvolume

Task 7: Backup Application Server Configure Client Node and Backup Policy & ScheduleThis t ask will configure t he client node in TSM. St e p 1 Act ion The client node needs t o be regist ered in TSM. Using t he Client Node Configurat ion wizard, t he client node will be added t o t he Dom ain you creat ed

I n t he St orage Managem ent / Tivoli St orage Manager window, browse t o: Tivoli Storage Manager -> (Windows local) -> TSM Server1 -> Wizards and double- click Client Node Configuration 2 Click Next in t he Client Node Configurat ion Wizard window

31

NearStore VTL Academy St e p 3 Act ion Click Next in t he TSM Login I nform at ion window

4

Click on Add in t he Define TSM client node and policy window

32

TSM Lab St e p 5 Act ion 1. Select t he localhost ( ) as t he Node Nam e 2. Ent er a password 3. Select t he Dom ain you creat ed from t he Policy dom ain nam e drop down list 4. Verify t hat Node dat a will be sent t o t he st orage pool you creat ed

6

Click Next

7 8

Click No since we will not regist er any m ore nodes at t his t im e Click Finish t o exit t he Client Node Configurat ion Wizard

33

NearStore VTL Academy

Task 8: Backup Application Server Perform a manual backup to NearStore VTLThis t ask will backup dat a set s from t he backup applicat ion server t o t he NearSt ore VTL using t he Backup/ Archive GUI St e p 1 Act ion Use t he HPCreat eDat a program t o creat e 5GB of t est dat a t o be backed up.1. 2. 3. 4.

From t he deskt op, open My Com put er . Open t he Test Dat a ( F: ) drive. Double- click on t he HPCreateData.exe program icon. Change t he following param et ers: - Change t he Pat h param et er t o F:\TestData - Change File Size from 64KB t o 128MB - Change t he Num ber Of Files Per Direct ory t o 150 Click on t he Start but t on

5.

6.

Click on t he Exit but t on.

2

Bring up t he Backup/ Archive GUI

(Start Programs Tivoli Storage Manager Backup-Archive GUI)3 Ent er t he password specified in St ep 5 of Task 7

34

TSM Lab St e p 4 Click on Backup Act ion

5

I n t he Backup window select t he F:\TestData direct ory t o backup, select Incremental (complete) from t he drop down list and click on Backup

35

NearStore VTL Academy St e p 6 The Backup should have com plet ed Act ion

7

Open a DOS com m and prom pt and run t he F: \ updat e.cm d script t o updat e t he ACL of all of t he files in t hat dat aset . This is t o sim ulat e dat a has changed.

F:\update.cmd8 Go back t o t he TSM com m and line window and ent er t he following com m and:

query volumeNot e which t apes were ut ilized. 9 10 Repeat st eps 5- 8 unt il 4 backups have been run. Run t he expirat ion process ( t o expire t he versions t hat are no longer needed) . Because we specified t o keep 3 versions ( in t he copygroup set t ing verexist s) , t he oldest version should be expired.

expire inventory11 Run t he query volume com m and again and not ice t hat now one of t he t apes is less t han 50% ut ilized.

query volume12 Run t he reclaim stgpool com m and t o m anually st art t he reclam at ion process:

reclaim stgpool VTL1_POOL threshold=20

Threshold= 20 m eans t o reclaim t apes wit h 20% or m ore reclaim able space 13 Go t o t he VTL GUI t o see t hat TSM is reading dat a from one t ape and copying it t o anot her Daily Tasks Monit oring St at ist ics 14 Run t he following com m and t o see t hat t he t ape t hat was reclaim ed is now in t he scrat ch pool.

query libvolume

36

TSM Lab

If no one in your group is going to repeat the TSM lab exercise then skip this section.

Cleanup Procedure TSM Cleanup and Load Default ConfigurationThis procedure will ensure t hat t he next pass t hrough t he lab will have a clean st art . I f no one in your group is going t o repeat t he TSM lab exercise t hen skip t his sect ion.

CAUTION: ENSURE THAT THERE ARE NO BACKUP JOBS (OR EXPORTS) RUNNING when running thecleanup process. St e p 1 Act ion Go t o t he St orage Managem ent / Tivoli St orage Manager window, right - click:

Tivoli Storage Manager > (Windows local) TSM Server1 and select Delete Server Instance

2

Click Select All t o select all com ponent s for delet ion, t hen click Delete

37

NearStore VTL Academy 3 Click Yes in t he delet ion confirm at ion window and t hen click Done

St e p 4

Act ion I nit ialize our VTL by ut ilizing Configurat ion Managem ent (Configuration Tasks > Miscellaneous > Configuration Management)

38

TSM Lab

St e p 5 a. Select Load Configuration

Act ion

b. Select Load Configuration

39

NearStore VTL Academy

St e p 6

Act ion 1. Select Apply t o respond t o t he pop up quest ion.

2. The following is t hen displayed

7

Close t he TSM Managem ent Console, t hen scan for changes from Device Manager

8

Allow anot her person t o have t he hands on VTL experience, repeat ing Part 1 of t he lab ( st art ing on st ep 1, page 7)

40