如题所述
å®è£
好软件åï¼éè¦åå«å¯¹ TSM server è¿è¡é
ç½®ã
ä½¿ç¨ TSM 对 DB2 è¿è¡å¤ä»½ï¼å¿ 须对 DB2 å¤ä»½æ°æ®çä¿åçç¥ä»¥åä¿åä½ç½®è¿è¡å®ä¹ãå æ¤ï¼éè¦å¨ TSM server
ä¸ï¼å¯¹ä»¥ä¸å 项è¿è¡é ç½®åå®ä¹ã
å®ä¹è®¾å¤ç±» (device class)
éè¦æ ¹æ®å¤ä»½æ°æ®åºç大å°åå¤ä»½ãè¿åé¢çæ¥éæ©æä¸ç§ç±»åç设å¤ç±»æ¥åå¨ DB2 çå¤ä»½æ°æ®åºãTSM server ä½¿ç¨ define devclass
æ¥å®ææ¤åè½ã
è¿éä½¿ç¨ FILE ç±»åç设å¤ç±»æ¥æ¨¡æç£å¸¦åå¨ DB2 å¤ä»½æ°æ®ãå ·ä½çå½ä»¤å¦ä¸ï¼
Define devclass filedevclass devtype=file directory=d:\tsmfiledata\db2backup
å¦æè¿è¡æåï¼åè¿åå¦ä¸ç»æï¼
ANR2203I Device class FILEDEVCLASS defined.
该å½ä»¤å®ä¹äºä¸ä¸ªæ°ç设å¤ç±»ï¼filedevclassï¼å®çç®å½æå d:\tsmfiledata\db2backupã
å®ä¹åå¨æ± (storage pool) ååå¨å· (volume)
åå¨æ± æ¯ä¸ä¸ªé»è¾æ¦å¿µï¼å®è¡¨ç¤ºäºå¤ä»½ / å½æ¡£æ°æ®çå®é åå¨è®¾å¤ï¼æ¯ä¸ä¸ªåå¨æ± é½å¯¹åºäºä¸ä¸ªç¹å®ç设å¤ç±»ãTSM server ä½¿ç¨ define
stgpool æ¥å®ææ¤åè½ã
ä¸é¢å®ä¹ä¸ä¸ªåå¨æ± ç¨æ¥è¡¨ç¤º DB2 å¤ä»½æ°æ®çå®é åå¨ä½ç½®ãå ·ä½çå½ä»¤å¦ä¸ï¼
Define stgpool db2filepool filedevclass maxscratch=100
å¦æè¿è¡æåï¼åè¿åå¦ä¸ç»æï¼
ANR2200I Storage pool DB2FILEPOOL defined(device class FILEDEVCLASS)
ä»å®ä¹äºä¸ä¸ªæ°çåå¨æ± db2filepoolï¼å¹¶å ³èäºä¹åå®ä¹ç设å¤ç±» filedevclass.
对äºåå¨æ± ï¼å¦æ maxscratch>0, å表示å¯ä»¥ä½¿ç¨ scratch
ç±»åçåå¨å·ï¼ä¸éè¦ç¹å«å®ä¹ãå½ç¶ä¹å¯ä»¥ä½¿ç¨èªå·±å®ä¹çåå¨å·ï¼ä½¿ç¨çå½ä»¤æ¯ define volumeãå ·ä½ç¤ºä¾å¦ä¸ï¼
Define volume db2filepool d:\tsmfiledata\db2backup\volm1 format=100
å¦æè¿è¡æåï¼åè¿åå¦ä¸ç»æï¼
ANR2491I Volume Creation Process starting for D:\TSMFILEDATA\DB2BACKUP\VOLM1
ä¸è¿°å½ä»¤å¨ db2filepool ä¸å®ä¹äºä¸ä¸ªå¤§å°ä¸º 100M çåå¨å· ,
ä½ç½®æ¯ï¼D:\tsmfiledata\db2backup\volm1ã
å®ä¹èç¹
为äºè®© DB2 éè¿ TSM client API å¤ä»½æ°æ®ï¼å¿ é¡»å¨ TSM server ä¸ä¸ºå ¶æ³¨åä¸ä¸ªèç¹ï¼è®¾ç½®å®çèç¹ååå¯ç ãç¸å ³çå½ä»¤ä¸º
register nodeãå ·ä½ç¤ºä¾å¦ä¸ï¼
register node db2 password
å¨è¿éï¼db2 为æ°æ³¨åçèç¹ï¼é»è®¤æ³¨åå° STANDARD ççç¥åä¸ã
å®ä¹çç¥
å¨ TSM server ä¸ï¼éè¦ä¸º DB2 使ç¨çèç¹å®ä¹å ¶åå¨çç¥ã
å®ä¹çç¥å (policy domain)ï¼
TSM server ä½¿ç¨ define domain å½ä»¤æ¥å®ä¹çç¥åï¼å ·ä½ç¤ºä¾å¦ä¸ï¼
Define domain db2domain description=âpolicy domain for db2 backupâ
å¦æè¿è¡æåï¼åè¿åå¦ä¸ç»æï¼
ANR1500I Policy domain DB2DOMAIN defined
该å½ä»¤å®ä¹äºä¸ä¸ªå为 db2domain ççç¥åã
å®ä¹çç¥é (policy set)ï¼
TSM server ä½¿ç¨ define policyset å½ä»¤æ¥å®ä¹çç¥åï¼å ·ä½ç¤ºä¾å¦ä¸ï¼
Define policyset db2domain db2policyset description=âpolicy set for db2â
å¦æè¿è¡æåï¼åè¿åå¦ä¸ç»æï¼
ANR1510I Policy set DB2POLICYSET defined in policy domain DB2DOMAIN
该å½ä»¤å®ä¹äºä¸ä¸ªå为 db2policyset ççç¥éï¼å®æ¯å±äº db2domain è¿ä¸ªçç¥åä¸çã
å®ä¹ç®¡çç±» (management class):
TSM server ä½¿ç¨ define mgmtclass å½ä»¤æ¥å®ä¹çç¥åï¼å ·ä½ç¤ºä¾å¦ä¸ï¼
Define mgmtclass db2domain db2policyset db2mgmtclass
description=âmanagement class for db2â
å¦æè¿è¡æåï¼åè¿åå¦ä¸ç»æï¼
ANR1510I Management class DB2MGMTCLASS defined in
policy domain DB2DOMAIN, set DB2POLICYSET.
ä¸è¿°å½ä»¤å®ä¹äºç®¡çç±» db2mgmtclass, å®å±äºçç¥é db2policyset, çç¥å db2domainã
æå®ä¹ç管çç±»ä½ä¸ºè¯¥çç¥éä¸çé»è®¤ç®¡çç±»ã
TSM server ä½¿ç¨ assign defmgmtclass å½ä»¤æ设置æ个çç¥éä¸çé»è®¤ç®¡çç±»ãå ·ä½ç¤ºä¾å¦ä¸ï¼
Assign defmgmtclass db2domain db2policyset db2mgmtclass
å¦æè¿è¡æåï¼åè¿åå¦ä¸ç»æï¼
ANR1538I Default management class set to DB2MGMTCLASS
for policy domain DB2DOMAIN, set DB2POLICYSET.
该å½ä»¤æä¹åå®ä¹ç管çç±» db2mgmtclass 设置æçç¥é db2policyset çé»è®¤ç®¡çç±»ã
å®ä¹æ·è´ç» (copy group)
åå«ä¸ºå¤ä»½æ°æ®åå½æ¡£æ°æ®å®ä¹ copy group
å®ä¹æ·è´ç»çå½ä»¤æ¯ define copygroupï¼æ ¹æ®åæ° type ç设置ï¼å¯ä»¥åå«å®ä¹ backup copy group å archive
copy groupãå ·ä½çå½ä»¤å¦ä¸ï¼
å®ä¹å¤ä»½æ·è´ç»ï¼
Define copygroup db2domain db2policyset db2mgmtclass dest=db2filepool
å¦æè¿è¡æåï¼åè¿åå¦ä¸ç»æï¼
ANR1530I Backup copy group STANDARD defined in policy domain DB2DOMAIN,
set DB2POLICYSET, management class DB2MGMTCLASS.
å®ä¹å½æ¡£æ·è´ç»ï¼
Define copygroup db2domain db2policyset db2mgmtclass
type=archive dest=db2archivepool
å¦æè¿è¡æåï¼åè¿åå¦ä¸ç»æï¼
ANR1535I Archive copy group STANDARD defined in policyset
domain DB2DOMAIN,set DB2POILCYSET, management class DB2MGMTCLASS.
è¿ä¸¤ä¸ªå½ä»¤å¨ db2mgmtclass ä¸åå«å®ä¹äº backup copy group å archive copy group, 并ææ backup
å archive çæ°æ®åå«åå¨å¨ db2filepool å db2archivepool 两个åå¨æ± ä¸ãå ¶ä¸ db2archivepool åå¨æ± çå®ä¹ä¸
db2filepool çå®ä¹æ¯ç±»ä¼¼çï¼è¿éå°±ä¸åä»ç»ã
éªè¯å¹¶æ¿æ´»çç¥é
TSM server ä½¿ç¨ validate policyset 以å active policyset
å½ä»¤æ¥éªè¯å¹¶æ¿æ´»çç¥éãåªææ¿æ´»ä»¥åççç¥éï¼æä¼å¨åé¢çå¤ä»½ä¸ä½¿ç¨å°ãå ·ä½çå½ä»¤ç¤ºä¾å¦ä¸ï¼
éªè¯çç¥éï¼
Validate policyset db2domain db2policyset
å¦æè¿è¡æåï¼åè¿åå¦ä¸ç»æï¼
ANR1515I Policy set DB2POLICYSET validated in domain DB2DOMAIN(ready for activation)
æ¿æ´»çç¥éï¼
Activate policyset db2domain db2policyset
该å½ä»¤ä¼è¯¢é®å®¢æ·æ¯å¦ç¡®è®¤æ§è¡ï¼ç¡®è®¤åï¼å¦æè¿è¡æåï¼åè¿åå¦ä¸ç»æï¼
ANR1514I Policy set DB2POLICYSET activated in policy domain DB2DOMAIN
ä¸è¿°ä¿©å½ä»¤éªè¯å¹¶æ¿æ´»äºçç¥å db2domain ä¸ççç¥é db2policyset.
æ´æ° TSM èç¹ä¿¡æ¯
éè¦æ´æ°èç¹ä¿¡æ¯ï¼æ TSM èç¹æå®å°ä¸ºå ¶å®ä¹ççç¥åä¸ãTSM server ä½¿ç¨ update node æ¥å®ç°è¯¥åè½ãå ·ä½å½ä»¤å¦ä¸ï¼
Update node db2 domain=db2domain archdelete=yes backdelete=yes
å¦æè¿è¡æåï¼åè¿åå¦ä¸ç»æï¼
ANR2063I Node DB2 updated.
该å½ä»¤æèç¹ db2 å ³èå°äºçç¥å db2domain ä¸ï¼å¹¶ä¿®æ¹äºèç¹åæ° archdelete å backdelete ç设置ã
å°è¿éï¼TSM server 端çé 置就å®æäºãå ³äºè¿äº tsm server å½ä»¤ç详ç»ä»ç»ï¼å¯åèãIBM Tivoli Storage
Manager for AIX Administrator's Referenceãã
å页é¦
设置ç¯å¢åé
å¨å®è£ å® TSM backup-archive 客æ·ç«¯åï¼å®ä¼èªå¨å®è£ ç¸åºç TSM client
APIï¼ä¹åéè¦å¨ç³»ç»ç¯å¢åéä¸å®ä¹ä¸ä¸ªç¯å¢åéãåå«æ¯ï¼DSMI_CONFIG, DSMI_DIR å DSMI_LOGãä¹åç DB2
å¤ä»½ä¸ï¼å°ä¼ä½¿ç¨è¿ä¸ä¸ªåéã
DSMI_CONFIG
è¿ä¸ªç¯å¢åéè®¾ç½®äº TSM client API option file çä½ç½®ãå¦æå®è£ äº TSM backup-archive 客æ·ç«¯ï¼åå®å¨
WINDOWS å¹³å°ä¸çé»è®¤å¼ä¸ºâC:\Program
Files\Tivoli\TSM\baclient\dsm.optâãå¦ææå®å®è£ å°äºå ¶ä»ä½ç½®ï¼åå°è¯¥ç¯å¢åé设置æç¸åºçå¼ãå¦æ该ç®å½ä¸æ²¡æ dsm.opt
æ件ï¼å¯ä»¥èªå·±çæä¸ä¸ªãå ³äºå¦ä½é 置该æ件å¯åèãIBM Tivoli Storage Manager for Windows Backup-Archive
Clients Installation and User's Guideãã
DSMI_DIR
è¿ä¸ªç¯å¢åéè®¾ç½®äº TSM client API çå®è£ è·¯å¾ãå¨ WINDOWS å¹³å°ä¸ï¼é»è®¤çå®è£ è·¯å¾ä¸ºï¼âC:\Program
Files\Common Files\Tivoli\TSM\apiâã
éè¦æ³¨æçæ¯ï¼TSM V5.5 ä¹åçé»è®¤ä½ç½®æ¯âC:\Program Files\Tivoli\TSM\apiâãæ°çæ¬åçäºä¸äºååã
DSMI_LOG
该ç¯å¢åéè®¾ç½®äº TSM client API çé误æ¥å¿ dsierror.log æå¨çç®å½ä½ç½®ãå¦æå®è£ äº TSM backup-archive
客æ·ç«¯ï¼åå®å¨ WINDOWS å¹³å°ä¸çé»è®¤å¼ä¸ºï¼âC:\Program Files\Tivoli\TSM\baclientâãå¦æ没æï¼çæä¸ä¸ªå³å¯ã
å页é¦
对 TSM client è¿è¡é ç½®
é ç½®å® TSM server åï¼éè¦å¯¹ TSM client API è¿è¡é ç½®ãWindows 主è¦é ç½®çæ¯ dsm.opt æ件ãä¹å°±æ¯
DSMI_CONFIG ä¸ææåçæ件ãå¨è¿ä¸ªæ件ä¸ï¼éè¦ææ TSM client ä¸ TSM server çé讯æ¹å¼ï¼TSM client æ使ç¨ç
TSM èç¹åï¼ä»¥åå¯ç ç访é®æ¨¡å¼ãä¸é¢ï¼å¦å¾ 1 æ示ç»åºä¸ä¸ª dsm.opt çæ件示ä¾ãå¯ä»¥ç¨ææ¬ç¼è¾å¨å¯¹å ¶è¿è¡ç¼è¾ï¼
å¾ 1. dsm.opt çæ件示ä¾
å页é¦
çæ TSM èç¹çå å¯å¯ç
å¨åé¢çé ç½®é½å®æåï¼éè¦è°ç¨ dsmapipw.exe å¯æ§è¡æ件ï¼é»è®¤å®è£ DB2 çå®è£ ç®å½âc:\program
files\ibm\sqllib\adsm\âä¸ï¼å¯¹ä¹å设置ç TSM èç¹å¯ç è¿è¡å å¯ãè¿ä¸ªå å¯çå¯ç å°ä¼è¢«ä¿åå¨ windows ç注å表ä¸ã
è¿è¡ dsmapipw.exe çæ¶åï¼å°ä¼è¦æ±è¾å ¥å½åçèç¹å¯ç ï¼æ°å¯ç ï¼å¹¶ä¸å¯¹æ°å¯ç è¿è¡ç¡®è®¤ï¼å¦å¾ 2 æ示ã
å¾ 2. 设置ç TSM èç¹å¯ç
é¤äºå¯ä»¥éè¿å¯ç æ¥è¿è¡å®å ¨ä¿æ¤å¤ï¼TSM V5.5 çæ¬è¿æä¾äºä¸ç§å«å Secure Socket Layer(SSL) çæ°æ®ä¿æ¤æºå¶ãéè¿é 置使ç¨
SSL, å¯ä»¥å¨ client å server ä¹é´æä¾ä¸æ¡å®å ¨çéä¿¡ééï¼æé«ç¨æ·å¤ä»½æ°æ®çå®å ¨æ§ãå ·ä½ç SSL é 置说æï¼å¯åèãIBM Tivoli
Storage Manager for Windows Administrator's Guideãã
å页é¦
对 DB2 è¿è¡è®¾ç½®
对äºæ¯ä¸ä¸ªéè¦å¤ä»½ç DB2 æ°æ®åºï¼å®é½æåä¸ªä¸ TSM æå ³çåæ°éè¦è®¾ç½®ï¼åå«æ¯ï¼TSM_MGMTCLASS, TSM_NODENAME,
TSM_PASSWORD, TSM_OWNERã
TSM_MGMTCLASS
è¿ä¸ªåæ°å¼è¡¨ç¤ºçæ¯è¯¥æ°æ®åºå°ä¼ç»å®å°åªä¸ä¸ªç®¡çç±»ä¸ãå¦æ该åæ°è®¾ç½®äºï¼é£å®çä¼å 级å°é«äºé»è®¤ç管çç±»å include-exclude list
ä¸ç设置ãç¸åºç DB2 å½ä»¤ä¸º update db cfgãå ·ä½çå½ä»¤ç¤ºä¾å¦ä¸ï¼
Update db cfg for sample using tsm_mgmtclass db2mgmtclass
å¦æè¿è¡æåï¼åè¿åå¦ä¸ç»æï¼
DB20000I The UPDATE DATABASE CONFIGURATION command completed succesfully
该å½ä»¤æ sample æ°æ®åºçé ç½®åæ° TSM_MGMTCLASS çå¼è®¾ç½®æäºä¹åå®ä¹ç管çç±» db2mgmtclassã
å½ç¶ï¼è¯¥åè½ä¹å¯ä»¥éè¿ DB2 GUI æ¥å®ç°ã
TSM_NODENAME
该åæ°å¼è¡¨ç¤ºäº DB2 æ°æ®åºå¤ä»½æ¶ä½¿ç¨çèç¹åã
å¦æå¨ dsm.opt ä¸è®¾å® PasswordAccess=generateï¼å该åæ°éè¦è®¾ä¸ºç©ºå¼
å¦æå¨ dsm.opt ä¸è®¾å® PasswordAccess=promptï¼å该åæ°éè¦è®¾ç½®ä¸ºåé¢å®ä¹çèç¹å
TSM_PASSWORD
该åæ°å¼è¡¨ç¤ºäº DB2 æ°æ®åºå¤ä»½æ¶ä½¿ç¨çèç¹çå¯ç ã
å¦æå¨ dsm.opt ä¸è®¾å® PasswordAccess=generateï¼å该åæ°éè¦è®¾ä¸ºç©ºå¼
å¦æå¨ dsm.opt ä¸è®¾å® PasswordAccess=promptï¼å该åæ°éè¦è®¾ç½®ä¸ºåé¢å®ä¹çèç¹å¯ç
TSM_OWNER
该åæ°è¡¨ç¤ºäºå¤ä»½å¯¹è±¡ç owner. è¿ä¸ªåæ°æ¯é对 UNIX æä½ç³»ç»çï¼å¯¹äº WINDOW å¹³å°ï¼ä¸éè¦è®¾ç½®ãå¨ UNIX å¹³å°ä¸ï¼
å¦æå¨ dsm.opt ä¸è®¾å® PasswordAccess=generateï¼å该åæ°éè¦è®¾ä¸ºç©ºå¼
å¦æå¨ dsm.opt ä¸è®¾å® PasswordAccess=promptï¼å该åæ°éè¦è®¾ç½®
å页é¦
è¿è¡æ°æ®åºå¤ä»½æä½
å°è¿é为æ¢ï¼ææçé ç½®é½å·²ç»å®æãç°å¨å°±å¯ä»¥ä½¿ç¨ TSM æ¥å¤ä»½ DB2 äºã
DB2 çå¤ä»½æä½å¯ä»¥éè¿ DB2 Command line interface(CLI) 以å Graphical user
interface(GUI) æ¥å®ç°ãä¸é¢ï¼å°±ä»¥ Command line interface 为ä¾è¿è¡è¯´æãå¨ DB2 ä¸çç¸å ³å½ä»¤ä¸º backup
dbãå ·ä½çå½ä»¤ç¤ºä¾å¦ä¸ï¼
Backup db sample use tsm.
å¦æè¿è¡æåï¼åè¿åå¦ä¸ç»æï¼
Backup successful. The timestamp for the backup image is: 20071127163936
该å½ä»¤ç¨ TSM 对æ°æ®åº sample è¿è¡äºä¸æ¬¡å ¨å¤ä»½ãè¿æ¬¡å¤ä»½çæ¶é´æ³ä¸º 20071127163936ã
å¨ TSM server ä¸ï¼å¯ä»¥ä½¿ç¨å½ä»¤ query volume 以å query content
对å¤ä»½æ°æ®æå¨çåå¨å·è¿è¡æ¥è¯¢ï¼ä»èå¯ä»¥å¾å°åå¨çå 容ãå ·ä½ç¤ºä¾å¦ä¸ï¼
Query volume volm1
该å½ä»¤å¯ä»¥è·å¾åå¨æ± db2filepool ä¸åå¨å· volm1 çä¿¡æ¯ã
Query content volm1
该å½ä»¤å¯ä»¥è·å¾åå¨å· volm1 ä¸çææå¤ä»½æ件çä¿¡æ¯ã
è¿äºå½ä»¤çè¿è¡ç»æå¦å¾ 3 æ示ï¼
å¾ 3. æ°æ®åºå¤ä»½è¿è¡ç»æ
ä»ä¸å¯ä»¥çå°ï¼sample æ°æ®åºä½ä¸ºä¸ä¸ªæ件ä¿åå¨ TSM çåå¨å·ä¸ã
å页é¦
è¿è¡æ°æ®åºè¿åæä½
åæ°æ®åºçå¤ä»½ä¸æ ·ï¼æ°æ®åºçè¿åæä½ä¹å¯ä»¥éè¿ DB2 Command line interface(CLI) 以å Graphical user
interface(GUI) æ¥å®ç°ãä¸é¢ï¼å°±ä»¥ Command line interface 为ä¾è¿è¡è¯´æãå®ä½¿ç¨çå½ä»¤æ¯ restore
dbãå ·ä½çå½ä»¤ç¤ºä¾å¦ä¸ï¼
Restore db sample use tsm taken at 20071127163936
å¨è¿éï¼sample æ°æ®åºä½¿ç¨æ¶é´æ³ä¸º 20071127163936 çæ°æ®åºå¤ä»½æ¥è¿è¡æ°æ®åºè¿åã该å½ä»¤çè¿è¡ç»æå¦ä¸å¾ 4 æ示ï¼
å¾ 4. æ°æ®åºè¿åå½ä»¤çè¿è¡ç»æ
å页é¦
è¿è¡æ°æ®åºè¡¨ç©ºé´çå¤ä»½æä½
TSM é¤äºæ¯æ对 DB2 æ°æ®åºçº§å«çå¤ä»½ä¹å¤ï¼è¿æ¯æ表空é´çº§å«çå¤ä»½æä½ãå®åæ ·å¯ä»¥éè¿ DB2 Command line
interface(CLI) 以å Graphical user interface(GUI) æ¥å®ç°ãä¸é¢ï¼å°±ä»¥ Command line interface
为ä¾ãå®ä½¿ç¨å°çå½ä»¤æ¯ backup database DBNAME tablespace(SPACENAME) online use
tsmãå ·ä½çå½ä»¤ç¤ºä¾å¦ä¸ï¼
Backup database sample tablespace(userspace2) online use tsm
å¦æè¿è¡æåï¼è¿åå¦ä¸ç»æï¼
Backup successful. The timestamp for this backup image is: 20080514003631
å¨è¿éï¼TSM 对 sample æ°æ®åºä¸çè¡¨ç©ºé´ userspace2 åäºä¸æ¬¡å ¨å¤ä»½ï¼æ¶é´æ³ä¸º 20080514003631ã
å页é¦
è¿è¡æ°æ®åºè¡¨ç©ºé´çè¿åæä½
æ°æ®åºè¡¨ç©ºé´çè¿åæä½ä¹å¯ä»¥éè¿ DB2 Command line interface(CLI) 以å Graphical user
interface(GUI) æ¥å®ç°ãä¸é¢ï¼å°±ä»¥ Command line interface 为ä¾ãå®ä½¿ç¨å°çå½ä»¤æ¯ restore database
DBNAME tablespace(SPACENAME) online use tsmãå ·ä½çå½ä»¤ç¤ºä¾å¦ä¸ï¼
restore database sample tablespace(userspace2) online use tsm taken at 20080514003631.
å¦æè¿è¡æåï¼è¿åå¦ä¸ç»æï¼
DB20000I The RESTORE DATABASE command completed successfully.
å¨è¿éï¼sample æ°æ®åºçè¡¨ç©ºé´ userspace2 使ç¨æ¶é´æ³ä¸º 20080514003631 çå¤ä»½æ¥è¿è¡è¡¨ç©ºé´è¿åã
TSM 软件æå¤ä»½çæ°æ®ä¿åå¨åç§ç±»åçåå¨å·ä¸ãå¯¹äº V5.5 ä¹åççæ¬ï¼TSM åªå 许对 FILE ç±»åçåå¨å·è¿è¡äºæ¥ç访é®ï¼è V5.5
å¢å äºå¯¹äº FILE ç±»ååå¨å·ç并å读åæä½ãä¹å°±æ¯è¯´ï¼å¨åä¸æ¶å»ï¼å¯ä»¥å 许以ä¸è¡ä¸ºç并åï¼
1ï¼å¤ä¸ª client 对åä¸ä¸ª FILE ç±»åçåå¨å·è¿è¡å¹¶åç读æä½ã
2ï¼ä¸ä¸ª client 对 FILE ç±»åçåå¨å·è¿è¡åæä½ï¼èå ¶ä»çç¨æ·å¯ä»¥åæ¶å¯¹è¯¥å·è¿è¡è¯»æä½ã
å æ¤ï¼å¨ä½¿ç¨ TSM V5.5 æ¥å¤ä»½ DB2 æ°æ®åº / 表空é´çæ¶åï¼å¦æéç¨çæ¯ FILE
ç±»åçåå¨å·ä¿åå¤ä»½æ°æ®ï¼å¦æ¬æä¸ç示ä¾ï¼ï¼åå¯ä»¥è¿è¡ä»¥ä¸ç并åè¡ä¸ºï¼
1ï¼å¤ä¸ª client åæ¶å¯¹ä¿åå¨åä¸ä¸ªåå¨å·ä¸çå¤ä»½æ°æ®åº / 表空é´è¿è¡è¿åæä½ã
2ï¼ä¸ä¸ª client å¨å¤ä»½ DB2 æ°æ®çåæ¶ï¼å¯ä»¥å è®¸å ¶ä» client 对该åå¨å·ä¸çå ¶ä»å¤ä»½æ°æ®è¿è¡è¿åæä½ã
TSM V5.5 çè¿é¡¹æ°åè½éè¿å¯¹ FILE ç±»ååå¨å·ç并åæ¯æï¼å¯ä»¥æ¯è¾å¥½çæé«å®¢æ·å¨è¿åæ°æ®åºæ¶çæ§è½ã
ä½¿ç¨ TSM 对 DB2 è¿è¡å¤ä»½ï¼å¿ 须对 DB2 å¤ä»½æ°æ®çä¿åçç¥ä»¥åä¿åä½ç½®è¿è¡å®ä¹ãå æ¤ï¼éè¦å¨ TSM server
ä¸ï¼å¯¹ä»¥ä¸å 项è¿è¡é ç½®åå®ä¹ã
å®ä¹è®¾å¤ç±» (device class)
éè¦æ ¹æ®å¤ä»½æ°æ®åºç大å°åå¤ä»½ãè¿åé¢çæ¥éæ©æä¸ç§ç±»åç设å¤ç±»æ¥åå¨ DB2 çå¤ä»½æ°æ®åºãTSM server ä½¿ç¨ define devclass
æ¥å®ææ¤åè½ã
è¿éä½¿ç¨ FILE ç±»åç设å¤ç±»æ¥æ¨¡æç£å¸¦åå¨ DB2 å¤ä»½æ°æ®ãå ·ä½çå½ä»¤å¦ä¸ï¼
Define devclass filedevclass devtype=file directory=d:\tsmfiledata\db2backup
å¦æè¿è¡æåï¼åè¿åå¦ä¸ç»æï¼
ANR2203I Device class FILEDEVCLASS defined.
该å½ä»¤å®ä¹äºä¸ä¸ªæ°ç设å¤ç±»ï¼filedevclassï¼å®çç®å½æå d:\tsmfiledata\db2backupã
å®ä¹åå¨æ± (storage pool) ååå¨å· (volume)
åå¨æ± æ¯ä¸ä¸ªé»è¾æ¦å¿µï¼å®è¡¨ç¤ºäºå¤ä»½ / å½æ¡£æ°æ®çå®é åå¨è®¾å¤ï¼æ¯ä¸ä¸ªåå¨æ± é½å¯¹åºäºä¸ä¸ªç¹å®ç设å¤ç±»ãTSM server ä½¿ç¨ define
stgpool æ¥å®ææ¤åè½ã
ä¸é¢å®ä¹ä¸ä¸ªåå¨æ± ç¨æ¥è¡¨ç¤º DB2 å¤ä»½æ°æ®çå®é åå¨ä½ç½®ãå ·ä½çå½ä»¤å¦ä¸ï¼
Define stgpool db2filepool filedevclass maxscratch=100
å¦æè¿è¡æåï¼åè¿åå¦ä¸ç»æï¼
ANR2200I Storage pool DB2FILEPOOL defined(device class FILEDEVCLASS)
ä»å®ä¹äºä¸ä¸ªæ°çåå¨æ± db2filepoolï¼å¹¶å ³èäºä¹åå®ä¹ç设å¤ç±» filedevclass.
对äºåå¨æ± ï¼å¦æ maxscratch>0, å表示å¯ä»¥ä½¿ç¨ scratch
ç±»åçåå¨å·ï¼ä¸éè¦ç¹å«å®ä¹ãå½ç¶ä¹å¯ä»¥ä½¿ç¨èªå·±å®ä¹çåå¨å·ï¼ä½¿ç¨çå½ä»¤æ¯ define volumeãå ·ä½ç¤ºä¾å¦ä¸ï¼
Define volume db2filepool d:\tsmfiledata\db2backup\volm1 format=100
å¦æè¿è¡æåï¼åè¿åå¦ä¸ç»æï¼
ANR2491I Volume Creation Process starting for D:\TSMFILEDATA\DB2BACKUP\VOLM1
ä¸è¿°å½ä»¤å¨ db2filepool ä¸å®ä¹äºä¸ä¸ªå¤§å°ä¸º 100M çåå¨å· ,
ä½ç½®æ¯ï¼D:\tsmfiledata\db2backup\volm1ã
å®ä¹èç¹
为äºè®© DB2 éè¿ TSM client API å¤ä»½æ°æ®ï¼å¿ é¡»å¨ TSM server ä¸ä¸ºå ¶æ³¨åä¸ä¸ªèç¹ï¼è®¾ç½®å®çèç¹ååå¯ç ãç¸å ³çå½ä»¤ä¸º
register nodeãå ·ä½ç¤ºä¾å¦ä¸ï¼
register node db2 password
å¨è¿éï¼db2 为æ°æ³¨åçèç¹ï¼é»è®¤æ³¨åå° STANDARD ççç¥åä¸ã
å®ä¹çç¥
å¨ TSM server ä¸ï¼éè¦ä¸º DB2 使ç¨çèç¹å®ä¹å ¶åå¨çç¥ã
å®ä¹çç¥å (policy domain)ï¼
TSM server ä½¿ç¨ define domain å½ä»¤æ¥å®ä¹çç¥åï¼å ·ä½ç¤ºä¾å¦ä¸ï¼
Define domain db2domain description=âpolicy domain for db2 backupâ
å¦æè¿è¡æåï¼åè¿åå¦ä¸ç»æï¼
ANR1500I Policy domain DB2DOMAIN defined
该å½ä»¤å®ä¹äºä¸ä¸ªå为 db2domain ççç¥åã
å®ä¹çç¥é (policy set)ï¼
TSM server ä½¿ç¨ define policyset å½ä»¤æ¥å®ä¹çç¥åï¼å ·ä½ç¤ºä¾å¦ä¸ï¼
Define policyset db2domain db2policyset description=âpolicy set for db2â
å¦æè¿è¡æåï¼åè¿åå¦ä¸ç»æï¼
ANR1510I Policy set DB2POLICYSET defined in policy domain DB2DOMAIN
该å½ä»¤å®ä¹äºä¸ä¸ªå为 db2policyset ççç¥éï¼å®æ¯å±äº db2domain è¿ä¸ªçç¥åä¸çã
å®ä¹ç®¡çç±» (management class):
TSM server ä½¿ç¨ define mgmtclass å½ä»¤æ¥å®ä¹çç¥åï¼å ·ä½ç¤ºä¾å¦ä¸ï¼
Define mgmtclass db2domain db2policyset db2mgmtclass
description=âmanagement class for db2â
å¦æè¿è¡æåï¼åè¿åå¦ä¸ç»æï¼
ANR1510I Management class DB2MGMTCLASS defined in
policy domain DB2DOMAIN, set DB2POLICYSET.
ä¸è¿°å½ä»¤å®ä¹äºç®¡çç±» db2mgmtclass, å®å±äºçç¥é db2policyset, çç¥å db2domainã
æå®ä¹ç管çç±»ä½ä¸ºè¯¥çç¥éä¸çé»è®¤ç®¡çç±»ã
TSM server ä½¿ç¨ assign defmgmtclass å½ä»¤æ设置æ个çç¥éä¸çé»è®¤ç®¡çç±»ãå ·ä½ç¤ºä¾å¦ä¸ï¼
Assign defmgmtclass db2domain db2policyset db2mgmtclass
å¦æè¿è¡æåï¼åè¿åå¦ä¸ç»æï¼
ANR1538I Default management class set to DB2MGMTCLASS
for policy domain DB2DOMAIN, set DB2POLICYSET.
该å½ä»¤æä¹åå®ä¹ç管çç±» db2mgmtclass 设置æçç¥é db2policyset çé»è®¤ç®¡çç±»ã
å®ä¹æ·è´ç» (copy group)
åå«ä¸ºå¤ä»½æ°æ®åå½æ¡£æ°æ®å®ä¹ copy group
å®ä¹æ·è´ç»çå½ä»¤æ¯ define copygroupï¼æ ¹æ®åæ° type ç设置ï¼å¯ä»¥åå«å®ä¹ backup copy group å archive
copy groupãå ·ä½çå½ä»¤å¦ä¸ï¼
å®ä¹å¤ä»½æ·è´ç»ï¼
Define copygroup db2domain db2policyset db2mgmtclass dest=db2filepool
å¦æè¿è¡æåï¼åè¿åå¦ä¸ç»æï¼
ANR1530I Backup copy group STANDARD defined in policy domain DB2DOMAIN,
set DB2POLICYSET, management class DB2MGMTCLASS.
å®ä¹å½æ¡£æ·è´ç»ï¼
Define copygroup db2domain db2policyset db2mgmtclass
type=archive dest=db2archivepool
å¦æè¿è¡æåï¼åè¿åå¦ä¸ç»æï¼
ANR1535I Archive copy group STANDARD defined in policyset
domain DB2DOMAIN,set DB2POILCYSET, management class DB2MGMTCLASS.
è¿ä¸¤ä¸ªå½ä»¤å¨ db2mgmtclass ä¸åå«å®ä¹äº backup copy group å archive copy group, 并ææ backup
å archive çæ°æ®åå«åå¨å¨ db2filepool å db2archivepool 两个åå¨æ± ä¸ãå ¶ä¸ db2archivepool åå¨æ± çå®ä¹ä¸
db2filepool çå®ä¹æ¯ç±»ä¼¼çï¼è¿éå°±ä¸åä»ç»ã
éªè¯å¹¶æ¿æ´»çç¥é
TSM server ä½¿ç¨ validate policyset 以å active policyset
å½ä»¤æ¥éªè¯å¹¶æ¿æ´»çç¥éãåªææ¿æ´»ä»¥åççç¥éï¼æä¼å¨åé¢çå¤ä»½ä¸ä½¿ç¨å°ãå ·ä½çå½ä»¤ç¤ºä¾å¦ä¸ï¼
éªè¯çç¥éï¼
Validate policyset db2domain db2policyset
å¦æè¿è¡æåï¼åè¿åå¦ä¸ç»æï¼
ANR1515I Policy set DB2POLICYSET validated in domain DB2DOMAIN(ready for activation)
æ¿æ´»çç¥éï¼
Activate policyset db2domain db2policyset
该å½ä»¤ä¼è¯¢é®å®¢æ·æ¯å¦ç¡®è®¤æ§è¡ï¼ç¡®è®¤åï¼å¦æè¿è¡æåï¼åè¿åå¦ä¸ç»æï¼
ANR1514I Policy set DB2POLICYSET activated in policy domain DB2DOMAIN
ä¸è¿°ä¿©å½ä»¤éªè¯å¹¶æ¿æ´»äºçç¥å db2domain ä¸ççç¥é db2policyset.
æ´æ° TSM èç¹ä¿¡æ¯
éè¦æ´æ°èç¹ä¿¡æ¯ï¼æ TSM èç¹æå®å°ä¸ºå ¶å®ä¹ççç¥åä¸ãTSM server ä½¿ç¨ update node æ¥å®ç°è¯¥åè½ãå ·ä½å½ä»¤å¦ä¸ï¼
Update node db2 domain=db2domain archdelete=yes backdelete=yes
å¦æè¿è¡æåï¼åè¿åå¦ä¸ç»æï¼
ANR2063I Node DB2 updated.
该å½ä»¤æèç¹ db2 å ³èå°äºçç¥å db2domain ä¸ï¼å¹¶ä¿®æ¹äºèç¹åæ° archdelete å backdelete ç设置ã
å°è¿éï¼TSM server 端çé 置就å®æäºãå ³äºè¿äº tsm server å½ä»¤ç详ç»ä»ç»ï¼å¯åèãIBM Tivoli Storage
Manager for AIX Administrator's Referenceãã
å页é¦
设置ç¯å¢åé
å¨å®è£ å® TSM backup-archive 客æ·ç«¯åï¼å®ä¼èªå¨å®è£ ç¸åºç TSM client
APIï¼ä¹åéè¦å¨ç³»ç»ç¯å¢åéä¸å®ä¹ä¸ä¸ªç¯å¢åéãåå«æ¯ï¼DSMI_CONFIG, DSMI_DIR å DSMI_LOGãä¹åç DB2
å¤ä»½ä¸ï¼å°ä¼ä½¿ç¨è¿ä¸ä¸ªåéã
DSMI_CONFIG
è¿ä¸ªç¯å¢åéè®¾ç½®äº TSM client API option file çä½ç½®ãå¦æå®è£ äº TSM backup-archive 客æ·ç«¯ï¼åå®å¨
WINDOWS å¹³å°ä¸çé»è®¤å¼ä¸ºâC:\Program
Files\Tivoli\TSM\baclient\dsm.optâãå¦ææå®å®è£ å°äºå ¶ä»ä½ç½®ï¼åå°è¯¥ç¯å¢åé设置æç¸åºçå¼ãå¦æ该ç®å½ä¸æ²¡æ dsm.opt
æ件ï¼å¯ä»¥èªå·±çæä¸ä¸ªãå ³äºå¦ä½é 置该æ件å¯åèãIBM Tivoli Storage Manager for Windows Backup-Archive
Clients Installation and User's Guideãã
DSMI_DIR
è¿ä¸ªç¯å¢åéè®¾ç½®äº TSM client API çå®è£ è·¯å¾ãå¨ WINDOWS å¹³å°ä¸ï¼é»è®¤çå®è£ è·¯å¾ä¸ºï¼âC:\Program
Files\Common Files\Tivoli\TSM\apiâã
éè¦æ³¨æçæ¯ï¼TSM V5.5 ä¹åçé»è®¤ä½ç½®æ¯âC:\Program Files\Tivoli\TSM\apiâãæ°çæ¬åçäºä¸äºååã
DSMI_LOG
该ç¯å¢åéè®¾ç½®äº TSM client API çé误æ¥å¿ dsierror.log æå¨çç®å½ä½ç½®ãå¦æå®è£ äº TSM backup-archive
客æ·ç«¯ï¼åå®å¨ WINDOWS å¹³å°ä¸çé»è®¤å¼ä¸ºï¼âC:\Program Files\Tivoli\TSM\baclientâãå¦æ没æï¼çæä¸ä¸ªå³å¯ã
å页é¦
对 TSM client è¿è¡é ç½®
é ç½®å® TSM server åï¼éè¦å¯¹ TSM client API è¿è¡é ç½®ãWindows 主è¦é ç½®çæ¯ dsm.opt æ件ãä¹å°±æ¯
DSMI_CONFIG ä¸ææåçæ件ãå¨è¿ä¸ªæ件ä¸ï¼éè¦ææ TSM client ä¸ TSM server çé讯æ¹å¼ï¼TSM client æ使ç¨ç
TSM èç¹åï¼ä»¥åå¯ç ç访é®æ¨¡å¼ãä¸é¢ï¼å¦å¾ 1 æ示ç»åºä¸ä¸ª dsm.opt çæ件示ä¾ãå¯ä»¥ç¨ææ¬ç¼è¾å¨å¯¹å ¶è¿è¡ç¼è¾ï¼
å¾ 1. dsm.opt çæ件示ä¾
å页é¦
çæ TSM èç¹çå å¯å¯ç
å¨åé¢çé ç½®é½å®æåï¼éè¦è°ç¨ dsmapipw.exe å¯æ§è¡æ件ï¼é»è®¤å®è£ DB2 çå®è£ ç®å½âc:\program
files\ibm\sqllib\adsm\âä¸ï¼å¯¹ä¹å设置ç TSM èç¹å¯ç è¿è¡å å¯ãè¿ä¸ªå å¯çå¯ç å°ä¼è¢«ä¿åå¨ windows ç注å表ä¸ã
è¿è¡ dsmapipw.exe çæ¶åï¼å°ä¼è¦æ±è¾å ¥å½åçèç¹å¯ç ï¼æ°å¯ç ï¼å¹¶ä¸å¯¹æ°å¯ç è¿è¡ç¡®è®¤ï¼å¦å¾ 2 æ示ã
å¾ 2. 设置ç TSM èç¹å¯ç
é¤äºå¯ä»¥éè¿å¯ç æ¥è¿è¡å®å ¨ä¿æ¤å¤ï¼TSM V5.5 çæ¬è¿æä¾äºä¸ç§å«å Secure Socket Layer(SSL) çæ°æ®ä¿æ¤æºå¶ãéè¿é 置使ç¨
SSL, å¯ä»¥å¨ client å server ä¹é´æä¾ä¸æ¡å®å ¨çéä¿¡ééï¼æé«ç¨æ·å¤ä»½æ°æ®çå®å ¨æ§ãå ·ä½ç SSL é 置说æï¼å¯åèãIBM Tivoli
Storage Manager for Windows Administrator's Guideãã
å页é¦
对 DB2 è¿è¡è®¾ç½®
对äºæ¯ä¸ä¸ªéè¦å¤ä»½ç DB2 æ°æ®åºï¼å®é½æåä¸ªä¸ TSM æå ³çåæ°éè¦è®¾ç½®ï¼åå«æ¯ï¼TSM_MGMTCLASS, TSM_NODENAME,
TSM_PASSWORD, TSM_OWNERã
TSM_MGMTCLASS
è¿ä¸ªåæ°å¼è¡¨ç¤ºçæ¯è¯¥æ°æ®åºå°ä¼ç»å®å°åªä¸ä¸ªç®¡çç±»ä¸ãå¦æ该åæ°è®¾ç½®äºï¼é£å®çä¼å 级å°é«äºé»è®¤ç管çç±»å include-exclude list
ä¸ç设置ãç¸åºç DB2 å½ä»¤ä¸º update db cfgãå ·ä½çå½ä»¤ç¤ºä¾å¦ä¸ï¼
Update db cfg for sample using tsm_mgmtclass db2mgmtclass
å¦æè¿è¡æåï¼åè¿åå¦ä¸ç»æï¼
DB20000I The UPDATE DATABASE CONFIGURATION command completed succesfully
该å½ä»¤æ sample æ°æ®åºçé ç½®åæ° TSM_MGMTCLASS çå¼è®¾ç½®æäºä¹åå®ä¹ç管çç±» db2mgmtclassã
å½ç¶ï¼è¯¥åè½ä¹å¯ä»¥éè¿ DB2 GUI æ¥å®ç°ã
TSM_NODENAME
该åæ°å¼è¡¨ç¤ºäº DB2 æ°æ®åºå¤ä»½æ¶ä½¿ç¨çèç¹åã
å¦æå¨ dsm.opt ä¸è®¾å® PasswordAccess=generateï¼å该åæ°éè¦è®¾ä¸ºç©ºå¼
å¦æå¨ dsm.opt ä¸è®¾å® PasswordAccess=promptï¼å该åæ°éè¦è®¾ç½®ä¸ºåé¢å®ä¹çèç¹å
TSM_PASSWORD
该åæ°å¼è¡¨ç¤ºäº DB2 æ°æ®åºå¤ä»½æ¶ä½¿ç¨çèç¹çå¯ç ã
å¦æå¨ dsm.opt ä¸è®¾å® PasswordAccess=generateï¼å该åæ°éè¦è®¾ä¸ºç©ºå¼
å¦æå¨ dsm.opt ä¸è®¾å® PasswordAccess=promptï¼å该åæ°éè¦è®¾ç½®ä¸ºåé¢å®ä¹çèç¹å¯ç
TSM_OWNER
该åæ°è¡¨ç¤ºäºå¤ä»½å¯¹è±¡ç owner. è¿ä¸ªåæ°æ¯é对 UNIX æä½ç³»ç»çï¼å¯¹äº WINDOW å¹³å°ï¼ä¸éè¦è®¾ç½®ãå¨ UNIX å¹³å°ä¸ï¼
å¦æå¨ dsm.opt ä¸è®¾å® PasswordAccess=generateï¼å该åæ°éè¦è®¾ä¸ºç©ºå¼
å¦æå¨ dsm.opt ä¸è®¾å® PasswordAccess=promptï¼å该åæ°éè¦è®¾ç½®
å页é¦
è¿è¡æ°æ®åºå¤ä»½æä½
å°è¿é为æ¢ï¼ææçé ç½®é½å·²ç»å®æãç°å¨å°±å¯ä»¥ä½¿ç¨ TSM æ¥å¤ä»½ DB2 äºã
DB2 çå¤ä»½æä½å¯ä»¥éè¿ DB2 Command line interface(CLI) 以å Graphical user
interface(GUI) æ¥å®ç°ãä¸é¢ï¼å°±ä»¥ Command line interface 为ä¾è¿è¡è¯´æãå¨ DB2 ä¸çç¸å ³å½ä»¤ä¸º backup
dbãå ·ä½çå½ä»¤ç¤ºä¾å¦ä¸ï¼
Backup db sample use tsm.
å¦æè¿è¡æåï¼åè¿åå¦ä¸ç»æï¼
Backup successful. The timestamp for the backup image is: 20071127163936
该å½ä»¤ç¨ TSM 对æ°æ®åº sample è¿è¡äºä¸æ¬¡å ¨å¤ä»½ãè¿æ¬¡å¤ä»½çæ¶é´æ³ä¸º 20071127163936ã
å¨ TSM server ä¸ï¼å¯ä»¥ä½¿ç¨å½ä»¤ query volume 以å query content
对å¤ä»½æ°æ®æå¨çåå¨å·è¿è¡æ¥è¯¢ï¼ä»èå¯ä»¥å¾å°åå¨çå 容ãå ·ä½ç¤ºä¾å¦ä¸ï¼
Query volume volm1
该å½ä»¤å¯ä»¥è·å¾åå¨æ± db2filepool ä¸åå¨å· volm1 çä¿¡æ¯ã
Query content volm1
该å½ä»¤å¯ä»¥è·å¾åå¨å· volm1 ä¸çææå¤ä»½æ件çä¿¡æ¯ã
è¿äºå½ä»¤çè¿è¡ç»æå¦å¾ 3 æ示ï¼
å¾ 3. æ°æ®åºå¤ä»½è¿è¡ç»æ
ä»ä¸å¯ä»¥çå°ï¼sample æ°æ®åºä½ä¸ºä¸ä¸ªæ件ä¿åå¨ TSM çåå¨å·ä¸ã
å页é¦
è¿è¡æ°æ®åºè¿åæä½
åæ°æ®åºçå¤ä»½ä¸æ ·ï¼æ°æ®åºçè¿åæä½ä¹å¯ä»¥éè¿ DB2 Command line interface(CLI) 以å Graphical user
interface(GUI) æ¥å®ç°ãä¸é¢ï¼å°±ä»¥ Command line interface 为ä¾è¿è¡è¯´æãå®ä½¿ç¨çå½ä»¤æ¯ restore
dbãå ·ä½çå½ä»¤ç¤ºä¾å¦ä¸ï¼
Restore db sample use tsm taken at 20071127163936
å¨è¿éï¼sample æ°æ®åºä½¿ç¨æ¶é´æ³ä¸º 20071127163936 çæ°æ®åºå¤ä»½æ¥è¿è¡æ°æ®åºè¿åã该å½ä»¤çè¿è¡ç»æå¦ä¸å¾ 4 æ示ï¼
å¾ 4. æ°æ®åºè¿åå½ä»¤çè¿è¡ç»æ
å页é¦
è¿è¡æ°æ®åºè¡¨ç©ºé´çå¤ä»½æä½
TSM é¤äºæ¯æ对 DB2 æ°æ®åºçº§å«çå¤ä»½ä¹å¤ï¼è¿æ¯æ表空é´çº§å«çå¤ä»½æä½ãå®åæ ·å¯ä»¥éè¿ DB2 Command line
interface(CLI) 以å Graphical user interface(GUI) æ¥å®ç°ãä¸é¢ï¼å°±ä»¥ Command line interface
为ä¾ãå®ä½¿ç¨å°çå½ä»¤æ¯ backup database DBNAME tablespace(SPACENAME) online use
tsmãå ·ä½çå½ä»¤ç¤ºä¾å¦ä¸ï¼
Backup database sample tablespace(userspace2) online use tsm
å¦æè¿è¡æåï¼è¿åå¦ä¸ç»æï¼
Backup successful. The timestamp for this backup image is: 20080514003631
å¨è¿éï¼TSM 对 sample æ°æ®åºä¸çè¡¨ç©ºé´ userspace2 åäºä¸æ¬¡å ¨å¤ä»½ï¼æ¶é´æ³ä¸º 20080514003631ã
å页é¦
è¿è¡æ°æ®åºè¡¨ç©ºé´çè¿åæä½
æ°æ®åºè¡¨ç©ºé´çè¿åæä½ä¹å¯ä»¥éè¿ DB2 Command line interface(CLI) 以å Graphical user
interface(GUI) æ¥å®ç°ãä¸é¢ï¼å°±ä»¥ Command line interface 为ä¾ãå®ä½¿ç¨å°çå½ä»¤æ¯ restore database
DBNAME tablespace(SPACENAME) online use tsmãå ·ä½çå½ä»¤ç¤ºä¾å¦ä¸ï¼
restore database sample tablespace(userspace2) online use tsm taken at 20080514003631.
å¦æè¿è¡æåï¼è¿åå¦ä¸ç»æï¼
DB20000I The RESTORE DATABASE command completed successfully.
å¨è¿éï¼sample æ°æ®åºçè¡¨ç©ºé´ userspace2 使ç¨æ¶é´æ³ä¸º 20080514003631 çå¤ä»½æ¥è¿è¡è¡¨ç©ºé´è¿åã
TSM 软件æå¤ä»½çæ°æ®ä¿åå¨åç§ç±»åçåå¨å·ä¸ãå¯¹äº V5.5 ä¹åççæ¬ï¼TSM åªå 许对 FILE ç±»åçåå¨å·è¿è¡äºæ¥ç访é®ï¼è V5.5
å¢å äºå¯¹äº FILE ç±»ååå¨å·ç并å读åæä½ãä¹å°±æ¯è¯´ï¼å¨åä¸æ¶å»ï¼å¯ä»¥å 许以ä¸è¡ä¸ºç并åï¼
1ï¼å¤ä¸ª client 对åä¸ä¸ª FILE ç±»åçåå¨å·è¿è¡å¹¶åç读æä½ã
2ï¼ä¸ä¸ª client 对 FILE ç±»åçåå¨å·è¿è¡åæä½ï¼èå ¶ä»çç¨æ·å¯ä»¥åæ¶å¯¹è¯¥å·è¿è¡è¯»æä½ã
å æ¤ï¼å¨ä½¿ç¨ TSM V5.5 æ¥å¤ä»½ DB2 æ°æ®åº / 表空é´çæ¶åï¼å¦æéç¨çæ¯ FILE
ç±»åçåå¨å·ä¿åå¤ä»½æ°æ®ï¼å¦æ¬æä¸ç示ä¾ï¼ï¼åå¯ä»¥è¿è¡ä»¥ä¸ç并åè¡ä¸ºï¼
1ï¼å¤ä¸ª client åæ¶å¯¹ä¿åå¨åä¸ä¸ªåå¨å·ä¸çå¤ä»½æ°æ®åº / 表空é´è¿è¡è¿åæä½ã
2ï¼ä¸ä¸ª client å¨å¤ä»½ DB2 æ°æ®çåæ¶ï¼å¯ä»¥å è®¸å ¶ä» client 对该åå¨å·ä¸çå ¶ä»å¤ä»½æ°æ®è¿è¡è¿åæä½ã
TSM V5.5 çè¿é¡¹æ°åè½éè¿å¯¹ FILE ç±»ååå¨å·ç并åæ¯æï¼å¯ä»¥æ¯è¾å¥½çæé«å®¢æ·å¨è¿åæ°æ®åºæ¶çæ§è½ã
温馨提示:答案为网友推荐,仅供参考