Professional Documents
Culture Documents
Prepared by Shiva
TSM server software will be started automatically when the system comes up using following entry in /etc/inittab
autosrvr:2:once:/usr/tivoli/tsm/server/bin/rc.adsmserv >/dev/console 2>&1 #Start the Tivoli Storage Manager server
Note : In TSM 5.3, port 1580 will not be listening. In AIX 5.3, default you need to issue "grep" for port names instead of numbers since above ports have entry in /etc/services. Check /etc/services for port names.
In case tsm server does not come up, you can start the same for debugging purpose like
# cd /usr/tivoli/tsm/server/bin
# ./dsmserv
ANR7800I DSMSERV generated at 08:09:53 on Jun 4 2003. Tivoli Storage Manager for AIX-RS/6000 Version 5, Release 1, Level 7.0 Licensed Materials - Property of IBM 5698-ISE (C) Copyright IBM Corporation 1999,2002. All rights reserved. U.S. Government Users Restricted Rights - Use, duplication or disclosure
restricted by GSA ADP Schedule Contract with IBM Corporation. ANR0900I Processing options file dsmserv.opt. ANR7811I Direct I/O will be used for all eligible disk files. ANR0990I Server restart-recovery in progress. ANR0200I Recovery log assigned capacity is 8 megabytes. ANR0201I Database assigned capacity is 16 megabytes. ANR0306I Recovery log volume mount in progress. ANR0353I Recovery log analysis pass in progress. ANR0354I Recovery log redo pass in progress. ANR0355I Recovery log undo pass in progress. ANR0352I Transaction recovery complete. ANR2100I Activity log process has started. ANR4726I The NAS-NDMP support module has been loaded. ANR8441E Initialization suceeded for SCSI library 3584LIB1. ANR1305I Disk volume /usr/tivoli/tsm/server/bin/backup.dsm varied online. ANR1305I Disk volume /usr/tivoli/tsm/server/bin/archive.dsm varied online. ANR1305I Disk volume /usr/tivoli/tsm/server/bin/spcmgmt.dsm varied online. ANR0984I Process 1 for EXPIRATION started in the BACKGROUND at 12:52:42. ANR0811I Inventory client file expiration started as process 1. ANR2803I License manager started. ANR2860I Server is licensed to support Tivoli Disaster Recovery Manager. ANR2827I Server is licensed to support Tivoli Data Protection for Oracle for a quantity of 1. ANR2827I Server is licensed to support Tivoli Data Protection for R/3 for a quantity of 2. ANR2828I Server is licensed to support Tape Library Sharing. ANR2827I Server is licensed to support Managed System for LAN for a quantity of 10. ANR2827I Server is licensed to support Managed System for SAN for a quantity of 10. ANR2827I Server is licensed to support Managed Library for a quantity of 1. ANR8200I TCP/IP driver ready for connection with clients on port 1500. ANR8190I HTTP driver ready for connection with clients on port 1580. ANR8285I Shared Memory driver ready for connection with clients on port 1510 ANR2560I Schedule manager started. ANR0993I Server initialization complete. ANR0916I TIVOLI STORAGE MANAGER distributed by Tivoli is now ready for use. ANR0812I Inventory file expiration process 1 completed: examined 0 objects, deleting 0 backup objects, 0 archive objects, 0 DB backup volumes, and 0 recovery plan files. 0 errors were encountered. ANR0985I Process 1 for EXPIRATION running in the BACKGROUND completed with completion state SUCCESS at 12:52:43.
TSM:TSMSERV> TSM:TSMSERV>halt
tsm: TSMSERV> q db Available Space (MB) --------16 Assigned Capacity (MB) -------16 Maximum Extension (MB) --------0 12 Maximum Page Reduction Size (MB) (bytes) --------------4,096 4,096 Total Used Pct Usable Pages Util Pages ----------------- ----245 6.0 6.0 Max. Pct Util -----
tsm: TSMSERV> q db f=d Available Space (MB): 16 Assigned Capacity (MB): 16 Maximum Extension (MB): 0 Maximum Reduction (MB): 12 Page Size (bytes): 4,096 Total Usable Pages: 4,096 Used Pages: 245 Pct Util: 6.0 Max. Pct Util: 6.0 Physical Volumes: 1 Buffer Pool Pages: 512 Total Buffer Requests: 1,172 Cache Hit Pct.: 87.97 Cache Wait Pct.: 0.00 Backup in Progress?: No Type of Backup In Progress: Incrementals Since Last Full: 0 Changed Since Last Backup (MB): 0.11 Percentage Changed: 11.02 Last Complete Backup Date/Time: 11/24/05 09:00:03
tsm: TSMSERV> q log Available Space (MB) --------8 Assigned Capacity (MB) -------8 Maximum Maximum Page Extension Reduction Size (MB) (MB) (bytes) ----------------- ------0 4 4,096 Total Used Usable Pages Pages --------- --------1,536 129 Max. Pct Util ----- ----8.4 9.2 Pct Util
tsm: TSMSERV> q dbvol Volume Name (Copy 1) ---------------/usr/tivoli/tsm/server/bin/db.dsm Copy Volume Name Status (Copy 2) ------ ---------------Sync'd Copy Volume Name Status (Copy 3) ------ ---------------Undefined Copy Status -----Undefined
tsm: TSMSERV> q logvol Volume Name (Copy 1) ---------------/usr/tivoli/tsm/server/bin/log.dsm Copy Volume Name Copy Volume Name Status (Copy 2) Status (Copy 3) ------ --------------------- ---------------Sync'd Undefined Copy Status -----Undefined
tsm: TSMSERV> extend db 16 ANR2248I Database assigned capacity has been extended. tsm: TSMSERV> q db Available Space (MB) --------32 Assigned Capacity (MB) -------32 Maximum Extension (MB) --------0 Maximum Reduction (MB ) --------28 Page Size (bytes) ------4,096 Total Used Usable Pages Pages --------- --------8,192 255 Pct Util ----3.1 Max. Pct Util ----3.1
tsm: TSMSERV> extend log 8 ANR2269I Recovery log extension process initiated (process ID 13). ANS8003I Process number 13 started. tsm: TSMSERV> q log Available Space (MB) --------16 Assigned Capacity (MB) -------16 Maximum Extension (MB) --------0 Maximum Reduction (MB) --------12 Page Size (bytes) ------4,096 Total Usable Pages --------3,584 Used Pages --------205 Pct Util ----5.7 Max. Pct Util ----5.7
tsm: TSMSERV> backup db type=full devclass=fileclass1 ANR2280I Full database backup started as process 6. ANS8003I Process number 6 started. tsm: TSMSERV>q proc Process Process Description Number --------------------------6 Database Backup
Status ------------------------------------------------Full backup: 0 pages of 248 backed up. Waiting for mount of scratch volume (0 seconds).\
tsm: TSMSERV> cancel proc 6 tsm: TSMSERV> q req tsm: TSMSERV> reply 001 tsm: TSMSERV> reply 001 label=tape001 tsm: TSMSERV> cancel req 001 tsm: TSMSERV> q session Sess Comm. Number Method ----------2 Tcp/Ip Sess State -----Run Wait Time -----0S Bytes Bytes Sess Platform Sent Recvd Type ------- ----------- -------152.6 K 2.8 K Admin AIX Client Name -------------------ADMIN
-----DRIVES DRIVES
FILE
-> "Bulk" in tsm represent the input / output port of the library hardware.
For checkin of tapes with data tsm: TSMSERV> checkin libvol 3584lib1 search=bulk status=pri checklabel=barcode
Note : The above are background commands which require input from user, so use "q req" and reply the request using "reply <request ID>"
"BULK" in tsm represent the input / output port of the library hardware. "SCR" stands for scratch "PRI" stands for private
Storage Pools
tsm: TSMSERV> q stgpool
Storage Pool Name ----------ARCHIVEPOOL BACKUPPOOL BKP_LTOPOOL DRM_LTOPOOL SAP_DTAPOOL SAP_LOGPOOL Device Estimated Pct Class Name Capacity Util (MB) Pct ------------------- ----DISK 8.0 0.0 DISK 8.0 0.0 3584CLASS1 0.0 3584CLASS2 0.0 3584CLASS1 0.0 3584CLASS1 0.0 Pct Migr Pct ----0.0 0.0 0.0 0.0 0.0 0.0 High Low Mig Mig ---90 90 0.0 0.0 0.0 --70 70 90 90 90 Next Storage Pool -----------
70 70 70
Backup primary storage pool to copy storage pool tsm: TSMSERV> backup stgpool sap_dtapool drm_ltopool
To preview the same without doing actual backup tsm: TSMSERV> backup stgpool sap_dtapool drm_ltopool preview=yes wait=yes
To decide on the reclamation value for copy storage pool, use following SQL statement tsm: TSMSERV> select volume_name,pct_reclaim from volumes where \ cont> stgpool_name='DRM_LTOPOOL' order by pct_reclaim desc
To start reclamation for DR copy storage pool tsm: TSMSERV> update stgpool drm_ltopool reclaim=95
Volumes
List volumes tsm: TSMSERV> q vol To list volume pertaining to specific storage pool tsm: TSMSERV> q vol stgpool=sap_dtapool To list volume in filling status tsm: TSMSERV> q vol status=filling To change the volume access to "read write" tsm: TSMSERV> update vol a00001 access=readw To change the volume access to "read only" tsm: TSMSERV> update vol a00001 access=reado To list the contents of specific volume tsm: TSMSERV> q content a00001
Expiring inventory
When backup data exceeds configured policy, the older data is marked for expiry in tsm database. Those database records are removed by "expire" process. To run expire manually tsm: TSMSERV> expire inventory
Running tsm commands in external file /tmp/test.mac tsm: TSMSERV> macro /tmp/test.mac
Activity log
All information, errors are logged in tsm database. The same can be viewed by (default will show last 1 hour) tsm: TSMSERV> q actlog To view the activity from specific date & time tsm: TSMSERV> q actlog begindate=today-1 begintime=13:00 To view the activity log from specific date, time, string tsm: TSMSERV> q actlog begindate=today-1 begintime=13:00 search="EXPIRE"
TSM administrators
To list configured adminitrators tsm: TSMSERV> q admin To change administrator's password tsm: TSMSERV> update admin client ax92bdoi To lock a adminitrator tsm: TSMSERV> lock admin operator ANR2072I Administrator CLIENT locked. To unlock a administrator tsm: TSMSERV> unlock admin operator ANR2074I Administrator CLIENT unlocked.
Nodes
To list configured nodes tsm: TSMSERV> q node To change password of node tsm: TSMSERV> update node client ab12sdhy To lock a node, issue tsm: TSMSERV> lock node client To unlock a node, issue tsm: TSMSERV> unlock node client
Schedules
To list configured client schedules tsm: TSMSERV> q sched Domain -----------GENDOM * Schedule Name ---------------TEST Action -----Inc Bk Start Date/Time Duration --------------------------11/16/05 15:00:00 1H Period Day -------1D Any
To list configured administrative schedules tsm: TSMSERV> q sched t=a * Schedule Name ---------------Start Date/Time -------------------Duration -------Period -----Day ---
Events
All scheduled actitives are logged as events. To list todays client schedule events tsm: TSMSERV> q event * * To list yesterday's events tsm: TSMSERV> q event * * begindate=today-1 To list administrative schedule events tsm: TSMSERV> q event * t=a Scheduled Start -------------------11/28/05 09:00:00 Actual Start -------------------11/28/05 09:00:26 Schedule Name ------------TSMADMIN Status --------Completed
To restore /etc/hosts file into the same structure tsm> restore /etc/hosts To restore /etc/hosts file into /tmp directory tsm> restore /etc/hosts /tmp/ To restore directory /etc and all its subdirectories tsm> restore /tmp/11/ -subdir=yes
Archive commands To archive file /etc/hosts tsm> arch /etc/hosts To archive directory /etc, /var and its subdirectories tsm> arch /etc/ /var/ -subdir=yes -desc="Month end archive dt 28/11/2005" To archive entire filesystem /var , /usr to specific management class tsm> arch /var/ /usr/ -subdir=yes -archmc=archive0030 To retrieve the file /etc/hosts tsm> retrieve /etc/hosts To retrieve the directory /etc and its subdirectories tsm> retrieve /etc/ -subdir=yes To retrieve the file /etc/hosts to /tmp directory tsm> retrieve /etc/hosts /tmp/
Image backup
To do image backup of a filesystem, unmount the filesystem and issue tsm> backup image /home To do image backup of raw partition / logical volume, issue tsm> backup image /dev/lv00 To restore image of a filesystem tsm> restore image /home To restore image of a raw partition / logical volume tsm> restore image /dev/lv00 Note : Before restoring image the filesystem, logical volume should be available.