本文主要是介绍实践 TSM 文件备份到 disk 和 tape (改变 mgmt) (一),希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
关于更新 mgmt 的测试:
tsm: TSM_SVR1>q domain
Policy Activated Activated Number of Description
Domain Policy Default Registered
Name Set Mgmt Nodes
Class
--------- --------- --------- ---------- ------------------------
DO_VTL PS_VTL MC_VTL 2 Domain for VTL library
STANDARD STANDARD STANDARD 1 Installed default policy
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 2 Domain for VTL library
STANDARD STANDARD STANDARD 1 Installed default policy
domain.
tsm: TSM_SVR1>define mg atm ps_atm mg_atm
ANR1520I Management class MG_ATM defined in policy domain ATM, set PS_ATM.
tsm: TSM_SVR1>q mgmt
Policy Policy Mgmt Default Description
Domain Set Name Class Mgmt
Name Name Class ?
--------- --------- --------- --------- ------------------------
ATM PS_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.
tsm: TSM_SVR1>q mgmt
Policy Policy Mgmt Default Description
Domain Set Name Class Mgmt
Name Name Class ?
--------- --------- --------- --------- ------------------------
ATM ATM_DAILY MG_ATM_D- No
AILY
ATM PS_ATM MG_ATM Yes
ATM PS_ATM MG_ATM_BK 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
tsm: TSM_SVR1>validate policyset atm atm_daily
ANR1598E VALIDATE POLICYSET: No default management class has been assigned for policy set ATM_DAILY in domain ATM.
ANS8001I Return code 11.
发现要先把这个policyset 定义为默认的policyset:
tsm: TSM_SVR1>assign defmg atm atm_daily mg_atm_daily
ANR1538I Default management class set to MG_ATM_DAILY for policy domain ATM, set ATM_DAILY.
tsm: TSM_SVR1>activate policyset atm atm_daily
看一下下面的提示:
tsm: TSM_SVR1>activate policyset atm atm_daily
ANR1553W DEFAULT Management class MG_ATM_DAILY in policy set ATM ATM_DAILY does not have a BACKUP copygroup: files
will not be backed up by default if this set is activated.
ANR1554W DEFAULT Management class MG_ATM_DAILY in policy set ATM ATM_DAILY 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)) yes
ANR1553W DEFAULT Management class MG_ATM_DAILY in policy set ATM ATM_DAILY does not have a BACKUP copygroup: files
will not be backed up by default if this set is activated.
ANR1554W DEFAULT Management class MG_ATM_DAILY in policy set ATM ATM_DAILY does not have an ARCHIVE copygroup:
files will not be archived by default if this set is activated.
ANR1514I Policy set ATM_DAILY activated in policy domain ATM.
会提示你建 copy group 来备份和 archive.
看一下 mgmt:
发现 有两个:一个是active ,一个是atm_daily, 其实是对应一个啦:
------------
下面开始备份测试:
1: 备份到硬盘:
2: 备份到磁带:
先说说 备份到磁盘:
核心是 stgpool, 这个是建在 disk, 还是tape 上 的:
看一下:drive class:
tsm: TSM_SVR1>q devclass
Device Device Storage Device Format Est/Max Mount
Class Access Pool Type Capacity Limit
Name Strategy Count (MB)
--------- ---------- ------- --------- ------ -------- ------
DISK Random 3
LTO2 Sequential 2 LTO ULTRI- 1,024.0 DRIVES
UMC
下面开始定义两个stgpool:
tsm: TSM_SVR1>def stg atm_disk_p disk desc="disk bak"
ANR2200I Storage pool ATM_DISK_P defined (device class DISK).
tsm: TSM_SVR1>def stg atm_tape_p lto2 maxscr=2 desc="tape bak"
ANR2200I Storage pool ATM_TAPE_P defined (device class LTO2).
tsm: TSM_SVR1>q stg
Storage Device Estimated Pct Pct High Low Next Stora-
Pool Name Class Name Capacity Util Migr Mig Mig ge Pool
Pct Pct
----------- ---------- ---------- ----- ----- ---- --- -----------
ATM_DISK_P DISK 0.0 M 0.0 0.0 90 70
ATM_TAPE_P LTO2 0.0 M 0.0 0.0 90 70
-----------
下面就要开始关联 stgpool, 是什么把 mgmt 和stgp 关联起来呢?
。。。
答对了,就是 copygroup.哈哈
下面就只用一个mgmt 来测试,看看备份的情况:
tsm: TSM_SVR1>q mgmt
Policy Policy Mgmt Default Description
Domain Set Name Class Mgmt
Name Name Class ?
--------- --------- --------- --------- ------------------------
ATM ACTIVE MG_ATM_D- Yes
AILY
ATM ATM_DAILY MG_ATM_D- Yes
AILY
tsm: TSM_SVR1>def co atm ATM_DAILY mg_atm_daily standard type=backup dest=atm_disk_p
ANR1530I Backup copy group STANDARD defined in policy domain ATM, set ATM_DAILY, management class MG_ATM_DAILY.
tsm: TSM_SVR1>q co
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 ATM_DAILY MG_ATM_D- STANDARD 2 1 30 60
AILY
这个备份到磁盘,没有磁带,现在应该就可以备份了:
下面开始制定 node 备份:
tsm: TSM_SVR1>q node
Node Name Platform Policy Domain Days Since Days Since Locked?
Name Last Acce- Password
ss Set
------------------------- -------- -------------- ---------- ---------- -------
CLIENT (?) STANDARD <1 <1 No
HUIPING Linux86 DO_VTL <1 <1 No
TEST Linux86 DO_VTL <1 <1 No
发现原来node: test的policy domain 是do_vtl, 下面把它改成: atm:
tsm: TSM_SVR1>update node test domain=atm
ANR2063I Node TEST updated.
tsm: TSM_SVR1>q node test f=d
Node Name: TEST
Platform: Linux86
Client OS Level: 2.6.18-92
Client Version: Version 5, release 5, level 1.0
Policy Domain Name: ATM
下面应该听话了:
备份:
[root@localhost bin]# ./dsmc selective /shp -subdir=yes
IBM Tivoli Storage Manager
Command Line Backup/Archive Client Interface
Client Version 5, Release 5, Level 1.0
Client date/time: 04/03/2008 00:51:46
(c) Copyright by IBM Corporation and other(s) 1990, 2008. All Rights Reserved.
Node Name: TEST
Session established with server TSM_SVR1: Linux/i386
Server Version 5, Release 5, Level 1.0
Server date/time: 04/03/2008 00:51:46 Last access: 04/03/2008 00:01:52
Selective Backup function invoked.
ANS1263E The active policy set does not contain any backup copy groups. The backup operation can not continue.
碰到上面这个问题,
tsm: TSM_SVR1>q co
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 ATM_DAILY MG_ATM_D- STANDARD 2 1 30 60
AILY
DO_VTL ACTIVE MC_VTL STANDARD 3 1 120 60
DO_VTL PS_VTL MC_VTL STANDARD 3 1 120 60
确实没有 发现atm domain 有一个active 的
原因找到,copygrop 是在active policyset 后建立的,要是spool 先建,再 activate policyset就可以了,下面再试一下:
tsm: TSM_SVR1>validate policyset atm ATM_DAILY
tsm: TSM_SVR1>activate policyset atm ATM_DAILY
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 ACTIVE MG_ATM_D- STANDARD 2 1 30 60
AILY
ATM ATM_DAILY MG_ATM_D- STANDARD 2 1 30 60
AILY
DO_VTL ACTIVE MC_VTL STANDARD 3 1 120 60
DO_VTL PS_VTL MC_VTL STANDARD 3 1 120 60
达到预期的目标。
这篇关于实践 TSM 文件备份到 disk 和 tape (改变 mgmt) (一)的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!