解决思路:
1: update node node_name maxnummp=2
2: q drive, q path 看是否online
3: 看q devclass 是否和 q drive 中的匹配,如果不一样,就update.
[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: 01/19/2012 19:45:14
(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: 05/17/2008 03:36:18 Last access: 05/17/2008 03:35:06
Selective Backup function invoked.
Directory--> 4,096 /shp [Sent]
Normal File--> 0 /shp/test [Sent]
Retry # 1 Directory--> 4,096 /shp ** Unsuccessful **
ANS1228E Sending of object '/shp' failed
ANS1312E Server media mount not possible
Retry # 1 Normal File--> 0 /shp/test ** Unsuccessful **
ANS1228E Sending of object '/shp/test' failed
ANS1312E Server media mount not possible
ANS1804E Selective Backup processing of '/shp/*' finished with failures.
Total number of objects inspected: 2
Total number of objects backed up: 0
Total number of objects updated: 0
Total number of objects rebound: 0
Total number of objects deleted: 0
Total number of objects expired: 0
Total number of objects failed: 2
Total number of bytes transferred: 336 B
Data transfer time: 0.00 sec
Network data transfer rate: 1,918.85 KB/sec
Aggregate data transfer rate: 0.30 KB/sec
Objects compressed by: 0%
Elapsed processing time: 00:00:01
sm: TSM_SVR1>q node test f=d
Node Name: TEST
Platform: Linux86
Client OS Level: 2.6.18-12
Client Version: Version 5, release 5, level 1.0
Policy Domain Name: DO_VTL
Last Access Date/Time: 05/17/2008 03:47:16
Days Since Last Access: <1
Password Set Date/Time: 05/17/2008 01:27:53
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: 05/17/2008 01:27:53
Registering Administrator: ADMIN
Last Communication Method Used: Tcp/Ip
Bytes Received Last Session: 3,496
Bytes Sent Last Session: 1,361
Duration of Last Session: 5.71
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
more... (<ENTER> to continue, 'C' to cancel)
Validate Protocol: No
TCP/IP Name: localhost.localdomain
TCP/IP Address: 192.168.142.131
Globally Unique ID: e0.bf.03.5f.0f.84.e0.11.af.e7.00.0c.29.54.3d.41
Transaction Group Max: 0
Data Write Path: ANY
Data Read Path: ANY
Session Initiation: ClientOrServer
High-level Address:
Low-level Address:
Collocation Group Name:
Proxynode Target:
Proxynode Agent:
Node Groups:
Email Address:
发现 Maximum Mount Points Allowed: 1
下面把他设成2:
tsm: TSM_SVR1>update node test maxnummp=2
ANR2063I Node TEST updated.
可以备份,还是报原来的错。
关键是send file 报错,我看了:
ANS1312E Server media mount not possible 报错的主要三个方面:
一,同时开启了多个备份作业,当时磁带库驱动器无空闲。
二,部分驱动器存在故障,其DRIVE状态或路径状态为OFFLINE。
三,客户端允许的最大MOUNT点数量受限
tsm: TSM_SVR1>q drive
Library Name Drive Name Device Type On-Line
------------ ------------ ----------- -------------------
VTL01 DRV1 LTO Yes
VTL01 DRV2 LTO Yes
VTL01 DRV3 LTO Yes
VTL01 DRV4 LTO Yes
看到正常。
下面看一下 tape 的状态:
TSM:TSM_SVR1>
q v
ANR2017I Administrator SERVER_CONSOLE issued command: QUERY VOLUME
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 0.0 M 0.0 Empty
OL
CO0002 BA_TAPE_PO- LTO2 0.0 M 0.0 Empty
OL
TSM:TSM_SVR1>
q libv
ANR2017I Administrator SERVER_CONSOLE issued command: QUERY LIBVOLUME
Library Name Volume Name Status Owner Last Use Home Device
Element Type
------------ ----------- ---------------- ---------- --------- ------- ------
VTL01 CO0001 Private 1
VTL01 CO0002 Private 2
VTL01 CO0003 Scratch 3
VTL01 CO0004 Scratch 4
VTL01 CO0005 Scratch 5
看不出啥,
总举得drive type不对:
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
UM2C
tsm: TSM_SVR1>q drive f=d
Library Name: VTL01
Drive Name: DRV1
Device Type: LTO
On-Line: Yes
Read Formats: ULTRIUMC,ULTRIUM
Write Formats: ULTRIUMC,ULTRIUM
Element: 2051
Drive State: EMPTY
Volume Name:
Allocated to:
WWN:
Serial Number: 032d4f361
Last Update by (administrator): ADMIN
Last Update Date/Time: 05/16/2008 06:21:24
Cleaning Frequency (Gigabytes/ASNEEDED/NONE): NONE
-----------------
下面来更改一下:
tsm: TSM_SVR1>update devclass lto2 library=vtl01 format=ULTRIUMC
ANR2205I Device class LTO2 updated.
下面开始备份:
成功:
[root@sheng 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: 01/20/2012 03:06:10
(c) Copyright by IBM Corporation and other(s) 1990, 2008. All Rights Reserved.
Node Name: HUIPING
Session established with server TSM_SVR1: Linux/i386
Server Version 5, Release 5, Level 1.0
Server date/time: 05/17/2008 10:57:23 Last access: 05/17/2008 10:28:46
Selective Backup function invoked.
Directory--> 4,096 /shp [Sent]
Normal File--> 0 /shp/test [Sent]
ANS1114I Waiting for mount of offline media.
Retry # 1 Directory--> 4,096 /shp [Sent]
Retry # 1 Normal File--> 0 /shp/test [Sent]
Selective Backup processing of '/shp/*' finished without failure.
Total number of objects inspected: 2
Total number of objects backed up: 2
Total number of objects updated: 0
Total number of objects rebound: 0
Total number of objects deleted: 0
Total number of objects expired: 0
Total number of objects failed: 0
Total number of bytes transferred: 336 B
Data transfer time: 0.00 sec
Network data transfer rate: 15,625.00 KB/sec
Aggregate data transfer rate: 0.15 KB/sec
Objects compressed by: 0%
Elapsed processing time: 00:00:02
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 0.0 M 0.0 Empty
OL
tsm: TSM_SVR1>q libv
Library Name Volume Name Status Owner Last Use Home Device
Element Type
------------ ----------- ---------------- ---------- --------- ------- ------
VTL01 CO0001 Private Data 1
VTL01 CO0002 Private 2
VTL01 CO0003 Scratch 3
VTL01 CO0004 Scratch 4
VTL01 CO0005 Scratch 5