Preview backup different from backup

lujo

ADSM.ORG Member
Joined
May 23, 2007
Messages
10
Reaction score
0
Points
0
Hi,

TSM server 6.1.3.2 on MS-Windows, TSM BA client 6.2.1.1 on Red Hat 5.5.

Have my include exclude options in dsm.sys.
Preview backup shows included files matching my include exclude options correctly.
Backup incremental doesn't backup according to my include exclude options!

Some directories and files are not backed up, although backup preview says they are included.

Where do I start looking?
 
can you paste the o/p of your q inclexcl and the file you think is included and doesnt backed up

What files to include/exclude are in an inclexcl file:

Code:
[root@lin01 tsm]# cat inclexcl.txt 
EXCLUDE         /*
EXCLUDE         /.../*
EXCLUDE         /var/bi_01/.../*
INCLUDE         /var/bi_01/nfs4vm/bi/*
INCLUDE         /var/bi_01/nfs4vm/bi/.../*
[root@lin01 tsm]#
The output of the q inclexcl command:

Code:
[root@lin01 tsm]# dsmc
IBM Tivoli Storage Manager
Command Line Backup-Archive Client Interface
  Client Version 6, Release 2, Level 1.1  
  Client date/time: 25-01-2011 23:04:06
(c) Copyright by IBM Corporation and other(s) 1990, 2010. All Rights Reserved.

Node Name: LIN01
Session established with server TIVOLI: Windows
  Server Version 6, Release 1, Level 3.2
  Server date/time: 25-01-2011 23:04:06  Last access: 25-01-2011 17:30:02

tsm> q inclexcl
*** FILE INCLUDE/EXCLUDE ***
Mode Function  Pattern (match from top down)  Source File
---- --------- ------------------------------ -----------------
No exclude filespace statements defined.
Excl Directory /.../.TsmCacheDir              TSM
Include All       /var/bi_01/nfs4vm/bi/.../*     "/home/tsm/inclexcl.txt"
Include All       /var/bi_01/nfs4vm/bi/*         "/home/tsm/inclexcl.txt"
Exclude All       /var/bi_01/.../*               "/home/tsm/inclexcl.txt"
Exclude All       /.../*                         "/home/tsm/inclexcl.txt"
Exclude All       /*                             "/home/tsm/inclexcl.txt"
No DFS include/exclude statements defined.
tsm> quit
[root@lin01 tsm]#

The output of the preview backup command (too big to show completely, only
showing one file that doesn't get backed up, and one that does get backed up):

Code:
[SIZE=2][root@lin01 tsm]# dsmc preview backup /var/bi_01/nfs4vm/bi/ -filter=INCL
Preview generated on 25-01-2011 23:05:23.
Name:   Size:   Type:   Status: Pattern:        Source: Mgmt Class:
...
/var/bi_01/nfs4vm/bi/backups/ofdb2/2011-01-04/data/igcx01.dbf   20.00  MB        .dbf    Included        /var/bi_01/nfs4vm/bi/.../*       "/home/tsm/i
nclexcl.txt"        DEFAULT
...
/var/bi_01/nfs4vm/bi/flash_recovery_area/BIPROD/backupset/2011_01_25/o1_mf_nnndf_TAG20110125T180016_6my0frlz_.bkp        2.00 GB .bkp    Included
        /var/bi_01/nfs4vm/bi/.../*      "/home/tsm/inclexcl.txt"        DEFAULT
...
[root@lin01 tsm]# 
[/SIZE]

The first file does NOT get backed up although it should be because it matches the pattern.
The second file does get backed up matching the same pattern.

The file missing in the backup doesn't show up in the GUI when trying to restore,
or by querying the backup table in the database.


 
it is a .dbf that means that is database file ..... may be that file is skipped as it is locked or in use by application
 
It is a database file, but one resulting from a cold backup. It isn't in use by any application. If it was, TSM BA client would have reported this when backing up incremental.
BTW, there are no error messages generated, none whatsoever.
 
try selective backup of that file and also incremental backup of that particular file and check how it is going
 
Did a selective backup, followed by an incremental backup of this one particular file. The selective backup was successful, the incremental backup also was successful although it didn't backup the file because the file hadn't changed.

Code:
[root@transporter tsm]# dsmc selective /var/bi_01/nfs4vm/bi/backups/ofdb2/2011-01-04/data/igcx01.dbf
IBM Tivoli Storage Manager
Command Line Backup-Archive Client Interface
  Client Version 6, Release 2, Level 1.1  
  Client date/time: 27-01-2011 14:20:02
(c) Copyright by IBM Corporation and other(s) 1990, 2010. All Rights Reserved.

Node Name: LIN01
Session established with server TIVOLI: Windows
  Server Version 6, Release 1, Level 3.2
  Server date/time: 27-01-2011 14:20:02  Last access: 27-01-2011 14:19:42

Selective Backup function invoked.

Directory-->               4,096 /var/bi_01/nfs4vm [Sent]      
Directory-->               4,096 /var/bi_01/nfs4vm/bi [Sent]      
Directory-->               4,096 /var/bi_01/nfs4vm/bi/backups [Sent]      
Directory-->               4,096 /var/bi_01/nfs4vm/bi/backups/ofdb2 [Sent]      
Directory-->               4,096 /var/bi_01/nfs4vm/bi/backups/ofdb2/2011-01-04 [Sent]      
Directory-->              20,480 /var/bi_01/nfs4vm/bi/backups/ofdb2/2011-01-04/data [Sent]      
Normal File-->        20,979,712 /var/bi_01/nfs4vm/bi/backups/ofdb2/2011-01-04/data/igcx01.dbf [Sent]      
Selective Backup processing of '/var/bi_01/nfs4vm/bi/backups/ofdb2/2011-01-04/data/igcx01.dbf' finished without failure.

                                  
Total number of objects inspected:        7
Total number of objects backed up:        7
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 inspected:     20.04 MB
Total number of bytes transferred:   20.01 MB
Data transfer time:                    0.53 sec
Network data transfer rate:        37,973.95 KB/sec
Aggregate data transfer rate:      19,465.92 KB/sec
Objects compressed by:                    0%
Total data reduction ratio:            0.16%
Elapsed processing time:           00:00:01
[root@transporter tsm]# 


[root@transporter tsm]# dsmc incremental /var/bi_01/nfs4vm/bi/backups/ofdb2/2011-01-04/data/igcx01.dbf
IBM Tivoli Storage Manager
Command Line Backup-Archive Client Interface
  Client Version 6, Release 2, Level 1.1  
  Client date/time: 27-01-2011 14:21:46
(c) Copyright by IBM Corporation and other(s) 1990, 2010. All Rights Reserved.

Node Name: LIN01
Session established with server TIVOLI: Windows
  Server Version 6, Release 1, Level 3.2
  Server date/time: 27-01-2011 14:21:46  Last access: 27-01-2011 14:20:02


Incremental backup of volume '/var/bi_01/nfs4vm/bi/backups/ofdb2/2011-01-04/data/igcx01.dbf'
Successful incremental backup of '/var/bi_01/nfs4vm/bi/backups/ofdb2/2011-01-04/data/igcx01.dbf'

                                  
Total number of objects inspected:        1
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:           0
Total number of bytes inspected:     20.00 MB
Total number of bytes transferred:       0  B
Data transfer time:                    0.00 sec
Network data transfer rate:            0.00 KB/sec
Aggregate data transfer rate:          0.00 KB/sec
Objects compressed by:                    0%
Total data reduction ratio:          100.00%
Elapsed processing time:           00:00:02
[root@transporter tsm]#
 
# dsmc q ba -ina /var/bi_01/nfs4vm/bi/backups/ofdb2/2011-01-04/data/igcx01.dbf
IBM Tivoli Storage Manager
Command Line Backup-Archive Client Interface
Client Version 6, Release 2, Level 1.1
Client date/time: 27-01-2011 15:28:03
(c) Copyright by IBM Corporation and other(s) 1990, 2010. All Rights Reserved.

Node Name: LIN01
Session established with server TIVOLI: Windows
Server Version 6, Release 1, Level 3.2
Server date/time: 27-01-2011 15:28:03 Last access: 27-01-2011 14:21:46

Size Backup Date Mgmt Class A/I File
---- ----------- ---------- --- ----
20,979,712 B 27-01-2011 14:20:02 DEFAULT A /var/bi_01/nfs4vm/bi/backups/ofdb2/2011-01-04/data/igcx01.dbf
#
 
I think it backed up during selective backup .....please check your copy group settings once ....if verexists is more than 1 then do one thing
delete the backed up file
a)update node node_name backdel=yes
b)del ba /var/bi_01/nfs4vm/bi/backups/ofdb2/2011-01-04/data/igcx01.dbf

and try

incr /var/bi_01/nfs4vm/bi/backups/ofdb2/2011-01-04/data/igcx01.dbf

and check q ba -ina /var/bi_01/nfs4vm/bi/backups/ofdb2/2011-01-04/data/igcx01.dbf

Note that selective backup works irrespective of incl-excl list but not normal incrmental backup
 
verexists is 2 and I am allowed to delete my own backups.

# dsmc
IBM Tivoli Storage Manager
Command Line Backup-Archive Client Interface
Client Version 6, Release 2, Level 1.1
Client date/time: 27-01-2011 16:25:01
(c) Copyright by IBM Corporation and other(s) 1990, 2010. All Rights Reserved.

Node Name: LIN01
Session established with server TIVOLI: Windows
Server Version 6, Release 1, Level 3.2
Server date/time: 27-01-2011 16:25:01 Last access: 27-01-2011 16:13:22

tsm> del ba /var/bi_01/nfs4vm/bi/backups/ofdb2/2011-01-04/data/igcx01.dbf

Backup files will be deleted. Do you wish to proceed? (Yes (Y)/No (N)) y
Backup Delete-> 20,979,712 /var/bi_01/nfs4vm/bi/backups/ofdb2/2011-01-04/data/igcx01.dbf [Sent]

Total number of objects deleted: 1
Total number of objects failed: 0
Total number of bytes transferred: 0 B
Data transfer time: 0.00 sec
Network data transfer rate: 0.00 KB/sec
Aggregate data transfer rate: 0.00 KB/sec
Objects compressed by: 0%
Total data reduction ratio: 0.00%
Elapsed processing time: 00:00:05
tsm> incr /var/bi_01/nfs4vm/bi/backups/ofdb2/2011-01-04/data/igcx01.dbf

Incremental backup of volume '/var/bi_01/nfs4vm/bi/backups/ofdb2/2011-01-04/data/igcx01.dbf'
Normal File--> 20,979,712 /var/bi_01/nfs4vm/bi/backups/ofdb2/2011-01-04/data/igcx01.dbf [Sent]
Successful incremental backup of '/var/bi_01/nfs4vm/bi/backups/ofdb2/2011-01-04/data/igcx01.dbf'

Total number of objects inspected: 1
Total number of objects backed up: 1
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 inspected: 20.01 MB
Total number of bytes transferred: 20.01 MB
Data transfer time: 0.59 sec
Network data transfer rate: 34,209.10 KB/sec
Aggregate data transfer rate: 19,474.37 KB/sec
Objects compressed by: 0%
Total data reduction ratio: 0.00%
Elapsed processing time: 00:00:01
tsm> q ba -ina /var/bi_01/nfs4vm/bi/backups/ofdb2/2011-01-04/data/igcx01.dbf
Size Backup Date Mgmt Class A/I File
---- ----------- ---------- --- ----
20,979,712 B 27-01-2011 16:25:24 DEFAULT A /var/bi_01/nfs4vm/bi/backups/ofdb2/2011-01-04/data/igcx01.dbf
tsm> quit
#
 
Well, I can backup a file if explicitly specified with the selective or incremental command.

But I have thousands of those files. So I made a inclecl list. The preview backup command
shows those files included for backup. When doing an incremental those files have not
been backed up.

Problem remains: why is preview backup different from incremental backup?

Anyway, thank you for your help.
 
Back
Top