Sunteți pe pagina 1din 4

label libv ts3310lib search=bulk labelsource=barcode checkin=scr overwrite=yes

( Tape Bener2 Fresh BARU )

checkin libvol ts3310lib search=bulk status=private checkl=barcode

update vol ME0402L6 acc=reado

update vol * acc=reado

q eve * * f=d begindate=-1 >


C:\Users\Administrator\Documents\Backup\Backup_Tape_Result_Daily_(23-12-2018).txt
q eve * * f=d >
C:\Users\Administrator\Documents\Backup\Backup_Tape_Result_weekly_(26-10-2018).txt
q eve * * f=d >
C:\Users\Administrator\Documents\Backup\Backup_Tape_Result_monthly_(01-10-2018).txt

q eve * * begindate=-4 >


C:\Users\Administrator\Documents\Backup\Backup_Tape_Result_Daily_(16-12-2018).txt

checkout libvol ts3310lib rem=bulk


vollist=ic0046l6,ic0050l6,ic0051l6,ic0052l6,lto054l6,ic0053l6,ic0055l6,ic0056l6,lto
016l6,ic0136l6,LTO040l6,ic0159l6,ic0372l6,ic0401l6,lto055l6,ic0475l6,lto048l6,me040
8l6,lto099l6,lto098l6,ic0504l6,lto099l6 checkl=n (Tape Hari Senin)
checkout libvol ts3310lib rem=bulk
vollist=ic0059l6,ic0063l6,ic0064l6,ic0065l6,lto052l6,ic0066l6,ic0068l6,ic0069l6,lto
017l6,ic0138l6,LTO041l6,ic0257l6,ic0373l6,ic0403l6,me0486l6,ic0476l6,lto091l6,me039
6l6,lto051l6,lto039l6,ic0505l6 checkl=n (Tape Hari Selasa)
checkout libvol ts3310lib rem=bulk
vollist=ic0072l6,ic0076l6,ic0077l6,ic0078l6,lto056l6,ic0079l6,ic0081l6,ic0082l6,ic0
440l6,ic0127l6,LTO042l6,ic0158l6,lto094l6,ic0405l6,ic0418l6,ic0477l6,lto085l6,me039
8l6,lto092l6,lto088l6,ic0506l6,tsn286l6,ic0538l6 checkl=n (Tape Hari Rabu)
checkout libvol ts3310lib rem=bulk
vollist=ic0085l6,ic0439l6,ic0090l6,ic0091l6,lto057l6,ic0092l6,ic0094l6,ic0095l6,ic0
420l6,lto087l6,LTO043l6,ic0396l6,ic0368l6,ic0407l6,ic0478l6,lto086l6,ME0400l6,lto08
8l6,ic0419l6,lto100l6,ic0507l6 checkl=n (Tape Hari Kamis)
checkout libvol ts3310lib rem=bulk
vollist=ic0002l6,ic0022l6,ic0024l6,ic0031l6,lto073l6,ic0036l6,ic0113l6,ic0114l6,lto
020l6,ic0130l6,LTO044l6,ic0019l6,ic0369l6,ic0409l6,me0489l6,ic0479l6,lto077l6,ME040
2L6,lto095l6,lto084l6,ic0508l6 checkl=n (Tape Hari Jumat)
checkout libvol ts3310lib rem=bulk
vollist=ic0098l6,ic0102l6,ic0104l6,ic0107l6,ic0132l6,ic0411l6,ic0370l6,IC0436l6,ic0
509l6,ic0524l6,ic0527l6,ic0530l6,ic0531l6,ic0532l6,ic0533l6,ic0534l6,ic0540l6,ic054
1l6,ic0542l6,lto021l6,lto045l6 checkl=n (Tape Hari Sabtu)
checkout libvol ts3310lib rem=bulk
vollist=ic0006l6,ic0023l6,ic0025l6,ic0037l6,ic0039l6,ic0043l6,ic0134l6,ic0371l6,ic0
400l6,ic0413l6,ic0481l6,ic0510l6,ic0535l6,ic0536l6,ic0537l6,ic0543l6,lto022l6,lto04
6l6,lto075l6,lto078l6,ME0406l6 checkl=n (Tape Hari Minggu)

