Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

TSM (mkjfsback) on AIX 1

Status
Not open for further replies.

cipaera

Technical User
May 14, 2007
24
0
0
NL
Dear all,

I hope someone can help me to resolve this problem.

We use TSM via script to backup some filesystems on AIX 5.3 systems.
Unfortunately as soon as an error was produced by "find" (0652-019) the backup process stopped.

My questions are:
How can the process finish the backup successfully, eventhough there is a "find"-error?
How should I change the backup command/script?
(I couldn't find the force or "go-further-with-the-backup-after-a-find-error" option
in mkjfsback)

Best regards,
cipaera

Software: tivoli.tsm.client.sysback.rte 5.6.8.3

Backup command (used in the script, which was stopped):
---------------------------------------------------------------------
fs2backup_bk ()
{
mkjfsback -h bckserverhost -f/dev/rmt0 -x -n -l0 -U remotehost / /usr /var /home /opt
}

Log output:
---------------------------------------------------------------------
Generating LVM information ..
Generating table of contents ..
Pre-processing / filesystem ..
find: 0652-019 The status on ./var/__adXX.X.XXXXXXX is not valid.

Error writing temporary file. Check space in /tmp directory. <=== space was OK!

FAILURE: Filesystem backup failed to complete.
^G
mkjfsback: Filesystem backup failed on host pof01.

FAILURE: Filesystem backup failed to complete.
---------------------------------------------------------------------
 
make that

[tt]chexcludelist -a '/var/__*'[/tt]


HTH,

p5wizard
 
Hi p5wizard,
thanks for your suggestion.
I've almost used the trick, but there were more error outputs from "find", which I can't filter with
chexcludelist -a /var/__*

Some of the other error outputs are:
find: 0652-019 The status on ./var/spool/mqueue/xfl7AM0qC573578 is not valid.
find: 0652-019 The status on ./usr/WebSphere/AppServer/logs/activity.log.lck is not valid.


So.. I need another trick. :(
Any other suggestion, please?

Best regards,
cipaera
 
Do you really want to backup /var/spool/mqueue contents?

I'd just add more exclude lines:

[/tt]chexcludelist -a '/var/__*'
chexcludelist -a '/var/spool/mqueue/*'
chexcludelist -a '/usr/WebSphere/AppServer/logs/activity.log.lck'[/tt]

Of course you could write a shell wrapper around the find command that fakes a zero return code for find, just make sure that the mkjfsback process locates this find script before the real /usr/bin/find (adapt the PATH variable)

/usr/local/bin/find:
--------------------
[tt]#!/bin/ksh
/usr/bin/find $*
exit 0[/tt]



HTH,

p5wizard
 
p5wizard: thanks for your tips. It is what I'm looking for.
Now I'm still trying to understand how to adapt the PATH
variable and is it the global path or tsm specific path.
If it is "tsm binary path" could you tell me, which/how to adapt?

Best regards,
cipaera
 
Just make sure the PATH is adapted for the process which runs mkjfsback.

in your backup script:

[tt]PATH=/usr/local/bin:${PATH}
mkjfsback <whatever flags or args>[/tt]

provided the find wrapper is in /usr/local/bin.


HTH,

p5wizard
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top