分类: 服务器与存储
2012-01-06 22:08:34
使用TSM进行系统集中备份后,对于TSM服务器单点故障的防范就显得更为重要。通常情况下,没有TSM,仅有磁带是无法进行数据恢复的。
考虑到上述问题以及灾备建设的需要,打算采用以下的备份策略对TSM DB进行备份并离线异地存储。
策略描述和场景假设,首先计划每天对TSM DB进行全备份,每周进行循环。这样总共需要使用7盘磁带进行备份。新的周期开始后,按照时间顺序重新使用磁带。
1> 每天对TSM DB进行全备份,备份完成后将磁带check out异地保存。
tsm: TK>backup db devclass=3584dcl type=full
ANR2280I Full database backup started as process 134.
ANS8003I Process number 134 started.
此时,TSM后台会自动抓取一盘scratch的磁带进行TSM DB的备份。并在活动日志中进行相应记录
ANR2017I Administrator ADMIN issued command: BACKUP DB devclass=3584dcl type=full
ANR0984I Process 134 for DATABASE BACKUP started in the BACKGROUND at 14:08:17.
ANR2280I Full database backup started as process 134.
ANR8337I LTO volume ZY9476L3 mounted in drive 3584DRV9 (/dev/rmt9).
ANR0513I Process 134 opened output volume ZY9476L3.
ANR1360I Output volume ZY9476L3 opened (sequence number 1).
ANR4554I Backed up 508672 of 1602410 database pages.
ANR4554I Backed up 1014336 of 1602410 database pages.
ANR4554I Backed up 1520384 of 1602410 database pages.
ANR1361I Output volume ZY9476L3 closed.
ANR0515I Process 134 closed volume ZY9476L3.
ANR4502W No files have been defined for automatically storing sequential volume history information.
ANR4550I Full database backup (process 134) complete, 1602410 pages copied.
ANR0985I Process 134 for DATABASE BACKUP running in the BACKGROUND completed with completion state SUCCESS at 14:10:28.
ANR8336I Verifying label of LTO volume ZY9476L3 in drive 3584DRV9 (/dev/rmt9).
2> 新周期开始的时,需要对原有磁带进行进行回收利用。
首先定位需要被回收的磁带信息,并在卷历史信息中予以删除。
tsm: TK>query volhistory type=dbb
Date/Time: 06/05/08 13:37:32
Volume Type: BACKUPFULL
Backup Series: 3
Backup Operation: 0
Volume Seq: 1
Device Class: 3584DCL
Volume Name: ZY9399L3
Volume Location:
Command:
Date/Time: 06/11/08 11:06:46
Volume Type: BACKUPFULL
Backup Series: 4
Backup Operation: 0
Volume Seq: 1
Device Class: 3584DCL
Volume Name: ZY9391L3
Volume Location:
Command:
Date/Time: 06/12/08 15:21:02
more... (
查询数据是按时间排序的,接下来要做的就是处理第一条查询记录。相关重要信息有barcode和datime
Volume Name: ZY9399L3,以及相应的操作的Date/Time: 06/05/08 13:37:32
在系统中也查询到相应的信息(操作前需要将磁带check in到带库中)
tsm: TK>query libvolume 3584lib ZY9399L3
Library Name Volume Name Status Owner Last Use Home Device
Element Type
------------ ----------- ---------- ---------- --------- ------- ------
3584LIB ZY9399L3 Private TK DbBackup 1,052 LTO
其中DbBackup表示磁带上存储的是TSM DB
tsm: TK>delete volhistory todate=06/05/2008 totime=13:37:32 type=dbbackup
Do you wish to proceed? (Yes (Y)/No (N)) y
ANR2467I DELETE VOLHISTORY: 1 sequential volume history entries were
successfully deleted.
再次查询相关信息时,系统会显示相应的卷的状态已经被已经置为scratch。
tsm: TK>query libvolume 3584lib ZY9399L3
Library Name Volume Name Status Owner Last Use Home Device
Element Type
------------ ----------- ---------- ---------- --------- ------- ------
3584LIB ZY9399L3 Scratch 1,052 LTO
接下来的操作就跟往常一样了。如果仍希望继续使用上述磁带进行备份,而不是系统自动选择scratch磁带的话,需要在命令中使用volumenames参数,指定卷名称。