再次实践 TSM ,文件上带(解决 ANS1355E Session rejected: Server disabled)

今天试验了一把 node 定制 schedule 备份:

tsm: TSM_SVR1>register node xin xin
ANR2060I Node XIN registered in policy domain STANDARD.
ANR2099I Administrative userid XIN defined for OWNER access to node XIN.

tsm: TSM_SVR1>q node

Node Name                     Platform     Policy Domain      Days Since     Days Since     Locked?
                                           Name               Last Acce-       Password    
                                                                      ss            Set    
-------------------------     --------     --------------     ----------     ----------     -------
CLIENT                        (?)          STANDARD                  100            100       No  
HUIPING                       Linux86      DO_VTL                     89             99       No  
SHENG                         Linux86      DO_VTL                     84             85       No  
TEST                          Linux86      DO_VTL                     99             99       No  
XIN                           (?)          STANDARD                   <1             <1       No  

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

下面把问号去掉:

Step1:
define a domain:

tsm: TSM_SVR1>define domain atm
ANR1500I Policy domain ATM defined.

tsm: TSM_SVR1>q domain

Policy        Activated     Activated      Number of     Description            
Domain        Policy        Default       Registered    
Name          Set           Mgmt               Nodes    
                            Class                       
---------     ---------     ---------     ----------     ------------------------
ATM                                                0                            
DO_VTL        PS_VTL        MC_VTL                 3     Domain for VTL library 
STANDARD      STANDARD      STANDARD               2     Installed default policy
                                                          domain.             
                                                         
Step2:
 define a policyset:

tsm: TSM_SVR1>define policyset atm pc_atm
ANR1510I Policy set PC_ATM defined in policy domain ATM.

tsm: TSM_SVR1>q policyset

Policy        Policy        Default       Description            
Domain        Set Name      Mgmt         
Name                        Class        
                            Name         
---------     ---------     ---------     ------------------------
ATM           PC_ATM                                             
DO_VTL        ACTIVE        MC_VTL        Policy set for the     
                                           DO_VTL domain         
DO_VTL        PS_VTL        MC_VTL        Policy set for the     
                                           DO_VTL domain         
STANDARD      ACTIVE        STANDARD      Installed default policy
                                           set.                  
STANDARD      STANDARD      STANDARD      Installed default policy
                                           set.                  

Step3:
  define mgmt:
tsm: TSM_SVR1>define mg atm pc_atm mg_atm
ANR1520I Management class MG_ATM defined in policy domain ATM, set PC_ATM.

tsm: TSM_SVR1>q mgmt

Policy        Policy        Mgmt          Default       Description            
Domain        Set Name      Class         Mgmt         
Name                        Name          Class ?      
---------     ---------     ---------     ---------     ------------------------
ATM           PC_ATM        MG_ATM        No                                   
DO_VTL        ACTIVE        MC_VTL        Yes           Management Class for   
                                                         DO_vtl domain         
DO_VTL        PS_VTL        MC_VTL        Yes           Management Class for   
                                                         DO_vtl domain         
STANDARD      ACTIVE        STANDARD      Yes           Installed default      
                                                         management class.     
STANDARD      STANDARD      STANDARD      Yes           Installed default      
                                                         management class.    
                                                        
Step4:
assign the default mgmtclass:

tsm: TSM_SVR1>assign defmg atm pc_atm mg_atm
ANR1538I Default management class set to MG_ATM for policy domain ATM, set PC_ATM.

tsm: TSM_SVR1>q mgmt

Policy        Policy        Mgmt          Default       Description            
Domain        Set Name      Class         Mgmt         
Name                        Name          Class ?      
---------     ---------     ---------     ---------     ------------------------
ATM           PC_ATM        MG_ATM        Yes                                  
DO_VTL        ACTIVE        MC_VTL        Yes           Management Class for   
                                                         DO_vtl domain         
DO_VTL        PS_VTL        MC_VTL        Yes           Management Class for   
                                                         DO_vtl domain         
STANDARD      ACTIVE        STANDARD      Yes           Installed default      
                                                         management class.     
STANDARD      STANDARD      STANDARD      Yes           Installed default      
                                                         management class.     

Step5:

define a drive class:

(这是为 建stgpool 来)

tsm: TSM_SVR1>define devclass lto2 devtype=lto format=ULTRIUM2C ESTCAPACITY=1G LIBRARY=VTL01

 

