關於更新 mgmt 的測試:
tsm: TSM_SVR1>q domainnode
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.dom
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. this
tsm: TSM_SVR1>define mg atm ps_atm mg_atm
ANR1520I Management class MG_ATM defined in policy domain ATM, set PS_ATM.spa
tsm: TSM_SVR1>q mgmtcode
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 mgmtorm
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 server
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.ip
發現要先把這個policyset 定義爲默認的policyset:ci
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
達到預期的目標。
備份到disk 上,報錯:
ANS1228E Sending of object '/shp' failed
ANS1311E Server out of data storage space
ANS1999E Selective processing of '/shp' stopped.
檢查一下:
sm: 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
----------- ---------- ---------- ----- ----- ---- --- -----------
ARCHIVEPOOL DISK 5.0 M 0.0 0.0 90 70
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
BACKUPPOOL DISK 10.0 M 0.1 0.0 90 70
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
CO0001 BA_TAPE_PO- LTO2 1.0 G 0.0 Filling
OL
CO0002 BA_TAPE_PO- LTO2 1.0 G 0.0 Filling
發現確實沒有在硬盤上,沒有可疑存放文件的tsm 文件,原來,disk 也得建 volume:
tsm: TSM_SVR1>define volume atm_disk_p /opt/tivoli/tsm/server/bin/atm_bk.dsm formatsize=100
ANR2491I Volume Creation Process starting for /opt/tivoli/tsm/server/bin/atm_bk.dsm, Process Id 2.
ANS8003I Process number 2 started.
tsm: TSM_SVR1>q request
ANR8346I QUERY REQUEST: No requests are outstanding.
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/- ATM_DISK_P DISK 100.0 M 0.0 On-Line
bin/atm_bk.dsm
下面開始備份:
備份成功:
Selective Backup processing of '/shp' finished without failure.
檢查一下備份狀況:
[root@localhost bin]# ./dsmc q backup /shp -inactive -subdir=yes
Size Backup Date Mgmt Class A/I File ---- ----------- ---------- --- ---- 4,096 B 04/03/2008 07:27:14 MG_ATM_DAILY I /shp[root@localhost bin]# dateThu Apr 3 07:28:24 EDT 2008