Session: I03 TSM is not just a black box Carolyn Sanders EDS May 19, 2008 01:30 p.m. 02:30 p.m. Platform: LUW 1
Little black box Humor If the "black box" flight recorder is never damaged during a plane crash, why isn't the whole airplane made out of that stuff? Black box" is a serious term with a specific meaning: a piece of hardware or software for which that if you input x it will always give output y but for which you have no knowledge of how the output is generated from the input. 2 2
Objectives 1. Verify your configuration of TSM for DB2 LUW 2. Monitor Backups and Archive logs within TSM 3. Determine the health of TSM 4. Perform Problem Determination 5. Verify your DB2 LUW recoverability from TSM 3 3
The question then becomes: how many boxes should you open and get to know the inner workings in order to be more effective? TSM 4 4
dsmadmc dsm.sys dsm.opt TSM API 5 5
What is API The DB2 LUW Interface for TSM communicates with the TSM server using the TSM API. 6 6
What is dsm.opt DB2 LUW Interface for TSM uses the client user options file (dsm.opt) who s location is defined in the userprofile DSMI_CONFIG. 7 7
What is dsm.sys DB2 LUW Interface for TSM uses client system options file (dsm.sys) located in the TSM API installation directory. 8 8
There are two dsm.sys ba/bin/dsm.sys ba/bin/dsm.sys 9 9
dsmadmc The administrative command-line client is a program that runs on a file server, workstation, or mainframe that allows administrators to control and monitor the server through administrative commands. You can start an administrative client session in console, mount, batch, or interactive mode by using the DSMADMC command. In each of these modes, you can specify certain options with commands. For details, see Using Administrative Client Options. You can redirect output to a file using redirection characters. To start an administrative client session in command line mode, enter this command on your workstation: dsmadmc -id=admin -password=admin To end an administrative command line client session by entering this command on your workstation: quit 10 10
11 11
12 12
dsmc Command Line Backup/Archive Client Interface 13 13
TSM Tables 14 14
15 15 tsm: ESITSM11>select tabschema, tabname from syscat.tabl TABSCHEMA TABNAME --------- ------------------ ACTLOG ADMINS ADMIN_SCHEDULES ARCHIVES AR_COPYGROUPS ASSOCIATIONS AUDITOCC BACKUPS BACKUPSETS BU_COPYGROUPS CLIENTOPTS CLIENT_SCHEDULES CLOPTSETS COLLOCGROUP CONTENTS DATAMOVERS DB DBBACKUPTRIGGER DBSPACETRIGGER DBVOLUMES DEVCLASSES DISKS DOMAINS DRIVES DRMCSTGPOOLS DRMEDIA DRMMACHINE DRMMACHINECHARS DRMMACHINENODE DRMMACHINERECINST DRMMACHINERECMEDIA DRMPSTGPOOLS DRMRECOVERYMEDIA
To Display TSM node detail information $DSMI_CONFIG: Find TSM stanza name in $DSMI_DIR/dsm.sys Servername 16 16
To Display TSM node detail information in $DSMI_DIR/dsm.sys : Find TSM node used by TSM stanza for DB2 SErvername Node 17 17
To Display TSM node detail information $DSMI_CONFIG windows: Find DSMI_CONFIG in environment variables dsm.opt 18 18
To Display TSM node detail information in dsm.opt windows: Find TSM node dsm.opt Node 19 19
To determine if you have a backup running dsmadmc Node = Client Name 20 20
To Display TSM node detail information $DSMI_CONFIG LANFREE: Find TSM stanza name in $DSMI_DIR/dsm.sys Servername 21 21
To Display TSM node detail information $DSMI_DIR/dsm.sys LANFREE: Find TSM node used by TSM stanza for DB2 Servername Node 22 22
To determine if you have a LANFREE backup running dsmadmc <hostname>_sta 23 23
To determine if you have a backup running LANFREE dsmadmc <hostname>_sta 24 24
To determine if you have a backup running LANFREE dsmadmc X Node userid 25 25
To determine TSM drives are online dsmadmc 26 26
To determine if TSM path is online dsmadmc 27 27
To view TSM activity log dsmadmc Node 28 28
Display TSM node detail information dsmadmc Node Policy 29 29
Display TSM node detail information dsmadmc Node Policy 30 30
Display TSM node detail information dsmadmc: Find the Number of TSM mount points allowed 31 31
Display TSM node detail information dsmadmc: Backup Delete Allowed should be set to yes 32 32
Determine Retention Period set in TSM for DB2 dsmadmc : Find management class for the policy domain Policy Mgmtclass Name 33 33
Determine Retention Period set in TSM for DB2 backups dsmadmc: Display retention for the policy domain and management class Policy + Mgmtclass Name 34 34
Determine Retention Period set in TSM for DB2 backups: Recommend settings for DB2 Backups The following retention settings should be used for the management class that will be bound to the DB2 backups: VEREXISTS=1 Keeps only one version of the backup file as the name of the backup is unique. (There will not be a newer version of the backup image with the same name). VERDELETED=0 If the backup file has been deleted (via db2adutl), then Tivoli Storage Manager should not keep an inactive version of this file. RETEXTRA=0 (the same value as RETONLY) RETEXTRA parameter will never be used as you will never have more than one version of the backup file. To prevent confusion set this parameter to the same value as RETONLY. RETONLY=0 When a backup image file becomes inactive it will be purged from the Tivoli Storage Manager server at the next expiration. 35 35
Determine Retention Period set in TSM for DB2 archive logs dsmadmc Display retention for the policy domain, management class, and type archive Policy Mgmtclass Name 36 36
Determine Retention Period set in TSM for DB2 archive logs You should set the retention for the archive copy group to nolimit. RETVER: NOLIMIT 37 37
Determine the number of TSM scratch tapes dsmadmc libvolumes 38 38
Validate TSM include exclude list <TSMPATH>/ba/bin/dsm.sys Find TSM Node name for OS backups Find the TSM include exclude file SErvername Inclexcl 39 39
Validate TSM include exclude list Display the TSM include exclude file rule 40 40
Validate TSM include exclude list dsmadmc Select the OS backups for the TSM node name and the owner is the instance id hostname + owner 41 41
Validate TSM include exclude list dsmadmc Database containers that should be excluded from the OS backup 42 42
Validate TSM include exclude list dsmadmc Database files are in the exclude list that are not being excluded rule 43 43
Validate offsite copies of the backups dsmadmc Display DB2 backups in TSM Node + Filespace_name 44 Oracle: dsmadmc -se=esitsm22 -commadelimited -id=$id -pass=$pass "select * from backups where node_name = 'DAL1S07H_DSS_DB_SQL' and filespace_name like '/BACKTRACK%' >> $PATH_OUT/dra/tsm_backups.txt" 44
Validate offsite copies of the backups dsmadmc Find the volser of the onsite DB2 backups in TSM Onsite volser 45 45
Validate offsite copies of the backups dsmadmc Run the TSM bfo using the volser number Onsite volser 46 46
Validate offsite copies of the backups dsmadmc Find the volser of the offsite copy of the DB2 backups in TSM Onsite volser Offsite volser 47 47
Validate offsite copies of the archive logs dsmadmc Display DB2 archive logs in TSM Node + Filespace_name 48 48
Validate offsite copies of the archive logs dsmadmc Find the volser of the onsite DB2 archive logs in TSM Onsite volser 49 49
Validate offsite copies of the archive logs dsmadmc Run the TSM bfo using the volser number Onsite volser 50 50
Validate offsite copies of the archive logs dsmadmc Find the volser of the offsite copy of the DB2 archive logs in TSM Onsite volser 51 51
Display size of your Backup dsmadmc Node 52 52
Display size of your OS Backup DSMADMC Filename 53 53
Session I03 TSM is Not Just a Black Box Carolyn Sanders EDS carolyn.sanders@eds.com 54 54