IT分销/经销

原版:TSM 6.1版本数据库备份与恢复步骤(Linux平台)

对于TSM 6.1来讲,与之前V5.5的备份和恢复方式是基本上是类似的,但为了使大家更加清晰的理解,以下给出了TSM 6.1基于linux平台上TSM数据库备份和恢复详细步骤,发给大家,做为参考!1、Install TSM Server 6.1 based on linux platform2、Config TSM Instance,startupInstance name...显示全部
对于TSM 6.1来讲,与之前V5.5的备份和恢复方式是基本上是类似的,但为了使大家更加清晰的理解,以下给出了TSM 6.1基于linux平台上TSM数据库备份和恢复详细步骤,发给大家,做为参考!

1、Install TSM Server 6.1 based on linux platform
2、Config TSM Instance,startup
Instance name为tsminst1
[root@test sqllib]# /opt/tivoli/tsm/server/bin/dsmserv
ANR7800I DSMSERV generated at 13:15:25 on Aug  5 2009.

Tivoli Storage Manager for Linux/x86_64
Version 6, Release 1, Level 2.0

Licensed Materials - Property of IBM

(C) Copyright IBM Corporation 1990, 2009.
All rights reserved.
U.S. Government Users Restricted Rights - Use, duplication or disclosure
restricted by GSA ADP Schedule Contract with IBM Corporation.

ANR7801I Subsystem process ID is 15814.
ANR0900I Processing options file /tsm/inst1/dsmserv.opt.
ANR7814I Using instance directory /tsm/inst1.
ANR4726I The ICC support module has been loaded.
ANR0990I Server restart-recovery in progress.
ANR0152I Database manager successfully started.
ANR1380I The buffer pool monitor switch is enabled.
ANR1637W Error (Write error) occurred initializing the server machine GUID.
ANR2100I Activity log process has started.
ANR4726I The NAS-NDMP support module has been loaded.
ANR1794W TSM SAN discovery is disabled by options.
ANR0984I Process 1 for EXPIRE INVENTORY (Automatic) started in the BACKGROUND
at 12:46:31 AM.
ANR0811I Inventory client file expiration started as process 1.
ANR2803I License manager started.
ANR8200I TCP/IP Version 4 driver ready for connection with clients on port
1500.
ANR0167I Inventory file expiration process 1 processed for 0 minutes.
ANR0812I Inventory file expiration process 1 completed: processed 0 nodes,
examined 0 objects, deleting 0 backup objects, 0 archive objects, 0 DB backup
volumes, and 0 recovery plan files. 0 objects were retried and 0 errors were
encountered.
ANR0985I Process 1 for EXPIRE INVENTORY (Automatic) running in the BACKGROUND
completed with completion state SUCCESS at 12:46:32 AM.
ANR2560I Schedule manager started.
ANR0993I Server initialization complete.
ANR0916I TIVOLI STORAGE MANAGER distributed by Tivoli is now ready for use.
TSM:TEST>
ANR2841W Server is NOT IN COMPLIANCE with license terms.
3、Database defined information
TSM:TEST>
q db f=d
ANR2017I Administrator SERVER_CONSOLE issued command: QUERY DB f=d

                 Database Name: TSMDB1
Total Size of File System (MB): 47,520
    Space Used by Database(MB): 448
     Free Space Available (MB): 33,961
              Page Size(Bytes):
                   Total Pages: 32,776
                  Usable Pages: 32,504
                    Used Pages: 24,084
                    Free Pages: 8,420
         Buffer Pool Hit Ratio: 97.3
         Total Buffer Requests: 51,797
                Sort Overflows: 0
               Lock Escalation: 0
       Package Cache Hit Ratio: 55.0
  Last Database Reorganization:
        Full Device Class Name:
  Incrementals Since Last Full: 0
Last Complete Backup Date/Time:


TSM:TEST>
q dbspace
ANR2017I Administrator SERVER_CONSOLE issued command: QUERY DBSPACE

                      Location: /tsmdb001
Total Size of File System (MB): 47,519.80
Space Used on File System (MB): 13,494.71
     Free Space Available (MB): 16,980.54

                      Location: /tsmdb002
Total Size of File System (MB): 47,519.80
Space Used on File System (MB): 13,494.71
     Free Space Available (MB): 16,980.54



TSM:TEST>
q log
ANR2017I Administrator SERVER_CONSOLE issued command: QUERY LOG

    Total          Used          Free
Space(MB)     Space(MB)     Space(MB)
---------     ---------     ---------
    2,048          2.68      2,037.32

TSM:TEST>
q log f=d
ANR2017I Administrator SERVER_CONSOLE issued command: QUERY LOG f=d

               Total Space(MB): 2,048
                Used Space(MB): 2.68
                Free Space(MB): 2,037.32
          Active Log Directory: /tsmlog
          Mirror Log Directory:
Archive Failover Log Directory:
         Archive Log Directory: /tsmarchlog


4、TSM server option file informaton
[root@test inst1]# more dsmserv.opt
* --------------------------------------------------------------- *
* This file was created by the TSM Instance Configuration Utility *
* --------------------------------------------------------------- *
COMMMethod    TCPIP
TCPPort 1500
DEVCONFIG     devconf.dat
VOLUMEHISTORY volhist.dat
LANGUAGE AMENG
TCPADMINPort 1500
ACTIVELOGDirectory    /tsmlog
ARCHLOGDirectory    /tsmarchlog







5、create file device  class for using database backup
TSM:TEST>
q dev filedev
ANR2017I Administrator SERVER_CONSOLE issued command: QUERY DEVCLASS filedev

Device       Device        Storage    Device       Format     Est/Max     Mount
Class        Access           Pool    Type                   Capacity     Limit
Name         Strategy        Count                               (MB)   
---------    ----------    -------    ---------    ------    --------    ------
FILEDEV      Sequential          0    FILE         DRIVE        400.0        20

TSM:TEST>

6、use "backup db" command to implement backup database
TSM:TEST>
backup db type=full dev=filedev
ANR2017I Administrator SERVER_CONSOLE issued command: BACKUP DB type=full
dev=filedev
ANR4559I Backup DB is in progress.
ANR0984I Process 3 for DATABASE BACKUP started in the BACKGROUND at 12:59:59
AM.
ANR2280I Full database backup started as process 3.
TSM:TEST>
ANR0406I Session 3 started for node $$_TSMDBMGR_$$ (DB2/LINUXX8664) (Tcp/Ip
127.0.0.1(33434)).
ANR8340I FILE volume /vol/55539599.DBV mounted.
ANR0511I Session 3 opened output volume /vol/55539599.DBV.
ANR1360I Output volume /vol/55539599.DBV opened (sequence number 1).
ANR1361I Output volume /vol/55539599.DBV closed.
ANR0514I Session 3 closed volume /vol/55539599.DBV.
ANR0403I Session 3 ended for node $$_TSMDBMGR_$$ (DB2/LINUXX8664).
ANR2841W Server is NOT IN COMPLIANCE with license terms.
ANR0406I Session 4 started for node $$_TSMDBMGR_$$ (DB2/LINUXX8664) (Tcp/Ip
127.0.0.1(33435)).
ANR8340I FILE volume /vol/55539627.DBV mounted.
ANR0511I Session 4 opened output volume /vol/55539627.DBV.
ANR1360I Output volume /vol/55539627.DBV opened (sequence number 1).
ANR1361I Output volume /vol/55539627.DBV closed.
ANR0514I Session 4 closed volume /vol/55539627.DBV.
ANR0403I Session 4 ended for node $$_TSMDBMGR_$$ (DB2/LINUXX8664).
ANR2841W Server is NOT IN COMPLIANCE with license terms.
ANR4550I Full database backup (process 3) completed.
ANR0985I Process 3 for DATABASE BACKUP running in the BACKGROUND completed with
completion state SUCCESS at 01:00:27 AM.


7、use "query volhistory" command to query  backup information
TSM:TEST>
q volh
ANR2017I Administrator SERVER_CONSOLE issued command: QUERY VOLHISTORY

                             Date/Time: 10/15/2009 12:59:59 AM
                           Volume Type: BACKUPFULL
                         Backup Series: 1
                      Backup Operation: 0
                            Volume Seq: 1
                          Device Class: FILEDEV
                           Volume Name: /vol/55539599.DBV
                       Volume Location:
                               Command:
               Database Backup ID High: 0
                Database Backup ID LOW: 1,026
         Database Backup Home Position: 0
                   Database Backup HLA: /NODE0000/
                   Database Backup LLA: FULL_BACKUP.20091015005959.1
Database Backup Total Data Bytes (MB) : 328.64
Database Backup total Log Bytes (MB) : 4.03
        Database Backup Block Num High: -1
         Database Backup Block Num Low: -1

                             Date/Time: 10/15/2009 12:59:59 AM
                           Volume Type: BACKUPFULL
                         Backup Series: 1
                      Backup Operation: 0
                            Volume Seq: 2
                          Device Class: FILEDEV
                           Volume Name: /vol/55539627.DBV
                       Volume Location:
                               Command:
               Database Backup ID High: 0
                Database Backup ID LOW: 1,027
         Database Backup Home Position: 0
                   Database Backup HLA: /NODE0000/
                   Database Backup LLA: FULL_BACKUP.20091015005959.2