lto075l6,lto022l6,LTO046l6,

ic0437l6
checkout libvol ts3310lib rem=bulk vollist=LTO043L6checkl=n
checkout libvol ts3310lib rem=bulk vollist=ic0102L6,ic0523l6 checkl=n
checkout libvol ts3310lib rem=bulk
vollist=ic0436L6,ic0509L6,ic023L6,ic0524L6,ic0525L6,ic0526L6,ic0527L6,ic0530L6,ic05
31L6,ic0532L6,LTO021L6,LTO074L6,ME0404L6 checkl=n

update schedule DCTSM01_SUPPORTING_DOMAIN BACKUP_DCTSM01_SUPPORTING starttime=11:15


update schedule DCTSM01_EBANK_domain BACKUP_DCTSM01_EBANK starttime=now
update schedule DCRTGS201_DOMAIN BACKUP_DCDBRTGS201 starttime=now
update schedule DCTSM01_IMPORTANT_DOMAIN BACKUP_DCTSM01_IMPORTANT starttime=11:00
update schedule DCDBCS202_DOMAIN BACKUP_DCDBCS202 starttime=10:00
update schedule PINFHORSAIX_DOMAIN BACKUP_PINFHORSAIX starttime=now
update schedule DCSKNNGDB01_DOMAIN BACKUP_DCDBSKNNGDB01 starttime=now
update schedule DCDBPSAK01_DOMAIN BACKUP_DCDBPSAK01 starttime=10:00
update schedule DCiass_ppatk_domain BACKUP_dciass_ppatk starttime=now OK
update schedule dcmpndb02_domain BACKUP_dcmpndb02 starttime=now
update schedule dcppatk01_domain BACKUP_dcppatk01 starttime=now
update schedule DCilds01_DOMAIN BACKUP_DCilds01 starttime=now OK
update schedule DCforex01_DOMAIN BACKUP_DCforex01 starttime=08:30
update schedule DClll01_DOMAIN BACKUP_DClll01 starttime=now OK
update schedule dcdbfgaml1_DOMAIN BACKUP_DCDBGAML1 starttime=now
update schedule dcdbgccm1_DOMAIN BACKUP_dcdbgccm1 starttime=now
update schedule PINFHBIFS2_DOMAIN BACKUP_PINFHBIFS2 starttime=now
update schedule DCDBATMBERSAMA01_DOMAIN BACKUP_DCDBATMBERSAMA starttime=now
update schedule DCDBSID01_DOMAIN BACKUP_DCDBSID01 starttime=now OK
update schedule DCDBgcms1_DOMAIN BACKUP_DCDBgcms1 starttime=now
update schedule DCDBNPG01_DOMAIN BACKUP_DCDBNPG01 startt=now

define volume DCDBNPG01_pool ic0504L6 access=readonly


define volume pinfhorsaix_pool IC0541L6 access=readonly
define volume dcdbcs202_pool ic0543L6 access=readonly (no tape)
define volume dcsknngdb01_pool ic0539L6 access=readonly
define volume DCTSM01_IMPORTANT_pool ic0338l6 access=readonly
define volume dcrtgs201_pool ic0529L6 access=readonly
define volume dcdbgcms1_pool LTO091L6 access=readonly
define volume dcdbgccm1_pool ic0542L6 access=readonly
define volume DCDBATMBERSAMA01_pool ic0538L6 access=readonly
define volume dcmpndb02_pool lto094L6 access=readonly
define volume PINFHBIFS2_pool ic0439L6 access=readonly
define volume DCDBSID01_pool ic0524L6 access=readonly
define volume DCTSM01_EBANK_pool ic0525L6 access=readonly
define volume DCforex01_pool ic0525L6 access=readonly
define volume dcppatk01_pool ic0423L6 access=readonly
define volume DCiass_ppatk_pool ic0527l6 access=readonly
define volume DCTSM01_EBANK_pool ic0532l6 access=readonly
define volume DCforex01_pool ic0536l6 access=readonly
define volume DCTSM01_SUPPORTING_pool ic0529l6 access=readonly

DCDBGCCM1_DOMAIN BACKUP_DCDBGCCM1
DCforex01

del vol ic0138l6 discarddata=yes

del vol jk0065l6 discarddata=yes

