zoukankan      html  css  js  c++  java
  • 查看磁带内容

    查看磁带中的 备份内容 , 和 tsm 请求 等待 request 的处理:

    先看一下:
    sm: TSM_SVR1>q content co0001

    Node Name           Type     Filespace      FSID     Client's Name for File                
                                 Name                    
    ---------------     ----     ----------     ----     --------------------------------------
    HUIPING             Bkup     /                 1     / shp                                 
    HUIPING             Bkup     /                 1     /shp/ test                            
    HUIPING             Bkup     /                 1     / shp                                 
    HUIPING             Bkup     /                 1     /shp/ log                             
    HUIPING             Bkup     /                 1     /shp/ test                            
    HUIPING             Bkup     /                 1     /shp/log/ 2012_01_20__19_07_55.log   

    tsm: TSM_SVR1>q content co0002

    Node Name           Type     Filespace      FSID     Client's Name for File                
                                 Name                    
    ---------------     ----     ----------     ----     --------------------------------------
    HUIPING             Bkup     /                 1     /shp/ daily_back.sh                   
    HUIPING             Bkup     /                 1     /shp/ daily_back.sh                   
    HUIPING             Bkup     /                 1     /shp/ daily_back.sh                  

    tsm: TSM_SVR1>delete vol co0001 discarddata=yes
    ANR2221W This command will result in the deletion of all inventory references to the data on volume
    CO0001, thereby rendering the data unrecoverable.

    Do you wish to proceed? (Yes (Y)/No (N)) Y
    ANR2222I Discard Data process started for volume CO0001 (process ID 3).
    ANS8003I Process number 3 started.

    tsm: TSM_SVR1>q content co0001
    ANR2401E QUERY CONTENT: Volume co0001 is not defined in a storage pool.
    ANS8001I Return code 11.

    tsm: TSM_SVR1>q v

    Volume Name                  Storage         Device         Estimated       Pct      Volume 
                                 Pool Name       Class Name      Capacity      Util      Status 
    ------------------------     -----------     ----------     ---------     -----     --------
    /opt/tivoli/tsm/server/-     ARCHIVEPOOL     DISK               5.0 M       0.0     On-Line 
     bin/archive.dsm                                                                            
    /opt/tivoli/tsm/server/-     BACKUPPOOL      DISK              10.0 M       0.1     On-Line 
     bin/backup.dsm                                                                             
    CO0002                       BA_TAPE_PO-     LTO2               1.0 G       0.0     Filling 
                                  OL                                                            
    下面把一个磁带加入到spool 中:

    注意顺序: 先入库,再放入存储池:

    Step1:
    检入磁带:
    tsm: TSM_SVR1>label libv vtl01 co0001 checkin=scr
    ANS8003I Process number 5 started.

    tsm: TSM_SVR1>q libv

    Library Name     Volume Name     Status               Owner          Last Use      Home        Device
                                                                                       Element     Type  
    ------------     -----------     ----------------     ----------     ---------     -------     ------
    VTL01            CO0002          Private                             Data          2                 
    VTL01            CO0003          Scratch                                           3                 
    VTL01            CO0004          Scratch                                           4                 
    VTL01            CO0005          Scratch                                           5                

    发现还是没有,如果要是再次检入,又报错:
    tsm: TSM_SVR1>label libv vtl01 co0001 checkin=scratch
    ANR8442E LABEL LIBVOLUME: Volume CO0001 in library VTL01 is currently in use.
    ANS8001I Return code 12.

    Step2: 
    再放入存储池
    define volume ba_tape_pool CO0001
    注意,就算lib库中没有的磁带,也可以define 到spool中 所以要lib库中有的磁带:
    tsm: TSM_SVR1>define volume ba_tape_pool cc
    ANR2206I Volume CC defined in storage pool BA_TAPE_POOL (device class LTO2).

    tsm: TSM_SVR1>q v

    Volume Name                  Storage         Device         Estimated       Pct      Volume 
                                 Pool Name       Class Name      Capacity      Util      Status 
    ------------------------     -----------     ----------     ---------     -----     --------                                                                            
    CC                           BA_TAPE_PO-     LTO2               0.0 M       0.0      Empty  
                                  OL                                                            
    CO0002                       BA_TAPE_PO-     LTO2               0.0 M       0.0      Empty  
                                  OL                                                            
    ----------

    接上面的 Step1 查找原因: 
    发现是request 在等待:
    解决方法:
    让tsm 自动label:

    label libvolume vtl01 search=yes labels=barcode checkin=scratch overwrite=yes

    tsm: TSM_SVR1>q request
    ANR8352I Requests outstanding:
    ANR8306I 002: Insert LTO volume CO0001 R/W into the slot with element number 6 of library VTL01 within 55 minutes;
    issue 'REPLY' along with the request ID when ready.

    tsm: TSM_SVR1>q libv

    Library Name     Volume Name     Status               Owner          Last Use      Home        Device
                                                                                       Element     Type  
    ------------     -----------     ----------------     ----------     ---------     -------     ------
    VTL01            CO0002          Private                             Data          2                 
    VTL01            CO0003          Scratch                                           3                 
    VTL01            CO0004          Scratch                                           4                 
    VTL01            CO0005          Scratch                                           5                


    tsm: TSM_SVR1>reply 002
    ANR8499I Command accepted.

    tsm: TSM_SVR1>q request 
    ANR8346I QUERY REQUEST: No requests are outstanding.
    ANS8001I Return code 11.

    tsm: TSM_SVR1>q libv

    Library Name     Volume Name     Status               Owner          Last Use      Home        Device
                                                                                       Element     Type  
    ------------     -----------     ----------------     ----------     ---------     -------     ------
    VTL01            CO0001          Scratch                                           1                 
    VTL01            CO0002          Private                             Data          2                 
    VTL01            CO0003          Scratch                                           3                 
    VTL01            CO0004          Scratch                                           4                 
    VTL01            CO0005          Scratch                                           5               

    下面 把 volume 入spool:
    tsm: TSM_SVR1>define volume ba_tape_pool co0001
    ANR2206I Volume CO0001 defined in storage pool BA_TAPE_POOL (device class LTO2).

    tsm: TSM_SVR1>q v

    Volume Name                  Storage         Device         Estimated       Pct      Volume 
                                 Pool Name       Class Name      Capacity      Util      Status 
    ------------------------     -----------     ----------     ---------     -----     --------                                                                            
    CC                           BA_TAPE_PO-     LTO2               0.0 M       0.0      Empty  
                                  OL                                                            
    CO0001                       BA_TAPE_PO-     LTO2               0.0 M       0.0      Empty  
                                  OL                                                            
    CO0002                       BA_TAPE_PO-     LTO2               1.0 G       0.0     Filling

  • 相关阅读:
    selenium1-安装
    jmeter9-图形监控
    InetAddress.getLocalHost().getHostAddress() 在macOS里面反应很慢
    自定义实现简易定时任务
    Redis性能监控
    Linux启动进程、线程数量查看及修改方式
    jmeter处理request和response
    centos安装netdata
    scp使用expect自动输入密码
    Linux系统下生成TPS,ResponseTime曲线图
  • 原文地址:https://www.cnblogs.com/Study-Blog/p/8649057.html
Copyright © 2011-2022 走看看