TSM 6.2 Implementation and Administration Training Day 4


On the fourth day of training, I started to feel interested to learn more about TSM.

Unit 9: Backup-archive client functions

Lesson 1: Backup concepts

Storage area networks and local area networks

SAN – LAN Free

VE does not support LAN Free

Backup and restore review

restore directory structure first, then restore the files

Progressive incremental backup

standard method of backup used by TSM

Lesson 2: Backup types

Incremental and selective backups

Incremental Backup:
– Incremental (complete)
– Incremental by Date
– Incremental (without Journal)

Always Backups (selective or full)

Other backup types

Journal-based backup
Image backup
Logical volume backup
NAS file system backup (NDMP)

Journal-base backup

Windows client only/ Journal engine service running

Backup sets

A backup set is a group of active versions of files, copied onto portable media
Backup set can be restored on the client locally without TSM server available

Lesson 3: Performing client backups

Using Backup-Archive client

Lesson 4: Restoring files

Restore overview

Restore process priority 1 (highest), migration process priority 5 (lowest)

By default, files are restored to the original place

point-in-time restore

equal to or before the point in time

Restartable restore

Lesson 5: Backup and restore with the command line

Using the command line for backups

dsmc action keyword –option=value filespec
dsmc i /home/project/2009/lab24*
dsmc sel d:\project\*
dsmc sel –subdir=yes d:\project\*
query filespace

Restoring backed up files using the dsmc restore command

dsmc restore c:\projects\lab.ppt

options:
– pick
– inactive
– latest
– ifnewer
– pitt
– pitd

Using the PRESERVEPATH restore option

Complete/ Partial (default) / None

Lesson 6: Archive and retrieve

Archive descriptions

default description Archive Date: mm/dd/yyyy

Lesson 7: Archive and retrieve command line

Using the archive/ retrieve command

dsmc archive c:\lab1\project\*.txt
dsmc retrieve c:\lab1\project\*.txt

Lesson 8: Command options for backup, archive, restore, and retrieve

SUBDIR
– FROMTIME
– TODATE
– FROMDATE
– TOTIME
– FROMNODE
– FROMOWNER
– PICK
– VIRTUALNODENAME

Archive and retrieve directories

– DIRONLY
– FILESONLY

Lesson 9: Additional backup types

Image backup for Windows

online or office, depending on Include.Image statement (Snapshot for online image backup/ Static for offline image backup)

Windows snapshot image backup

snapshotproviderfs option in the dsm.opt

Setting up Windows open file support

VSS / LVSA (logical volume snapshot agent)

Windows incremental image (date only) backup

Virtual backup and recovery

VMware: Full and Incremental
Hyper-V: Full

Unit 10: Protecting the database and storage pools

Lesson 1: TSM database and storage pool protection requirements

– Backup TSM database
– Have at least one copy of all storage pool date
– Considering using disaster recovery plan to facilitate recovery in case of disaster

Disaster Recovery Manager (DRM) functions

creates disaster recovery plan file
– manage off-site media
– maintains client information
– centralizes the disaster recovery process
– provides scripts to automate recovery

DR plan file

Command: prepare
Generate the DR plan file everyday and keep it offsite

Lesson 2: Backing up the database

Performing a full database backup

backup db devclass=your_tape_devc type=full

Performing a database snapshot backup

Snapshot backup (out-of-band) can be taken off-site. Full plus incremental backup series stays on-site for availability

Setting up for database backups

set dbrecovery dbback (if you do not use the command before the first database backup runs, the backup will fail)

Using the BACKUP DB command

backup db

Database backup-related commands

query db format=detail
query volhistory type=dbb
delete volhistory todate=today-7 type=dbbackup

Lesson 3: TSM database recovery

To restore TSM database, the database backup and volume history file (volhist.out) must be available

devconfig.out, archive log and dsmserv.opt are also helpful

Restoring the database

dsmserv format (if volumes are lost)
dsmserv restore db

Using point-in-time recovery

Database RESTORE command examples

DSMSERV RESTORE DB PREVIEW=No|Yes

Best practices

image

Lesson 4: Using active-data pools

Optimizing access to active version for fast restore

Defining and updating active-data pools

define stgpool pool_name device_class_name pooltype=acitvedatapool maxscrach=####
update stgpool pool_name device_class_name activedatapool=active-date_pool_name

Lesson 5: Protecting the storage pools

Storage pool backup and recovery

restore volume
restore stgpool

Backing up storage pools

Primary backup pool –> Copy pool (sequential only)

Defining a copy storage pool

define stgpool pool_name device_class_name pooltype=copy …

Backing up the storage pool hierarchy

backup stgpool primary_disk onsite
backup stgpool primary_tape onsite

Using simultaneous write

up to three copy pools and active-data pools

Handling off-site volumes

update volume volname access=offsite location=”vault”

Updating volumes for off-site

Setting the reclamation threshold of off-site volumes

Reclamation is a server process of consolidating files from several volumes onto one volume

query volume
update volume

Updating off-site volumes

query volume * access=offsite status=empty stg=OFF-SITE
update volume * access=readwrite location=”Back Home” wherestgpool=off-site whereaccess=offsite wherestatus=empty

Restoring storage pool files

restore from copy pools to damaged files/ damaged volumes/ damaged volumes within a storage pool

Restoring damaged primary storage pool files

detect the damaged files
restore stgpool <primary_pool> preview=yes

Maintaining the integrity of files

– Run audit volume with FIX=ACCESS if you find and repair the damage
– Change ACCESS=DESTROYED if the volume can not be repaired

Recovering from a media loss

‘RESTORE VOLUME poolname’ restore the volume with an access mode of DESTROYED, and damaged files on other volume

Using the RESTORE VOLUME command

RESTORE Volume volname COPYstgpool=copypool NEWstgpool=newprimarypool MAXPRocess=numprocesses (1) Preview=No|Yes Wait=No|Yes

THE RESTORE STORAGE POOL command

restore stgpool …

Backup and recovery tips

Backup each primary storage pool hierarchy to the same copy pool
– Consider using at least one copy pool for on-site recovery and one for disaster recovery
– Using administrative scheduling to automate storage pool backups
– Save volume history (VOLHIST.out), device configuration file (DEVCNFG.out), and output of system query command. Send off-site along with the DSMSERV.OPT option files.
– Use AC to create a script to: backup the primary storage pools and database, create a recovery plan file if using the DRM

Daily tasks to protect your data

backup primary storage pool to copy storage pool
– backup the database
– save volume history file, device configuration file and output of query system command
– move the above files to off-site
– if use DRM, run prepare command to generate disaster recovery plan and keep it off-site (Extended Edition)

The REUSEDLAY parameter

You should delay the reuse of any reclaimed volumes in copy storage pools for as long as you keep the oldest database backup

Daily administration cycle

image

Lesson 6: TSM maintenance plans

Use AC to create separate script for each TSM server

Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s