included path but didnt reflect on restore

seekerTSM

ADSM.ORG Member
Joined
Nov 4, 2019
Messages
65
Reaction score
2
Points
0
PREDATAR Control23

hi Folks,

i just included the ff path below in the dsm.opt and dsm_m.opt to be included in the backup schedule, but upon checking i think those path still not being backup cause i try to restore -pick the still no updated backup date

below path included in dsm.opt and dsm_m.opt
/db2export/db2fenc1/housekeep/issr
/db2export/db2fenc1/housekeep/ch
/db2export/db2fenc1/housekeep/sm

is my checking is correct? is not really backup? i also check the file inside and found out that there is also other dsm.opt.02-Oct-2019 and dsm_m.opt.02-Oct-2019.

is that the reason why my backup is not reflected? because theres a duplicate dsm?


-rwxr-xr-x 1 root system 245 Nov 21 16:57 dsm.opt
-rwxr-xr-x 1 root system 103 Jul 08 2015 dsm.opt.02-Oct-2019
-rwxr-xr-x 1 root system 245 Nov 21 17:00 dsm_m.opt
-rwxr-xr-x 1 root system 104 Jul 08 2015 dsm_m.opt.02-Oct-2019


your help is much appreciated
 
PREDATAR Control23

update. i deleted dsm.opt.02-Oct-2019 and dsm_m.opt.02-Oct-2019 and run inc - absolute then when i check the restore, its still the same. there is no current date, November 22 or 21. can someone enlighten me? :)


# Backup Date/Time File Size A/I File
-----------------------------------------------------------------------------------------------------------------------------------------------------------
1. | 10/07/19 09:14:50 256 B A /db2export/db2fenc1/housekeep/sm/20191002
2. | 10/07/19 09:14:50 256 B A /db2export/db2fenc1/housekeep/sm/20191003
3. | 10/07/19 09:14:50 256 B A /db2export/db2fenc1/housekeep/sm/20191004
4. | 10/07/19 09:14:51 256 B A /db2export/db2fenc1/housekeep/sm/20191005
5. | 10/07/19 09:14:51 256 B A /db2export/db2fenc1/housekeep/sm/20191006
6. | 10/07/19 09:14:51 256 B A /db2export/db2fenc1/housekeep/sm/20191007
7. | 10/08/19 14:11:53 256 B A /db2export/db2fenc1/housekeep/sm/20191008
 
PREDATAR Control23

Run dsmc query inclexcl to see if the path is excluded.

What's the full backup command?

You don't seem to know which option file you are using by the multiple files you are showing as updating/deleting. If you don't specify a .opt file, you are using dsm.opt or the one specified by $DSM_CONFIG. If you specify one with that -optfile option, you're using that one and only that one. So no need to update/delete multiple .opt files, just make sure the one you are working with is correct.

Is that path local or NFS? If NFS, is that in your domain statement.

Side note, not sure what you are trying to achieve with -absolute. An incremental would pick up a file not previously backed up just the same. You're just using up additional storage space and losing version history with absolute.
 
PREDATAR Control23

hi,

here is the output of dsmc query inclexcl

*** FILE INCLUDE/EXCLUDE ***
Mode Function Pattern (match from top down) Source File
---- --------- ------------------------------ -----------------
No exclude filespace statements defined.
Excl Directory /.../.TsmCacheDir TSM
No include/exclude statements defined.
No DFS include/exclude statements defined.

here is the cat of dsm.opt

Ervername CLUSTER_DAILY_FF
domain /db2home /db2sys /db2export /db2deploy /db2admin /db2backup /db2dump /db2export/db2fenc1/housekeep /d2export/db2fenc1/housekeep/issr/ db2export/db2fenc1/housekeep/ch /db2export/db2fenc1/housekeep/sm /TSM


is the -absolute is the FULL backup? INCR is incremental only so i use -absolute to run FULL backup?


really confuse with TSM, your reply is always appreciated.
 
PREDATAR Control23

hi,

its seems my understanding of FULL and INCR backup in Data protector and TSM are different. is this definition is different?

A Full Backup is a complete backup of all files on the designated hard drive.

An Incremental Backup is a backup of all changed files since the last Full or Incremental backup. For example:

  • Friday - Full Backup
  • Monday - All changed files since Friday
  • Tuesday - All changed files since Monday