Step5:
define new stgpool:

tsm: TSM_SVR1>define stgpool atmpool lto2 maxscr=2 desc="atm backup pool"
ANR2200I Storage pool ATMPOOL defined (device class LTO2).

tsm: TSM_SVR1>q stgpool    

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-     LTO2                0.0 M       0.0       0.0       90      70               
 OL                                                                                          
ATMPOOL         LTO2                0.0 M       0.0       0.0       90      70                                                                                                          
SPACEMGPOOL     DISK                0.0 M       0.0       0.0       90      70               

step6:
define a newc opygroup

tsm: TSM_SVR1>def co atm pc_atm mg_atm standard type=backup dest=atmpool
ANR1530I Backup copy group STANDARD defined in policy domain ATM, set PC_ATM, management class MG_ATM.

tsm: TSM_SVR1>q copy

Policy        Policy        Mgmt          Copy          Versions     Versions       Retain      Retain
Domain        Set Name      Class         Group             Data         Data        Extra        Only
Name                        Name          Name            Exists      Deleted     Versions     Version
---------     ---------     ---------     ---------     --------     --------     --------     -------
ATM           PC_ATM        MG_ATM        STANDARD             2            1           30          60

看上面的全是默认值。

下面来验证管理策略:

tsm: TSM_SVR1>validate policyset atm pc_atm
ANR1554W DEFAULT Management class MG_ATM in policy set ATM PC_ATM does not have an ARCHIVE copygroup:  files will not
be archived by default if this set is activated.
ANR1515I Policy set PC_ATM validated in domain ATM (ready for activation).

下面来激活一下:

tsm: TSM_SVR1>activate policyset atm pc_atm
ANR1554W DEFAULT Management class MG_ATM in policy set ATM PC_ATM does not have an ARCHIVE copygroup:  files will not be
archived by default if this set is activated.

Do you wish to proceed? (Yes (Y)/No (N)) y
ANR1554W DEFAULT Management class MG_ATM in policy set ATM PC_ATM does not have an ARCHIVE copygroup:  files will not be
archived by default if this set is activated.
ANR1514I Policy set PC_ATM activated in policy domain ATM.

下面来说说磁带:

tsm: TSM_SVR1>q libv

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

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      70.7     On-Line
 bin/backup.dsm                                                                            
CO0002                       BA_TAPE_PO-     LTO2               1.0 G       0.0     Filling
                              OL                                                           
CO0003                       BA_TAPE_PO-     LTO2               1.8 G     100.0       Full 
                              OL                                                           
CO0004                       BA_TAPE_PO-     LTO2               1.0 G     100.0     Filling
                              OL                                                           
                             
tsm: TSM_SVR1>define volume atmpool CO0005
ANR2206I Volume CO0005 defined in storage pool ATMPOOL (device class LTO2).

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      70.7     On-Line
 bin/backup.dsm                                                                            
CO0002                       BA_TAPE_PO-     LTO2               1.0 G       0.0     Filling
                              OL                                                           
CO0003                       BA_TAPE_PO-     LTO2               1.8 G     100.0       Full 
                              OL                                                           
CO0004                       BA_TAPE_PO-     LTO2               1.0 G     100.0     Filling
                              OL                                                           
CO0005                       ATMPOOL         LTO2               0.0 M       0.0      Empty

到现在为止,
如果备份的话,node:xin 上是不能备份到atmpool 上的,先看一下,因为node : xin 没有关联到policy domain :pc_atm 下:
tsm: TSM_SVR1>q node xin f=d

                     Node Name: XIN
                      Platform: (?)
               Client OS Level: (?)
                Client Version: (?)
            Policy Domain Name: STANDARD
         Last Access Date/Time: 08/24/2008 00:32:01
        Days Since Last Access: <1
        Password Set Date/Time: 08/24/2008 00:32:01
       Days Since Password Set: <1
         Invalid Sign-on Count: 0
                       Locked?: No
                       Contact:
                   Compression: Client
       Archive Delete Allowed?: Yes
        Backup Delete Allowed?: No
        Registration Date/Time: 08/24/2008 00:32:01
     Registering Administrator: ADMIN