del vol LTO045L6 discarddata=yes

define volume DCTSM01_IMPORTANT_pool LTO045L6 access=readonly


audit library ts3310lib checklabel=yes

checkout libvol ts3310lib rem=bulk


vollist=ic0085l6,ic0439l6,ic0091l6,ic0092l6,ic0094l6,ic0095l6,lto087l6,ic0368l6,ic0
407l6,ic0478l6,lto086l6,lto088l6,ic0419l6,lto100l6,ic0507l6 checkl=n

checkout libvol ts3310lib rem=bulk


vollist=ic0423l6,ic0528l6,lto043l6,lto074l6,lto081l6,lto096l6,tsn282l6 checkl=n

checkout libvol ts3310lib rem=bulk


vollist=ic0002l6,ic0022l6,ic0024l6,ic0031l6,lto073l6,ic0036l6,ic0113l6,ic0114l6,lto
020l6,ic0130l6,ic0019l6,ic0369l6,ic0409l6,me0489l6,ic0479l6,lto077l6l,lto095l6,lto0
84l6,ic0508l6 checkl=n
================================================
pindah database
================================================
q devclass
q devclass BACKUPCATALOG
q devclass BACKUPCATALOG f=d
update devclass BACKUPCATALOG dir="E:\BACKUPCATALOG"
q devclass BACKUPCATALOG f=d
================================================

kasus server primary client down dan kita mau backup ke server standby client cara
nya

ubah dsm.sys di server satndby di /usr/tivoli/tsm/client/ba/bin64


lalu
vi dsm.sys

SErvername DCTSM01
COMMMethod TCPip
TCPPort 1500
TCPServeraddress 123.64.30.116
Passwordaccess generate
schedmode prompted
Nodename PINFHBIFS2 ini di rubah nama node name nya persis
node name nya server yg primary done
*enablelanfree yes
schedlogname /usr/tivoli/tsm/client/ba/bin64/dsmsched_d.log
errorlogname /usr/tivoli/tsm/client/ba/bin64/dsmerror_d.log
commrestartduration 180

klo udah wq! enter ini untuk save perubahan dari file dsm.sys

klo sudah jalanin ./dsmc


user nama host primarynya
passord nama host primarynya

Kaya ini

root@DCDBATMSW01:/usr/tivoli/tsm/client/ba/bin64>./dsmc
IBM Tivoli Storage Manager
Command Line Backup-Archive Client Interface
Client Version 7, Release 1, Level 8.0
Client date/time: 07/11/18 16:04:45
(c) Copyright by IBM Corporation and other(s) 1990, 2017. All Rights Reserved.

Node Name: PINFHBIFS2


Please enter your user id <PINFHBIFS2>: PINFHBIFS2

Please enter password for user id "PINFHBIFS2":

Session established with server DCTSM01: Windows


Server Version 8, Release 1, Level 4.000
Server date/time: 07/11/18 16:07:42 Last access: 07/04/18 02:58:20

tsm> quit

di server nya TSM 30.116


lakuin update schedule dengan direktory yang di backup di server baru bila
direktory nya beda

update schedule PINFHBIFS2_DOMAIN BACKUP_PINFHBIFS2 act=sel obj="/db408/rman.f/*"


starttime=02:30:00

checkout libvol ts3310lib rem=bulk


vollist=ic0006l6,ic0010l6,ic0023l6,ic0025l6,lto075l6,ic0037l6,ic0039l6,ic0043l6,lto
022l6,ic0134l6,ic0400l6,ic0371l6,ic0413l6,ME0491l6,IC0481l6,lto078l6,ME0406l6,lto07
2l6,ic0437l6,ic0510l6 checkl=n

loogin DCDBPSAK01 / DCDBNPG01


user:sysmon
password:P@ssw0rd123
su - root
Password:P@ssw0rd123
cd /opt/tivoli/tsm/client/ba/bin

./cek_tsm_service
kill -9
./start_tsm_service_scheduler.sh

cara delete archive log


su - oracle
rman target /
RMAN> delete archivelog until time 'SYSDATE-3';

label libvolume TS3310LIB search=bulk checkin=scratch labels=barcode overwrite=yes


checkin libvol ts3310lib search=bulk status=scratch checkl=barcode