# 格式化資料庫
/opt/tivoli/tsm/server/bin/dsmserv format dbdir=/TSMDRBD/tsmdb activelogsize=4096 activelogdir=/TSMDRBD/tsmactlog archlogdir=/TSMDRBD/tsmarchlog
# 配置HP DAT72單巻磁帶機
DEFINE LIBRARY hptape1 LIBTYPE=manual
DEFINE DRIVE hptape3 tapedrv01 ONLINE=yes
DEFINE PATH server1 tapedrv01 SRCTYPE=server DESTTYPE=drive LIBRARY=hptape3 DEVICE=/dev/tsmscsi/mt0 ONLINE=yes
DEFINE DEVCLASS dat72usb LIBRARY=hptape3 DEVTYPE=4mm FORMAT=dds5c MOUNTLIMIT=drives
DEFINE DEVCLASS dds4cdev2 LIBRARY=hptape3 DEVTYPE=4mm FORMAT=dds4c estcapacity=40G
DEFINE DEVCLASS badir DEVT=FILE FORMAT=DRIVE MAXCAP=5120000K MOUNTL=20 DIR=/gpfs SHARE=NO
DEFINE STGPOOL diskpool2 devfile1 nextpool=dds4cpool
DEFINE STGPOOL dds4cpool2 dds4cdev HIGHMIG=90 LOWMIG=70 MAXSCRATCH=100
———————————————————————–
LABEL LIBVOLUME hptape3 tape007 OVERWRITE=yes
DEFINE VOLUME testpool tape002 ACCESS=readwrite
DEFINE VOLUME dds4cpool tape006 ACCESS=readwrite
# TSM DB Backup
BACKUP DB DEVCLASS=dds4cdev TYPE=full VOLUMENAME=tape006
BACKUP DB DEVCLASS=disk TYPE=full VOLUMENAME=tape007
BACKUP stgpool backuppool diskpool
# 刪除Volume history
del volh t=dbb tod=today-1
del volh t=all tod=today
# 查詢Volume資料
query content volumename
# 修改備份保留份數
update copygroup standard standard standard verexists=5
activate policyset standard standard
def copygroup newdomain newset newmgclass destination=bapool verexists=9
# Maximum Client Mount Points
update node TSMC maxnummp=5
# Register Administrator
REGister Admin admin_name password
# Grant authority
grant auth admin class=system
# 設定不需密碼可登入
set AUthentication off
# Register TSM License
reg lic file=*.lic
#
Update node <node_name> backdelete= Yes
dsmc del ba “/gpfs/*” -deltype=all
# 查詢所有table名稱
tsm: TSMSRV> select tabname from syscat.tables where tabschema=’TSMDB1’ and type=’V’
# 查詢table所有欄位
tsm: TSMSRV> select colname from syscat.columns where tabschema=’TSMDB1’and tabname=’ACTLOG’
# Delete volume
DELETE VOL 000002L4 DISCARDDATA=YES WAIT=YES
#Checkin Cleaner
CHECKIN LIBVOLUME tsmslib STATUS=cleaner CHECKLABEL=BARCODE SWAP=NO MOUNTWAIT=60 SEARCH=BULK waittime=0 cleanings=1
nohup /opt/tivoli/tsm/server/bin/dsmserv insertdb manifest=/home/tsminst3/manifest.txt >insert.out 2>&1 &
#Move data
Move data A00001L6 STG=MYSTG
#BACKUP STGPOOL (Back up primary storage pool to copy storage pool)
BAckup STGpool primary_pool_name copy_pool_name
dsmadmc -id=admin -pa=ebcadmin -dataonly=y -quiet “select volume_name from volumes where stgpool_name=’MYPOOL’ and volume_name=’A00001L6′”
dsmc i /tmp/ -optfile=/opt/tivoli/tsm/client/ba/bin/dsm.opt.tsmc2 -su=y > mylog
#啟動用戶端排程定時器
nohup dsmc schedule 2>/dev/null&
ps -ef|grep dsmc|grep schedule