Last Communication Method Used:
   Bytes Received Last Session: 0
       Bytes Sent Last Session: 0
      Duration of Last Session: 0.00
   Pct. Idle Wait Last Session: 0.00
  Pct. Comm. Wait Last Session: 0.00
  Pct. Media Wait Last Session: 0.00
                     Optionset:
                           URL:
                     Node Type: Client
    Password Expiration Period:
             Keep Mount Point?: No
  Maximum Mount Points Allowed: 1
        Auto Filespace Rename : No
             Validate Protocol: No
                   TCP/IP Name:
                TCP/IP Address:
               
看到上面是:policy domain : standard:

测试:
root@aoracle bin]# ./dsmc
IBM Tivoli Storage Manager
Command Line Backup/Archive Client Interface
  Client Version 5, Release 5, Level 1.0 
  Client date/time: 04/28/2012 09:45:18
(c) Copyright by IBM Corporation and other(s) 1990, 2008. All Rights Reserved.

Node Name: XIN
ANS1355E Session rejected: Server disabled

解决方法:

tsm: TSM_SVR1>accept date
ANR0893I Are you sure that you want to accept the current system date as valid ?

Do you wish to proceed? (Yes (Y)/No (N)) y     
ANR0894I Current system has been accepted as valid.

tsm: TSM_SVR1>enable sessions
ANR2552I Server now enabled for Client access.

再开始登入一次:

[root@aoracle bin]# ./dsmc
IBM Tivoli Storage Manager
Command Line Backup/Archive Client Interface
  Client Version 5, Release 5, Level 1.0 
  Client date/time: 04/28/2012 09:50:04
(c) Copyright by IBM Corporation and other(s) 1990, 2008. All Rights Reserved.

Node Name: XIN
Please enter your user id <XIN>: xin

Please enter password for user id "XIN":

Session established with server TSM_SVR1: Linux/i386
  Server Version 5, Release 5, Level 1.0
  Server date/time: 08/24/2008 01:24:31  Last access: 08/24/2008 01:24:31

tsm: TSM_SVR1>q node

Node Name                     Platform     Policy Domain      Days Since     Days Since     Locked?
                                           Name               Last Acce-       Password    
                                                                      ss            Set    
-------------------------     --------     --------------     ----------     ----------     -------
CLIENT                        (?)          STANDARD                  100            100       No  
HUIPING                       Linux86      DO_VTL                     89             99       No  
SHENG                         Linux86      DO_VTL                     84             85       No  
TEST                          Linux86      DO_VTL                     99             99       No  
XIN                           Linux86      STANDARD                   <1             <1       No  

备份一次看:

[root@aoracle bin]# ./dsmc selective /home -subdir=yes

磁带是没有的:
tsm: TSM_SVR1>q v

Volume Name                  Storage         Device         Estimated       Pct      Volume
                             Pool Name       Class Name      Capacity      Util      Status
------------------------     -----------     ----------     ---------     -----     --------                                                         
CO0005                       ATMPOOL         LTO2               0.0 M       0.0      Empty 
其实是备份到磁盘了。

下面来改备份到磁带:
tsm: TSM_SVR1>q node

Node Name                     Platform     Policy Domain      Days Since     Days Since     Locked?
                                           Name               Last Acce-       Password    
                                                                      ss            Set    
-------------------------     --------     --------------     ----------     ----------     -------
CLIENT                        (?)          STANDARD                  100            100       No  
HUIPING                       Linux86      DO_VTL                     89             99       No  
SHENG                         Linux86      DO_VTL                     84             85       No  
TEST                          Linux86      DO_VTL                     99             99       No  
XIN                           Linux86      STANDARD                   <1             <1       No  

tsm: TSM_SVR1>update node xin domain=atm
ANR2063I Node XIN updated.

tsm: TSM_SVR1>q node

Node Name                     Platform     Policy Domain      Days Since     Days Since     Locked?
                                           Name               Last Acce-       Password    
                                                                      ss            Set    
-------------------------     --------     --------------     ----------     ----------     -------
CLIENT                        (?)          STANDARD                  100            100       No  
HUIPING                       Linux86      DO_VTL                     89             99       No  
SHENG                         Linux86      DO_VTL                     84             85       No  
TEST                          Linux86      DO_VTL                     99             99       No  
XIN                           Linux86      ATM                        <1             <1       No  


q node 可以看到这个node 是否lock.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

shenghuiping2001

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值