指定 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