Database Backup Total Data Bytes (MB) : 328.64
Database Backup total Log Bytes (MB) : 4.03
        Database Backup Block Num High: -1
         Database Backup Block Num Low: -1


TSM:TEST>


8、backup device configuration by using "backup dev" command
TSM:TEST>
backup devconfig file=/vol/devconfig.out
ANR2017I Administrator SERVER_CONSOLE issued command: BACKUP DEVCONFIG
file=/vol/devconfig.out
ANR2393I BACKUP DEVCONFIG: Server device configuration information was written
to /vol/devconfig.out.

8、backup volume history file by using "backup volhistory" command
TSM:TEST>
backup volh file=/vol/volhist.out
ANR2017I Administrator SERVER_CONSOLE issued command: BACKUP VOLHISTORY
file=/vol/volhist.out
ANR2462I BACKUP VOLHISTORY: Server sequential volume history information was
written to /vol/volhist.out.
TSM:TEST>收起
参与1

返回tivolimake的回答

tivolimaketivolimake科研人员tivoli
9、modify tsm server option file [root@test bin]
# more /tsm/inst1/dsmserv.opt
* --------------------------------------------------------------- *
* This file was created by the TSM Instance Configuration Utility *
* --------------------------------------------------------------- *


COMMMethod    TCPIP
TCPPort 1500

DEVCONFIG     /vol/devconfig.out
VOLUMEHISTORY /vol/volhist.out
LANGUAGE AMENG
TCPADMINPort 1500

ACTIVELOGDirectory    /tsmnew/tsmlog
ARCHLOGDirectory    /tsmnew/tsmarchlog



10、point-in-time database restore by using "dsmserv restore" command
root@test bin]# ./dsmserv -u tsminst1 -i /tsm/inst1/  restore db todate=today on=/tsmnew/dbdir.out activelogdir=/tsmnew/tsmlog
ANR7800I DSMSERV generated at 13:15:25 on Aug  5 2009.

Tivoli Storage Manager for Linux/x86_64
Version 6, Release 1, Level 2.0

Licensed Materials - Property of IBM

(C) Copyright IBM Corporation 1990, 2009.
All rights reserved.
U.S. Government Users Restricted Rights - Use, duplication or disclosure
restricted by GSA ADP Schedule Contract with IBM Corporation.

ANR7801I Subsystem process ID is 12975.
ANR0900I Processing options file /tsm/inst1/dsmserv.opt.
ANR7814I Using instance directory /tsm/inst1.
ANR4726I The ICC support module has been loaded.
ANR1636W The server machine GUID changed: old value (), new value (de.04.39.3e-
.e4.b8.de.11.89.65.00.0c.29.b0.59.6b).
ANR8200I TCP/IP Version 4 driver ready for connection with clients on port
1500.
ANR4634I Starting point-in-time database restore to date 10/15/2009 11:59:59
PM.
ANR4620I Database backup series 1 operation 0 device class FILEDEV.
ANR8340I FILE volume /vol/55539599.DBV mounted.
ANR1363I Input volume /vol/55539599.DBV opened (sequence number 1).
ANR1364I Input volume /vol/55539599.DBV closed.
ANR8340I FILE volume /vol/55539627.DBV mounted.
ANR1363I Input volume /vol/55539627.DBV opened (sequence number 1).
ANR1364I Input volume /vol/55539627.DBV closed.
ANR4638I Restore of backup series 1 operation 0 in progress.
ANR0406I Session 1 started for node $$_TSMDBMGR_$$ (DB2/LINUXX8664) (Tcp/Ip
127.0.0.1(60168)).
ANR8340I FILE volume /vol/55539599.DBV mounted.
ANR0510I Session 1 opened input volume /vol/55539599.DBV.
ANR1363I Input volume /vol/55539599.DBV opened (sequence number 1).
ANR4912I Database  full restore in progress and DB Data bytes transferred
67,371,008.
ANR4912I Database  full restore in progress and DB Data bytes transferred
134,742,016.
ANR4912I Database  full restore in progress and DB Data bytes transferred
202,113,024.
ANR4912I Database  full restore in progress and DB Data bytes transferred
269,484,032.
ANR4912I Database  full restore in progress and DB Data bytes transferred
336,855,040.
ANR1365I Volume /vol/55539599.DBV closed (end reached).
ANR4912I Database  full restore in progress and DB Data bytes transferred
344,608,779.
ANR1364I Input volume /vol/55539599.DBV closed.
ANR0514I Session 1 closed volume /vol/55539599.DBV.
ANR0403I Session 1 ended for node $$_TSMDBMGR_$$ (DB2/LINUXX8664).
ANR0406I Session 2 started for node $$_TSMDBMGR_$$ (DB2/LINUXX8664) (Tcp/Ip
127.0.0.1(60169)).
ANR8340I FILE volume /vol/55539627.DBV mounted.
ANR0510I Session 2 opened input volume /vol/55539627.DBV.
ANR1363I Input volume /vol/55539627.DBV opened (sequence number 1).
ANR1365I Volume /vol/55539627.DBV closed (end reached).
ANR4912I Database  full restore in progress and DB transaction log bytes
transferred  4,222,987.
ANR1364I Input volume /vol/55539627.DBV closed.
ANR0514I Session 2 closed volume /vol/55539627.DBV.
ANR0406I Session 3 started for node $$_TSMDBMGR_$$ (DB2/LINUXX8664) (Tcp/Ip
127.0.0.1(60170)).
ANR0403I Session 3 ended for node $$_TSMDBMGR_$$ (DB2/LINUXX8664).
ANR0403I Session 2 ended for node $$_TSMDBMGR_$$ (DB2/LINUXX8664).
ANR4645I The restore date reflects the most recent backup available up to the
specified TODATE.
ANR4635I Point-in-time database restore complete, restore date 10/15/2009
12:59:59 AM.
ANR0369I Stopping the database manager because of a server shutdown.
[root@test bin]#


