how to exclude filesysystem ?

chandru0078

ADSM.ORG Member
Joined
Apr 14, 2008
Messages
58
Reaction score
0
Points
0
Dear friends

can anyone confirm that my method to incluexc is correct or not.

i need to exclude /db2 filesystem from backup. so i have edit the dsm.sys file as below but dsmsched.log shows its being backup again.After google in internet i found this suggestion exclude.fs /db2/* . Is it the correct way to exclude my /db2 filesystem?

Include/Exclude lists dictate what to backup, and what policies should files be placed under.

Exclude Statement Structures
exclude [file] Excludes files from backups and archives exclude.archive [file] Excludes file from archives exclude.fs [filesystem] Excludes filesystem from backups and archives exclude.dir [directory] Excludes directory from backups and archives exclude.compression [file] Excludes file from compression


tsm> q inclexc
*** FILE INCLUDE/EXCLUDE ***
Mode Function Pattern (match from top down) Source File
---- --------- ------------------------------ -----------------
No exclude filespace statements defined.
No exclude directory statements defined.
Exclude All /db2/* /usr/tivoli/tsm/client/ba/bin/dsm.sys
Exclude All /home/guest/* /usr/tivoli/tsm/client/ba/bin/dsm.sys
Exclude All /usr/sbin/* /usr/tivoli/tsm/client/ba/bin/dsm.sys
Exclude All /usr/bin/* /usr/tivoli/tsm/client/ba/bin/dsm.sys
Exclude All /usr/tivoli/tsm/client/ba/bin/dsmsched.log /usr/tivoli/tsm/client/ba/bin/dsm.sys
Exclude All /tmp/* /usr/tivoli/tsm/client/ba/bin/dsm.sys
Include All /proc/* /usr/tivoli/tsm/client/ba/bin/dsm.sys
Include All /lib/* /usr/tivoli/tsm/client/ba/bin/dsm.sys
Include All /var/* /usr/tivoli/tsm/client/ba/bin/dsm.sys
Include All /usr/* /usr/tivoli/tsm/client/ba/bin/dsm.sys
Include All /etc/* /usr/tivoli/tsm/client/ba/bin/dsm.sys
Include All /opt/* /usr/tivoli/tsm/client/ba/bin/dsm.sys
Include All /home/* /usr/tivoli/tsm/client/ba/bin/dsm.sys
No DFS include/exclude statements defined.

cat dsm.sys

include /home/*
include /opt/*
include /etc/*
include /usr/*
include /var/*
include /lib/*
include /proc/*

exclude /tmp/*
exclude /usr/tivoli/tsm/client/ba/bin/dsmsched.log
exclude /usr/bin/*
exclude /usr/sbin/*
exclude /home/guest/*
exclude /db2/*
#

Filesystem GB blocks Free %Used Iused %Iused Mounted on
/dev/hd4 0.50 0.35 31% 3181 4% /
/dev/hd2 10.00 5.13 49% 58975 5% /usr
/dev/hd9var 5.00 4.70 7% 1013 1% /var
/dev/hd3 4.00 1.87 54% 22508 5% /tmp
/dev/hd1 18.00 5.54 70% 11045 1% /home
/proc - - - - - /proc
/dev/hd10opt 1.00 0.68 32% 3420 3% /opt
/dev/db2backup 249.00 248.96 1% 4 1% /db2backup
/dev/fslv03 2.00 1.62 19% 470 1% /nmonlog
/dev/fslv04 3.00 1.74 43% 451 1% /vantage
/dev/db2log 59.88 15.91 74% 2827 1% /db2log
/dev/epriselv 1.00 1.00 1% 6 1% /var/log/eprise
/dev/db2lv 129.00 26.02 80% 3387 1% /db2
 
Yes, you can use exclude.fs to do that. There is another alternative as well.
In the DOMAIN line(s), you define all file systems you want to back up. You can either list all you want to back up, or set it to "all-local" (default), which backs up all local file systems. You can also set it to "all-local - /db2", to back up all except /db2.

1)
EXCLUDE.FS /db2

2)
DOMAIN ALL-LOCAL -/db2


You can choose either way. Exclude.fs might be the more intuitive way to do it. Both works equally well.
 
Hi
I don't understend why you use include options.
By default all files and directories implicitly included in backup
For exclude /db2/ you can use exclude.fs /db2
Add it in any place in dsm.sys. It will processed first.
In your excludes you exclude only files in this dris, not subdirs and files.

Efim
 
Hi staham

Thanks for the feedback. after edit dsm.sys i got below output and hope this will exclude my /db2 filesystem. I'll check dsmsched.log tomorrow morning to verify whether its been excluded from backup .Out of curiosity is there any different between export.fs /db2 vs export.fs /db2/* vs export.fs /db2/? which is more correct way or what is the differences


cat dsm.sys
exclude.fs /db2/


*** FILE INCLUDE/EXCLUDE ***
Mode Function Pattern (match from top down) Source File
---- --------- ------------------------------ -----------------
Excl Filespace /db2/ /usr/tivoli/tsm/client/ba/bin/dsm.sys
No exclude directory statements defined.
Exclude All /home/guest/* /usr/tivoli/tsm/client/ba/bin/dsm.sys
Exclude All /usr/sbin/* /usr/tivoli/tsm/client/ba/bin/dsm.sys
Exclude All /usr/bin/* /usr/tivoli/tsm/client/ba/bin/dsm.sys
Exclude All /usr/tivoli/tsm/client/ba/bin/dsmsched.log /usr/tivoli/tsm/client/ba/bin/dsm.sys
Exclude All /tmp/* /usr/tivoli/tsm/client/ba/bin/dsm.sys
Include All /proc/* /usr/tivoli/tsm/client/ba/bin/dsm.sys
Include All /lib/* /usr/tivoli/tsm/client/ba/bin/dsm.sys
Include All /var/* /usr/tivoli/tsm/client/ba/bin/dsm.sys
Include All /usr/* /usr/tivoli/tsm/client/ba/bin/dsm.sys
Include All /etc/* /usr/tivoli/tsm/client/ba/bin/dsm.sys
Include All /opt/* /usr/tivoli/tsm/client/ba/bin/dsm.sys
Include All /home/* /usr/tivoli/tsm/client/ba/bin/dsm.sys
No DFS include/exclude statements defined.

chandru0078
 
Dear All

i have tried used exclude.dir /db2 ,exclude.fs /db2 and exclude /db2 but the filesystem still being backup daily ? Anyone know why this happing ?

Session established with server TSM-213-18_SERVER1: Windows
Server Version 5, Release 5, Level 1.1
Server date/time: 09/26/08 10:42:08 Last access: 09/26/08 09:11:32

*** FILE INCLUDE/EXCLUDE ***
Mode Function Pattern (match from top down) Source File
---- --------- ------------------------------ -----------------
No exclude filespace statements defined.
Excl Directory /db2/ /usr/tivoli/tsm/client/ba/bin/dsm.sys
Exclude All /home/guest/* /usr/tivoli/tsm/client/ba/bin/dsm.sys
Exclude All /usr/sbin/* /usr/tivoli/tsm/client/ba/bin/dsm.sys
Exclude All /usr/bin/* /usr/tivoli/tsm/client/ba/bin/dsm.sys
Exclude All /usr/tivoli/tsm/client/ba/bin/dsmsched.log /usr/tivoli/tsm/client/ba/bin/dsm.sys
Exclude All /tmp/* /usr/tivoli/tsm/client/ba/bin/dsm.sys

Clinet 5.3.2.0(unix)

Server 5.5.1.1
 
Last edited:
Hi,
Is your DB2 filesystem really named '/db2'? Or '/db2/<instance>/<node>'?
Please post 'mount -l'

Try this
exclude.fs /db2/.../*

Rudy
 
Hi there

my /db2 filesystem disk mount from SAN ,but i believe TSM should treat is as local file system .I have used object backup option in the schedule which backups only selected filesystem .Anyway still interested why incluexc not able to do this function

Schedule Name: DAILY_INCR_BACKUP_FS_PRDDBLA1
Description: daily EE backup for PRDDBLA1
Schedule Style: Classic
Action: Incremental
Options:
Objects: / /usr /var /home /opt /db2backup /db2log /var/log/eprise
Priority: 1
Next Execution: 12 Hours and 36 Minutes
Duration: 1 Hour
Period: 1 Day


# ls -lrt
total 6032
drwxrwxrwx 2 root system 256 Mar 09 2006 lost+found
-rw------- 1 root system 3081034 Oct 12 2007 errOut.log
drwxr-x--- 6 db2admin db2grp1 256 Aug 08 18:29 db2admin
drwxr-x--- 5 db2admin db2grp1 4096 Sep 28 23:59 DB2DUMP


# mount
node mounted mounted over vfs date options
-------- --------------- --------------- ------ ------------ ---------------
/dev/hd4 / jfs2 Aug 20 03:36 rw,log=/dev/hd8
/dev/hd2 /usr jfs2 Aug 20 03:36 rw,log=/dev/hd8
/dev/hd9var /var jfs2 Aug 20 03:36 rw,log=/dev/hd8
/dev/hd3 /tmp jfs2 Aug 20 03:36 rw,log=/dev/hd8
/dev/hd1 /home jfs2 Aug 20 03:36 rw,log=/dev/hd8
/proc /proc procfs Aug 20 03:36 rw
/dev/hd10opt /opt jfs2 Aug 20 03:36 rw,log=/dev/hd8
/dev/db2backup /db2backup jfs2 Aug 20 03:36 rw,log=/dev/loglv00
/dev/fslv03 /nmonlog jfs2 Aug 20 03:36 rw,log=/dev/hd8
/dev/fslv04 /vantage jfs2 Aug 20 03:36 rw,log=/dev/hd8
/dev/db2log /db2log jfs2 Aug 20 03:36 rw,log=/dev/loglv01
/dev/epriselv /var/log/eprise jfs2 Aug 20 03:36 rw,log=/dev/hd8
/dev/db2lv /db2 jfs2 Aug 20 05:23 rw,log=/dev/datavglog
10.200.215.46 PRDDBLA1DB2Backup /db2nfs nfs3 Sep 09 17:37 rw,bg,hard,intr,grpid,sec=sys
 
Back
Top