the command used is inc -absolute.


back to the questions.

i add these path in dsm and dsm_m.opt.

/db2export/db2fenc1/housekeep/issr
/db2export/db2fenc1/housekeep/ch
/db2export/db2fenc1/housekeep/sm

drwxr-x--- 3 root system 4096 Nov 22 11:01 .
drwxrwxrwx 4 root system 256 Sep 22 2015 ..
drwxr-x--- 4 root system 256 Apr 18 2018 Nodes
-rw-rw-r-- 1 root system 1290 Oct 21 03:19 TSM.IDX
-rw-rw-rw- 1 root system 6319 Oct 21 03:19 TSM.KDB
-rw------- 1 root system 193 Apr 18 2018 TSM.sth
-rw-r--r-- 1 root system 3763 Aug 11 19:05 citScanOutput.xml
-r-xr-x--- 1 root system 2 Sep 22 2015 dsm.inclexcl
-r-xr-x--- 1 root system 245 Nov 22 10:55 dsm.opt
-r-xr-x--- 1 root system 103 Sep 22 2015 dsm.opt.orig
-r-xr-x--- 1 root system 2 Sep 22 2015 dsm_m.inclexcl
-r-xr-x--- 1 root system 245 Nov 21 17:17 dsm_m.opt
-r-xr-x--- 1 root system 104 Sep 22 2015 dsm_m.opt.orig
-r-xr-x--- 1 root system 16866325 Nov 22 03:26 dsmerror.log
-r-xr-x--- 1 root system 6072598 Nov 03 04:46 dsmerror_m.log
-rw-r----- 1 root system 3976181 Nov 22 03:26 dsminstr.log
-rw-r----- 1 root system 0 Nov 22 03:26 dsminstr.log.lock
-rw-r--r-- 1 root system 73052664 Nov 22 11:01 dsmsched.log
-rw-r--r-- 1 root system 36318386 Nov 22 11:01 dsmsched_m.log
-rw-r--r-- 1 root system 7280161 Nov 22 11:01 dsmwebcl.log



then, when i try to check if the path that i include is being backup, i try to restore using restore /db2export/db2fenc1/housekeep/issr but no displays.

see attached screenshot
 

Attachments

  • forum include.jpg
    forum include.jpg
    93 KB · Views: 3
PREDATAR Control23

hi,


i add thesse path on the dsm.opt. is that correct? see screenshot


/db2export/db2fenc1/housekeep/issr

/db2export/db2fenc1/housekeep/ch

/db2export/db2fenc1/housekeep/sm
 

Attachments

  • cat dsm.opt.jpg
    cat dsm.opt.jpg
    23.5 KB · Views: 2
PREDATAR Control23

i add thesse path on the dsm.opt. is that correct? see screenshot


/db2export/db2fenc1/housekeep/issr

/db2export/db2fenc1/housekeep/ch

/db2export/db2fenc1/housekeep/sm
It depends, are these filesystems or directories? It's correct if filesystems, wrong if directories. Only filesystems can be specified with the domain option.

An Incremental Backup is a backup of all changed files since the last Full or Incremental backup. For example:

  • Friday - Full Backup
  • Monday - All changed files since Friday
  • Tuesday - All changed files since Monday