11、restart tsm server process after restore
[root@test bin]# ./dsmserv -u tsminst1 -i /tsm/inst1/
ANR7800I DSMSERV generated at 13:15:25 on Aug  5 2009.

Tivoli Storage Manager for Linux/x86_64
Version 6, Release 1, Level 2.0

Licensed Materials - Property of IBM

(C) Copyright IBM Corporation 1990, 2009.
All rights reserved.
U.S. Government Users Restricted Rights - Use, duplication or disclosure
restricted by GSA ADP Schedule Contract with IBM Corporation.

ANR7801I Subsystem process ID is 13409.
ANR0900I Processing options file /tsm/inst1/dsmserv.opt.
ANR7814I Using instance directory /tsm/inst1.
ANR4726I The ICC support module has been loaded.
ANR0990I Server restart-recovery in progress.
ANR1380I The buffer pool monitor switch is enabled.
ANR1636W The server machine GUID changed: old value (), new value (de.04.39.3e-
.e4.b8.de.11.89.65.00.0c.29.b0.59.6b).
ANR2100I Activity log process has started.
ANR4726I The NAS-NDMP support module has been loaded.
ANR1794W TSM SAN discovery is disabled by options.
ANR0984I Process 1 for EXPIRE INVENTORY (Automatic) started in the BACKGROUND
at 01:32:51 AM.
ANR0811I Inventory client file expiration started as process 1.
ANR8200I TCP/IP Version 4 driver ready for connection with clients on port
1500.
ANR2803I License manager started.
ANR2560I Schedule manager started.
ANR0167I Inventory file expiration process 1 processed for 0 minutes.
ANR0812I Inventory file expiration process 1 completed: processed 1 nodes,
examined 0 objects, deleting 0 backup objects, 0 archive objects, 0 DB backup
volumes, and 0 recovery plan files. 0 objects were retried and 0 errors were
encountered.
ANR0985I Process 1 for EXPIRE INVENTORY (Automatic) running in the BACKGROUND
completed with completion state SUCCESS at 01:32:52 AM.
ANR0993I Server initialization complete.
ANR0916I TIVOLI STORAGE MANAGER distributed by Tivoli is now ready for use.
TSM:TEST>
ANR2841W Server is NOT IN COMPLIANCE with license terms.



11、TSM database related information after restore
TSM:TEST>
q dbspace
ANR2017I Administrator SERVER_CONSOLE issued command: QUERY DBSPACE
q
                      Location: /tsmnew/tsmdb002
Total Size of File System (MB): 47,519.80
Space Used on File System (MB): 13,683.16
     Free Space Available (MB): 16,886.32

                      Location: /tsmnew/tsmdb001
Total Size of File System (MB): 47,519.80
Space Used on File System (MB): 13,683.16
     Free Space Available (MB): 16,886.32



TSM:TEST>
q log f=d
ANR2017I Administrator SERVER_CONSOLE issued command: QUERY LOG f=d

               Total Space(MB): 2,048
                Used Space(MB): 2.67
                Free Space(MB): 2,037.32
          Active Log Directory: /tsmnew/tsmlog
          Mirror Log Directory:
Archive Failover Log Directory:
         Archive Log Directory: /tsmnew/tsmarchlog
IT分销/经销 · 2010-10-16
浏览853

回答者

tivolimake
科研人员tivoli
擅长领域: 存储数据安全NBU
评论439

tivolimake 最近回答过的问题

回答状态

  • 发布时间:2010-10-16
  • 关注会员:0 人
  • 回答浏览:853
  • X社区推广