@@@@@@@@@@@@@@@@@ DEFINING DEVICE CLASSES
def devc filedev devt=file direc=h:\tsm_practice\filedev\
q devc
@@@@@@@@@@@@@@@@@ DEFINING STORAGE POOLS
q stg
define stg diskpool_by_me diskdev
define stg tapepool_by_me filedev poolt=primary maxscr=100
define stg copypool_by_me filedev poolt=copy maxscr=100
q stg
@@@@@@@@@@@@@@@@@ DEFINING VOLUMES FOR STORAGE POOLS
q vol
define vol diskpool_by_me h:\tsm_practice\volume\diskvol1.dsm f=200
define vol tapepool_by_me h:\tsm_practice\volume\tapevol1.dsm f=200
define vol tapepool_by_me h:\tsm_practice\volume\tapevol2.dsm f=200
define vol copypool_by_me h:\tsm_practice\volume\copyvol1.dsm f=200
define vol copypool_by_me h:\tsm_practice\volume\copyvol2.dsm f=200
q vol
q content h:\tsm_practice\volume\tapevol1.dsm
q con h:\tsm_practice\volume\tapevol1.dsm >> h:\tsm_practice\log_files\tapevolconts.acc
@@@@@@@@@@@@@@@@@ POLICY MANAGEMENT(DEFINING POLICIES)
q domain
def domain domain_4_qtp_practice
q policy
def policyset domain_4_qtp_practice qtp_pract_policy_set
q mgmt
def mgmtc domain_4_qtp_practice qtp_pract_policy_set qtp_pract_mgmtc
q copy
def copy domain_4_qtp_practice qtp_pract_policy_set qtp_pract_mgmtc standard verexists=3 verdeleted=2 retextra=2 retonly=3 destination=diskpool
assign defmgmtc domain_4_qtp_practice qtp_pract_policy_set qtp_pract_mgmtc
validate policy domain_4_qtp_practice qtp_pract_policy_set
ACTIVATE policy domain_4_qtp_practice qtp_pract_policy_set
@@@@@@@@@@@@@@@@@ connecting nodes to policy domain
update Node baclient1 baclient1 domain=domain_4_qtp_practice
update Node baclient2 baclient2 domain=domain_4_qtp_practice
@@@@@@@@@@@@@@@@@ assigning next storage pool
upd stg diskpool_by_me nextstg=tapepool_by_me
q vol
q vol stg=tapepool_by_me
@@@@@@@@@@@@@@@@@ backup & restore of baclient1 data(qtp_practice)
C:\Program Files\Tivoli\TSM\baclient>dsmc -node=baclient1
tsm> backup "H:\qtp_practice\\"
tsm> sel "H:\qtp_practice\\" -subdir=yes
tsm> backup "H:\qtp_practice\\" -ina
tsm> restore "H:\qtp_practice\\" "h:\restore\@24_7\" -ina -pick
tsm> restore "H:\qtp_practice\\" "h:\restore\@24_7\" -ina -pitdate=7/24/2013 -pittime=01:00
@@@@@@@@@@@@@@@@@ daily activities of administrator
@@@@@migration
migr stg diskpool low=0 dur=60
@@@@@backup stgpool
backup stg tapepool_by_me copypool_by_me maxprocess=2 wait=yes
@@@@@backup db
backup db devc=filedev type=full
backup db devc=filedev type=inc
@@@@@expiration
expire inventory dur=120
@@@@@reclaim stgpool
reclaim stg tapepool_by_me thres=60 duration=120
@@@@@@@@@@@@@@@@@ Admin_Schedules
q sched * t=a
def sched migr_by_me t=a cmd=" migr stg diskpool low=0 dur=20" starttime=10:00 active=yes
def sched backup_stg_by_me t=a cmd=" backup stg tapepool_by_me copypool_by_me maxprocess=2" starttime=10:10 active=yes
def sched backup_db_by_me t=a cmd=" backup db devc=filedev type=inc" starttime=10:20 active=yes
def sched expir_by_me t=a cmd=" expire inventory dur=20" starttime=10:40 active=yes
def sched reclaim_by_me t=a cmd=" reclaim stg tapepool_by_me thres=60 dur=20" starttime=10:50 active=yes
q ev * t=a
q ev *_by_me t=a
select * from tables
select * from admin_schedules
@@@@@@@@@@@@@@@@@ client_Schedules
q sched * *
select * from tables
select * from client_schedules
def sched domain_4_qtp_practice backup_qtp_pract_foldr desc="backup of qtp_practice folder which exists in h:\" objects="h:\qtp_practice\\" startdate=07/26/2013 starttime=17:45 duration=20 durunits=minutes period=1 perunits=days
def assoc domain_4_qtp_practice BACKUP_QTP_PRACT_FOLDR baclient1
@@@@@@@@@@@@@@@@@ increasing db & log volumes
def dbvol H:\tsm_practice\volume\dbvol\db2.dsm f=30
extend db 10
reduce db 10
q db
def logvol H:\tsm_practice\volume\logvol\log2.dsm f=20
extend log 10
reduce log 10
q log
@@@@@@@@@@@@@@@@@ help contents
q help
No comments:
Post a Comment