• 指定stg备份 (即指定tape 磁带)


    指定 spool 来备份:

    1:define one copygroup 的时候,是跟 spool 关联的。
    2:copygroup 是跟 mgmt 关联的。
    3:mgmt 是跟 domain + ps_set 关联的。而且只能有一个 domain + ps_set active。

    所以,当定义 domain + ps_set 变成active 的时候, 相关联的spool 就开始 备份了。

    -------------------------------

    先看一下 磁带的状态:

    tsm: TSM_SVR1>q libv

    Library Name     Volume Name     Status               Owner          Last Use      Home        Device
                                                                                       Element     Type  
    ------------     -----------     ----------------     ----------     ---------     -------     ------
    VTL02            XX0001          Private                                           1                 
    VTL02            XX0002          Private                                           2                 
    VTL02            XX0003          Private                                           3                 
    VTL02            XX0004          Private                                           4                 
    VTL02            XX0005          Private                                           5                 
    VTL02            XX0006          Private                                           6                 
    VTL02            XX0007          Private                                           7                 
    VTL02            XX0008          Scratch                                           8                 
    VTL02            XX0009          Private                             Data          9                 
    VTL02            XX0010          Private                             Data          10               

    tsm: TSM_SVR1>q stgp

    Storage         Device          Estimated       Pct       Pct     High     Low     Next Stora-
    Pool Name       Class Name       Capacity      Util      Migr      Mig     Mig     ge Pool    
                                                                       Pct     Pct     
    -----------     ----------     ----------     -----     -----     ----     ---     -----------
    ARCHIVEPOOL     DISK                5.0 M       0.0       0.0       90      70                
    AR_TAPE_PO-     LTO3                 13 G       0.0       7.7       90      70                
     OL                                                                                           
    BACKUPPOOL      DISK               10.0 M       0.0       0.0       90      70                
    BA_BACK         LTO3                 10 G       0.0      10.0       90      70                
    BA_DAILY        LTO3                  0.0 M       0.0      0.0       90      70                
    BA_TAPE_PO-     LTO2                0.0 M       0.0       0.0       90      70                
     OL                                                                                           
    SPACEMGPOOL     DISK                0.0 M       0.0       0.0       90      70   

    在看一下默认的backup 的mgmt:

    tsm: TSM_SVR1>q mgmt

    Policy        Policy        Mgmt          Default       Description             
    Domain        Set Name      Class         Mgmt          
    Name                        Name          Class ?       
    ---------     ---------     ---------     ---------     ------------------------
    DO_VTL        ACTIVE        MC_VTL        Yes           Managment Class for     
                                                             DO_VTL domain          
    DO_VTL        PS_VTL        MC_VTL        Yes           Managment Class for     
                                                             DO_VTL domain          
    DO_VTL01      ACTIVE        MC_VTL01      Yes           Management Class for    
                                                             Do_vtl01               
    DO_VTL01      PS_VTL01      MC_VTL01      Yes           Management Class for    
                                                             Do_vtl01               
    DO_VTL02      ACTIVE        MC_VTL02      Yes           Manage class for daily  
                                                             for do_vtl02           
    DO_VTL02      PS_VTL02      MC_VTL02      Yes           magagement class for    
                                                             do-vtl02               
    DO_VTL02      PS_VTL03      MC_VTL01      Yes           Manage class for daily  
                                                             for do_vtl02           
    STANDARD      ACTIVE        STANDARD      Yes           Installed default       
                                                             management class.      
    STANDARD      STANDARD      STANDARD      Yes           Installed default       
                                                             management class.     

    看一下copy group 的详细信息:

    tsm: TSM_SVR1>q copygroup do_vtl02 ps_vtl03 mc_vtl01 f=d

                     Policy Domain Name: DO_VTL02
                        Policy Set Name: PS_VTL03
                        Mgmt Class Name: MC_VTL01
                        Copy Group Name: STANDARD
                        Copy Group Type: Backup
                   Versions Data Exists: 3
                  Versions Data Deleted: 1
                  Retain Extra Versions: 20
                    Retain Only Version: 60
                              Copy Mode: Modified
                     Copy Serialization: Shared Static
                         Copy Frequency: 0
                       Copy Destination: BA_DAILY
    Table of Contents (TOC) Destination: 
         Last Update by (administrator): ADMIN
                  Last Update Date/Time: 06/16/2011 23:36:37
                       Managing profile: 
                        Changes Pending: No

    可以看到: do_vtl02 ps_vtl03 mc_vtl01 是在ba_daily 这个spool的。

    好下面吧mgmt active 变成 do_vtl02 ps_vtl03 mc_vtl01:

    tsm :> activate do_vtl02 ps_vtl03

    tsm: TSM_SVR1>q mgmt

    Policy        Policy        Mgmt          Default       Description             
    Domain        Set Name      Class         Mgmt          
    Name                        Name          Class ?       
    ---------     ---------     ---------     ---------     ------------------------
    DO_VTL        ACTIVE        MC_VTL        Yes           Managment Class for     
                                                             DO_VTL domain          
    DO_VTL        PS_VTL        MC_VTL        Yes           Managment Class for     
                                                             DO_VTL domain          
    DO_VTL01      ACTIVE        MC_VTL01      Yes           Management Class for    
                                                             Do_vtl01               
    DO_VTL01      PS_VTL01      MC_VTL01      Yes           Management Class for    
                                                             Do_vtl01               
    DO_VTL02      ACTIVE        MC_VTL01      Yes           Manage class for daily  
                                                             for do_vtl02           
    DO_VTL02      PS_VTL02      MC_VTL02      Yes           magagement class for    
                                                             do-vtl02               
    DO_VTL02      PS_VTL03      MC_VTL01      Yes           Manage class for daily  
                                                             for do_vtl02           
    STANDARD      ACTIVE        STANDARD      Yes           Installed default       
                                                             management class.      
    STANDARD      STANDARD      STANDARD      Yes           Installed default       
                                                             management class.   

    好,下面进行备份:

     cd /opt/tivoli/tsm/client/ba/bin/dsmc selective /root/test/ -subdir=yes

    备份成功:

    tsm: TSM_SVR1>q libv

    Library Name     Volume Name     Status               Owner          Last Use      Home        Device
                                                                                       Element     Type  
    ------------     -----------     ----------------     ----------     ---------     -------     ------
    VTL02            XX0001          Private                                           1                 
    VTL02            XX0002          Private                                           2                 
    VTL02            XX0003          Private                                           3                 
    VTL02            XX0004          Private                                           4                 
    VTL02            XX0005          Private                                           5                 
    VTL02            XX0006          Private                                           6                 
    VTL02            XX0007          Private                             Data          7                 
    VTL02            XX0008          Scratch                                           8                 
    VTL02            XX0009          Private                             Data          9                 
    VTL02            XX0010          Private                             Data          10     

    现在来看一下spool:

    tsm: TSM_SVR1>q stgp

    Storage         Device          Estimated       Pct       Pct     High     Low     Next Stora-
    Pool Name       Class Name       Capacity      Util      Migr      Mig     Mig     ge Pool    
                                                                       Pct     Pct     
    -----------     ----------     ----------     -----     -----     ----     ---     -----------
    ARCHIVEPOOL     DISK                5.0 M       0.0       0.0       90      70                
    AR_TAPE_PO-     LTO3                 13 G       0.0       7.7       90      70                
     OL                                                                                           
    BACKUPPOOL      DISK               10.0 M       0.0       0.0       90      70                
    BA_BACK         LTO3                 10 G       0.0      10.0       90      70                
    BA_DAILY        LTO3                  4 G       0.0      25.0       90      70                
    BA_TAPE_PO-     LTO2                0.0 M       0.0       0.0       90      70                
     OL                                                                                           
    SPACEMGPOOL     DISK                0.0 M       0.0       0.0       90      70  

  • 相关阅读:
    在maven工程中使用groovy
    groovy学习1搭建环境
    Android 中运行时权限获取联系人信息 Demo
    Android 拍照或相册选择照片进行显示缩放位图 Demo
    Android 热点相关操作
    Android 内嵌 HTML5 并进行交互
    AJAX实现局部刷新
    C#主要用于查询sql的web项目:查询以及页面显示数据非常缓慢的改进方案
    配置和读取web.config数据库
    web项目在服务器IIS7上的部署:达到内部网可以通过输入网页直接访问的效果
  • 原文地址:https://www.cnblogs.com/Study-Blog/p/8649547.html
Copyright © 2020-2023  润新知