Not with Spectrum Protect.
Day 1 - incremental backup (results in a full because nothing was backed up before.
Day 2 - incremental (all files changed since previous backup)
Day 3 - incremental (all files changed since previous backup)
...
Day 31 - incremental (all files changed since previous backup)
...
Day 365 - incremental (all files changed since previous backup)
...
Day 999999 - incremental.\ (all files changed since previous backup)

Hence incremental forever. Read the link I gave you, you rarely need to do fulls (absolute), you may think you need to, but you don't.
 
PREDATAR Control23

hi,

the path is directory. all the path in that is directory i never edit it, i just add those 3 path/directories.

when i test restore, only /sm have the restore other dont have. i just add all the same

any tips on how can i make it work?

/db2export/db2fenc1/housekeep/issr

/db2export/db2fenc1/housekeep/ch

/db2export/db2fenc1/housekeep/sm


there is a data in all the directories that i included but when i testing to restore it, its none.
 

Attachments

  • path included.jpg
    path included.jpg
    190.7 KB · Views: 1
  • testing restore.jpg
    testing restore.jpg
    106.8 KB · Views: 1
PREDATAR Control23

i just edit my dsm.opt, still the same. see screenshot
 

Attachments

  • dsm opt updated.jpg
    dsm opt updated.jpg
    26.5 KB · Views: 4
PREDATAR Control23

Ok. Change the domain option to only list the filesystems for those directories. For example, if /db2export is the filesystem, you only need:
domain /db2export (+ your other filesystems you want backed up, no directories)

Then do a standard incremental backup (no need for absolute). Just make sure to quit the client and start it before running the backup.
 
PREDATAR Control23

hi,

can you check my screenshot attached? can you check if my dsm.opt is correct?
i also notice other another dsm.opt.orig and dsm_m.opt.orig, will this be conflicting in MY dsm.opt and dsm_m.opt?

i wonder why i included all 3 path but i only see 1(/sm) when i try to restore it.
 

Attachments

  • updated vi dsm.opt - Copy.jpg
    updated vi dsm.opt - Copy.jpg
    176.3 KB · Views: 3
PREDATAR Control23

i also notice other another dsm.opt.orig and dsm_m.opt.orig, will this be conflicting in MY dsm.opt and dsm_m.opt?
Reread https://adsm.org/forum/index.php?th...t-didnt-reflect-on-restore.32962/#post-136871

You said that some of your domains are directories. Only put filesystems. Because I don't know what's filestem and what is directory, I can't tell you if your .opt file looks good. Take a look at the output of df command on your OS. That's your filesystems, that's what you should put for your domains as per:
https://adsm.org/forum/index.php?th...ut-didnt-reflect-on-restore.32962/post-136881 Don't put directories in your domain.

Also make sure that your Spectrum Protect administrator doesn't force options on you. To see the effective domain, issue: dsmc query option domain. That will be the net result of the option file plus client options from the server. Only do that after you fixed the domain option by removing directories and only listing filesytems.

I still have not seen your backup command. Are you just issuing incremental or abbreviated by itself? If so that should backup all your domains. If you specify a path though, it will only backup that path.

At the beginning of the backup, you should see the list of filestems being backed up. Do you see your filesystems like here:
1574539878432.png
 
PREDATAR Control23

-i believe db2export/db2fenc1/housekeep/sm /ch / issr are all folder, and all the files under there is the file.see below example
1574613086375.png


here is the output of dsmc query option domain
1574613338276.png

here is the output of DF command
1574613434941.png


about the incr command, is it different if i use I only, incr or INCREMENTAL? does it differ?

it seems not included in the backup output. i attached the incremental backup output here.

looking forward on this. thank you
 

Attachments

  • output incremental backup.txt
    21.3 KB · Views: 0
PREDATAR Control23

All the domains you want to backup are excluded, see all the -/db2...

You must be editing the .opt file or using the wrong stanza in dsm.sys or have conflicting info in the stanza in dsm.sys.

Run dsmc query option optfile to see which .opt is being used.

Read the .opt file from the above and look at the servername value.

That's the stanza you need to edit in dsm.sys.

Or if you want to use a different stanza, specify -servername={stanza} when starting dsmc.

Or if you want to use a different .opt file, specify -optfile={option_file}

Example:
dsmc -servername=stanza_name
dsmc -optfile=optionfile.opt
 
PREDATAR Control23

if i want to include/exclude, where do i edit it? in the dsm.opt or dsm.sys?

here is the output of dsmc query option optfile, does this mean that i need to edit my opt file under the /usr/tivoli/tsm/client/ba/bin64?

1574704351018.png
 
PREDATAR Control23

if i want to include/exclude, where do i edit it? in the dsm.opt or dsm.sys?
Either, but preferably not both to keep things clean. I prefer dsm.sys, so I have the info for all my stanzas there. But you do what you prefer.

here is the output of dsmc query option optfile, does this mean that i need to edit my opt file under the /usr/tivoli/tsm/client/ba/bin64?
Is that the option file you want to use?
If yes, is the servername in that option file correspond to the stanza in dsm.sys you want to use? If yes, then yes you can edit that dsm.opt or edit the matching servername stanza in dsm.sys.
 
Top