Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

Comandos TSM

Fazer download em txt, pdf ou txt
Fazer download em txt, pdf ou txt
Você está na página 1de 9

=>Mover dados da fita para o pool em disco.

MOVE DATA tsm003 stg=disk_diario (EDINFOR) MOVE DATA edp003 stg=diario (EDP) MOVE DATA ghe081 stg=disk_semanal (BAND) => lista base notes em subdiretrio domdsmc q dbb *uteste.nsf /subdir=yes => lista base notes inativa em subdiretrio domdsmc q dbb *uteste.nsf /subdir=yes /inact => lista todas bases notes inativas da raiz domdsmc q dbb -inact /adsmoptfile=dsm.opt => lista todas bases notes inativas dos subdiretrios. domdsmc q dbb /subdir=yes -inact /adsmoptfile=dsm.opt =>Restore de base notes do ltimo backup, em subdiretrio encaminhando para outra pa sta de um arquivo opt diferente do padro dsm.opt domdsmc restore uteste.nsf /subdir=yes /into=restore\== /adsmoptfile=dsm 12.opt =>Restore de base notes de um determinado dia, em subdiretrio encaminhando para o utra pasta domdsmc restore uteste.nsf /subdir=yes /into=restore\== /pit=11-09-2005, 00:48:56 =>Restore de base notes de um determinado dia, em subdiretrio encaminhando para o utra pasta e ativando a base no final. domdsmc restore uteste.nsf /subdir=yes /into=h:\restore2\== /pit=14-09-2 005,01:05:02 /activate=yes => Backup Notes Seletivo domdsmc selective cpd_bandeirante.nsf /subdir=yes /adsmoptfile=dsmmensal .opt => Backup System Object e Active Directory include c:\adsm.sys\...\* dsmc ba systemobject dsmc ba systemstate asr systemservices (Windows 2003 com client 5.3) backup actived =>Update Storage Pool Collocate upd stg lto_mensal collocate=no =>CopyPool backup stg comgas_pool copypool_comgas maxpr=1 preview=yes => Reagendar Schedule UPDATE SCHEDULE POL_BAND SCHED_EBESP-DB5_D12 STARTDATE=08/21/2006 TYPE=C LIENT => Associar node DEFINE ASSOCIATION POOL_EDB SCHED_ESTPROPSTA01_M estpropsta01 =>Linha de comando cliente archive -archmc=MCCLASS30W -subdir=yes -delete files c:\temp\teste3.txt => Para procurar o log de um backup em uma determinada data q act begind=08/28/2003 begint=00:00

=>Remover a fita do pool CHECKOUT libv libdlt tsm012 checklabel=no (Edinfor) CHECKOUT libv lb6.1.0.4 edp012 checklabel=no (EDP) =>Efetuar auditoria no pool de fitas audit library libdlt audit library liblto3 checklabel=barcode (LTO3) =>Verificar se o Drive est on-line q drive (O drive tem que estar com status Yes) =>Verificar se o Path do drive est on-line q path (O drive e a library tem que estar com status Yes) => Para listar schedules executados do dia atual q event * * (caso queira verificar de dias anteriores executar "q event * * begind=-1", o -1 significa a quantidade de dias anteriores) => listar contudo da fita q content "nome da fita" query content f:\tsmstg\diskvol1.dsm node=pegasus type=backup => Colocar o servidor como Enable na opo Availability do comando q system Enable sessions => Lista copygroup de archive e backup QUERY COPYGROUP POL_EDINFOR STANDARD MCCLASS08 type=archive f=d QUERY COPYGROUP POL_EDINFOR STANDARD MCCLASS08 type=backup f=d =>Colocar fita no pool Checkin libv libdlt edp093 status=scratch ou private checklab=no Checkin libv libdlt search=yes status=scratch (Se for fita com label mas vazia) Checkin libv libdlt search=yes status=private (Se for fita com label e c om dados) Checkin libv lb3.1.0.4 search=yes status=private =>Exibe slot e fita show slots =>Configurao opt ****Parametro de Comunicao com o TSM Server**** SERVERNAME TCPSERVERADDRESS NODENAME TCPCLIENTADDRESS TCPCLIENTPORT COMMMETHOD PASSWORDACCESS Ebesp-av1 10.0.200.91 EBESP-SMS1 10.0.200.120 1501 TCPIP GENERATE

****Parametro de Logs**** SCHEDLOGNAME SCHEDLOGRETENTION ERRORLOGNAME ERRORLOGRETENTION DATEFORMAT "c:\program files\tivoli\tsm\baclient\dsmsched.log" 3 D "c:\program files\tivoli\tsm\baclient\dsmerror.log" 3 D 2

****Parametro de Performance**** TCPBUFFSIZE TCPNODELAY TCPWINDOWSIZE TXNByteLimit RESOURCEUTILIZATION commrestartduration commrestartinterval 32 YES 63 2097152 4 120 30

****Parametro de Execuo de Backup**** DOMAIN DOMAIN DOMAIN SUBDIR SCHEDMODE E: SYSTEMSERVICES SYSTEMSTATE YES PROMPTED

******************************************************************************** ************** =>Criar label na fita label libv libdlt search=yes vollist=1,2,3,4,5 labelsource=prompt checki n=scratch overwrite=yes label libv lb4.0.0.1 search=yes labels=barcode checkin=scratch overwrite =yes (No vollist colocar o numero de fitas que for incluir na library, Se for colocar 3 fitas colocar 1,2,3. Deve utilizar o q req junto com o reply n label=tsmxxx para cada fita, po r fim verificar com o q libv se a fita foi includa. => Habilitar eventos TSM para TEC ENABLE EVENTS tivoli ANE4961 nodename=ebkberr02 ENABLE EVENTS tivoli ANE4964 nodename=ebkberr02 enable events tivoli ANR2507 (successfully) enable events tivoli ANR2579 (failed) enable events tivoli ANR2578 (missed) ENABLE EVENTS tivoli ACN3516 nodename=emxberr01_exch ENABLE EVENTS tivoli ACD5207 nodename=elnberr01_notes 16-06-2005 11:10:47 ANR0314W Recovery log usage exceeds 96 % of its as signed capacity. 12/07/2005 10:02:33 ANR0420W Session 6700 for node EBESP-DC1 (WinNT) r efused erver disabled for user access. => listar eventos por node query eventrules tivoli nodename=ebkberr02 q eventrules =>Atualizaao de Licenas pela Console Object View /Server / License Information/Operation:Register License =>Registrar licensa register license file(mgsyslan.lic) number=18 Coloca mgsyslan.lic no campo de License File e o numero total de licenas. (nao a diferenca de numero atual e o numero novo, mas total. Se falta 3 licenas para completar 20, coloca 20). Isso para os clients. Para domino seria domino.lic => Script de backup do TSM

move data i:\tsmdata\server1\diario1.dsm stg=dlt_diario wait=yes move data i:\tsmdata\server1\mensal1.dsm stg=dlt_mensal wait=yes ** e:\tsmdata\server1\anual1.dsm stg=dlt_anual expire inventory wait=yes del volh type=dbbackup todate=today-1 totime=now-2 backup db type=full devc=dltclass vol=TSM116,TSM119 wait=yes backup devconfig backup volh **BAND BACKUP DB type=full devclass=dltclass1 volumenames=000040s,000052s =>Restore DB Unix ./dsmserv restore db vol=EV0020L3 dev=LTO_CLASS_1 commit=yes => Efetuar Update da Library update path fpspsta02_tsm libdlt srctype=server desttype=library device= lb3.1.0.4 online=no => Listar por node eventos de backup q event * * nodes=ebkberr02 begindate=08/09/2004 enddate=08/13/2004 form at=detailed => Definir Storage Pool de Disco DEFINE STGPOOL DISK_BKP_SAG DISK pooltype=PRIMARY description="Storage P ool de disco para projeto SAG" nextPool=BAND_SAG => Definir volume em Storage Pool DEFINE VOLUME DISK_BKP_SAG /tsm_edinfor/pool/DISK_BKP_SAG_01.DSM formats ize=51200 wait=YES => Definir volume de DB define DBVolume /tsm_diveo/db/db004.dsm Formatsize=10240 => Extend volume de DB extend db 10240 => Definio de Backup Mensal para Notes Notes ----Temos duas maneiras para definir o backup mensal dos servidores Notes. 1. Utilizar um Policy Domain separado (com Man.Class default) ou 2. Utilizar um Man. Class a um Domain existente. Os clients do Notes para Mensal foram definidos no Domain Notes,por isso vamos u tilizar o metodo 2. Pra cada cliente Notes que vai fazer o mensal utilizando o TDP Domino, fazer o s eguinte: 1. No TSM Server - Criar um client para Notes separado do client que faz o backu p diario. Por ex.: Cli_Notes_Mensal (utiliza o padrao seu) 2. Associa este client ao dominio Notes 3. Verificar o nome do Man. Class que tem a config para o backup Mensal do Notes . ( Por ex.: MC_NOTES_MENSAL)

4. No client Domino - Copia o dsm.opt no diretorio Domino ( /Program Files/tivol i/tsm/domino) para o arquivo dommensal.opt ( uma sugestao). 5. Modifica o dommensal.opt atualizando os parametros: NODENAME cli_notes_mensal INCLUDE * MC_NOTES_MENSAL 6. No diretorio do baclient deve ter um .bat que instala o servio do scheduler (n ao lembro o nome dele) utilizando o dsmcutil. Cria um novo (copia), p.e. domschedinst.bat. Deve aparecer similar do texto abaixo (tudo em u ma linha): dsmcutil inst /NAME:"TDP Domino Mensal" /NODE:cli_notes_mensal /PASSWORD:cli_no tes /AUTOSTART:yes /CLIENTDIR:"c:\program files\tivoli\tsm\baclient" /optfile: "c:\program files\tivoli\tsm\domino\dommensal.opt" 7. Executa o .bat para criar o Servio do Domino Mensal pra este client. 8. Cria um atalho no desktop para poder acessar os dados deste cliente(mensal) Configura o atalho para executar (target):"C:\Program Files\Tivoli\TSM\domino\do mdsm.exe" -adsmoptfile="C:\Progra~1\Tivoli\TSM\domino\dommensal.opt" (ou a onde esta o dommensal.opt) e utilizar o diretorio (start in) "C:\Program Files\Tivoli\TSM\domino\" 9. No TSM Server - Verificar o schedule associado pra este client. 10. Testa conexo e o schedule.

**Efetuar a verificao dos logs dos servidores que efetuam backup diariamente no se guinte caminho: \\servidor\c$\Program Files\Tivoli\TSM\baclient\dsmsched.log **Para os servidores notes tambm necessrio verificar o log diariamento do TSM for Mail no seguinte caminho: \\servidor\c$\Program Files\Tivoli\TSM\domino\dominc.log RECOMENDADO*********************** dsm.opt ====== NODENAME CLINET_ SERVER_NAME TCPSERVERADDRESS BACKUP_SERVER_NAME TCPCLIENTPORT 1500 TCPCLIENTADDRESS CLIENT_IP PASSWORDACCESS GENERATE ERRORLOGRETENTION 15D SCHEDLOGRETENTION 15D SCHEDMODE PROMPTED *SCHEDMODE POLLING * if DMZ DOMAIN ALL-LOCAL *DOMAIN C: E: SYSTEMSERVICES SYSTEMSTATE TRACEFILE e:\tsm\baclient\tsm_trace.log TRACEFLAGS service TRACEMAX 20 MANAGEDSERVICES schedule

INCLEXCL e:\tsm\baclient\inclexcl.lst ******************************************************************************** ****************************************** RECOVERING FROM A DISASTER TSM Disaster Recovery Required files: planfile, database files, bfs files, volhist.out, devcnfg.out an d dsmserv.opt 1. Install TSM Server per documentation and run minimal configuration taking par ameters from the prepare file 2. Ensure server is licensed 3. Run through prepare file setting up device classes and ensure you have the vo lumes required for restore 4. Copy volhist.out, devcnfg.out and dsmserv.opt to tsm\server1 and tsm\server 5. Copy bfs files to location where the devc is configured to read from 6. Run dsmserv.exe k Server1 restore db todate=xx/xx/xxxx totime=xx:xx:xx source=dbb get date/time from prepare file 7. Start drmserv.exe with no parameters, when successful, end exe and start serv ice 8. Test a restore dsmserv restore db dev=filedev1 volumenames=h:\tsmdata\db\bkp02 commit=yes ******************************************************************************** ******************************************* EVENTOS ANR2841W Server is NOT IN COMPLIANCE with license terms ANR8302E I/O error on drive MT1.0.0.4 (mt1.0.0.4) (OP=READ, Error Number=1117, CC=416, KEY=FF, ASC=FF, ASCQ=FF, SENSE=**NONE**, Description=An incorrect length block was read). Refer to Appendix D in the 'Messages' manual for recommended action. Athanasios Vacopoulos 011-9954-7809 Cel 011-5071-0223 Comercial athanasios@cc.com.br ******************************************************************************** *************************** Para verificar status e stop/start do ISC portal na Edes126. Caso o status e stop no funcionem efetuar um kill -9 nos processos do ISC ps -ef |grep -i isc Diretrio de instalao /opt/IBM/ISC601/AppServer/bin Status ./serverStatus.sh ISC_Portal -username iscadmin -password suporte Stop ./stopServer.sh ISC_Portal -username iscadmin -password suporte Start ./startServer.sh ISC_Portal -username iscadmin -password suporte

Remover Administration Center /opt/IBM/ISC601/ ./acuninst.sh iscadmin suporte Successfully uninstalled the TSM Administration Center. Remover ISC opt/IBM/ISC601/_iscuninst/./uninstaller -console Para verificar status e stop/start do ISC portal no Ebesp-ISC(10.0.200.130) C:\Program Files\IBM\ISC601\AppServer\bin> wasservice -status "ISC 6.0.1 Runtime Service" wasservice -start "ISC 6.0.1 Runtime Service" wasservice -stop "ISC 6.0.1 Runtime Service" ******************************************************************************** **************************** Definir e Formatar LOG e DB define dbv /tsm_edinfor/db/db007.dsm Formatsize=20480 define dbv /tsm_db/db001.dsm Formatsize=100 dsmserv format 2 /tsm_edinfor/log/log001.dsm /tsm_edinfor/log/log002.dsm 5 /tsm_ edinfor/db/db001.dsm \ /tsm_edinfor/db/db002.dsm /tsm_edinfor/db/db003.dsm\ /tsm_edinfor/db/db004.dsm /tsm_edinfor/db/db005.dsm ******************************************************************************** ***************************** (Definir Library) define library LIBLTO2 libtype=scsi (Definir path da library) define path teste liblto2 srct=server autodetect=yes destt=library device=lb4.0. 0.1 online=yes (Definir Drive) define drive liblto2 drv01 (Definir path do drive) define path teste drv01 srct=server autodetect=yes destt=drive libr=liblto2 devi ce=mt5.0.0.1 (Checkin nas fitas com cdigo de barra) checkin libv liblto2 search=yes status=scratch checklabel=barcode (Definir device class da library) define devc lto2class libr=liblto2 devtype=lto format=drive mountlimit=drives backup db dev=lto2class type=full vol=ABB773 checkout libv lb4.0.0.3 000094 label libv liblto2 search=yes labels=barcode overwrite=yes label libv lb4.0.0.3 search=yes labels=barcode checkin=scratch overwrite=yes

################################################################################ ################ Barcode Label Requirements A barcode must use only uppercase letters A to Z and/or numeric values 0 to 9. Y our library currently supports Code 39 type barcode labels. In addition, barcode labels must adhere to the following requirements: ANSI MH10.8M-1983 Standard Number of digits: 5-13 (based on mode) Background reflection: greater than 25 percent Print contrast: greater than 75 percent No black marks should be present in the intermediate spaces or rest zones. No white areas should be present on the bars. Bars should read in a uniform direction. Nonuniform reading directions are feasi ble in principle, but have a detrimental effect on performance. Quality Testing You will have the best scanning results if you use ADIC-supplied barcode labels. If you want to print your own ################################################################################ ################# select stgpool_name, count (*) as "Qte. Empty" from volumes where stgpool_name i n (select stgpool_name from stgpools where (pooltype in ('PRIMARY', 'COPY')) an d devclass <> 'DISK' ) and status = 'EMPTY' group by stgpool_name select drive_name, device_type, drive_state, volume_name,allocated_to from drive s where device_type='LTO' select volume_name, pct_utilized, stgpool_name, EST_CAPACITY_MB,STATUS from volu mes where volume_name in (select volume_name from drives where volume_name like '%EM%' or volume_name like '%OF%' or volume_name like '%A%') order by EST_CAPACI TY_MB desc select drive_name, device_type, drive_state, volume_name,allocated_to from drive s where device_type='LTO' select SOURCE_NAME,LIBRARY_NAME,DESTINATION_NAME,DEVICE,ONLINE from paths where ONLINE='NO' select stgpool_name, count (*) as "Qte. Empty" from volumes where stgpool_name i n (select stgpool_name from stgpools where (pooltype in ('PRIMARY', 'COPY')) an d devclass <> 'DISK' ) and status = 'EMPTY' group by stgpool_name select stgpool_name, volume_name from volumes where stgpool_name in (select stgp ool_name from stgpools where (pooltype in ('PRIMARY', 'COPY')) and devclass <> 'DISK' ) and status = 'EMPTY' order by stgpool_name select library_name,volume_name, status from libvolumes where status='Scratch' select * from bu_copygroups select DOMAIN_NAME,CLASS_NAME,VEREXISTS,VERDELETED,RETEXTRA,RETONLY,SERIALIZATIO N,DESTINATION from bu_copygroups where CLASS_NAME='ACTIVE' select DOMAIN_NAME,CLASS_NAME,VEREXISTS,VERDELETED,RETEXTRA,RETONLY,SERIALIZATIO N,DESTINATION from bu_copygroups where SET_NAME='ACTIVE' select DOMAIN_NAME,CLASS_NAME,VEREXISTS,VERDELETED,RETEXTRA,RETONLY,SERIALIZATIO N,DESTINATION from bu_copygroups where SET_NAME='ACTIVE' order by VEREXISTS desc select stgpool_name from stgpools where collocate<> 'NO' select * from columns where tabname='BACKUPS' select NODE_NAME,HL_NAME||LL_NAME,BACKUP_DATE,DEACTIVATE_DATE,CLASS_NAME from ba ckups order by BACKUP_DATE select NODE_NAME,HL_NAME||LL_NAME,BACKUP_DATE,DEACTIVATE_DATE,CLASS_NAME from ba ckups order by BACKUP_DATE select drive_name, device_type, drive_state, volume_name,allocated_to from drive s where device_type='LTO' select library_name,volume_name, status from libvolumes where status='Scratch' select stgpool_name, volume_name, pct_utilized from volumes where stgpool_name i

n (select stgpool_name from stgpools where (pooltype in('PRIMARY', 'COPY')) and devclass <> 'DISK' ) and status = 'FILLING' order by stgpool_name select stgpool_name, count (*) as "Qte. Empty" from volumes where stgpool_name in (select stgpool_name from stgpools where (pooltype in ('PRIMARY', 'COPY')) a nd devclass <> 'DISK' ) and status = 'EMPTY' group by stgpool_name select * from columns where tabname='VOLUMEUSAGE' select NODE_NAME,COPY_TYPE,FILESPACE_NAME,STGPOOL_NAME,VOLUME_NAME from volumeus age where NODE_NAME='EDES115_TDP' select NODE_NAME,COPY_TYPE,FILESPACE_NAME,STGPOOL_NAME,VOLUME_NAME from volumeus age where NODE_NAME='EDES115' select NODE_NAME,COPY_TYPE,FILESPACE_NAME,STGPOOL_NAME,VOLUME_NAME from volumeus age where NODE_NAME='EBESP-EM-NOTES-D' select * from archives where node_name='EDES118' and ll_name like '%bdvqbrmr.aff %' select * from archives where ll_name like '%bdvqbrmr.aff%' and node_name='EDES11 8' UPDATE STGPOOL sit_pool reclaim=95 route change add delete 172.18.12.0 mask 255.255.255.0 172.16.37.67 metric 1 -p ******************************************************************************** ************ Comgas82 e 78 somente com root dsmc -servername=client_oracle q ar "/oradata/C2P1/exp/*" retrieve /oradata/C2P1/exp/BCK.C2P1.1.20070811.dmp.Z /oradata/C2P1/exp/restore/e xp/restore/

Você também pode gostar