dbTalk Databases Forums  

ISM backups query

comp.databases.informix comp.databases.informix


Discuss ISM backups query in the comp.databases.informix forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Malc
 
Posts: n/a

Default ISM backups query - 07-26-2010 , 08:25 AM






Can't seem to find the info anywhere for this one.
I'm testing ISM for many obscure reasons; I've got it configured
(eventually!) for backup to disk, which will be used as a staging area
from whence the resulting files (and the bootstrap files, of course)
will be sent to tape.

I have actually managed to get some level 0 backups to run using a
dbspace list file to define which dbspaces to back up; on completion,
there is a file in the DiskData path for each dbspace backed up, the
filename for each dbspace having a unique identifier, and I can cross-
reference the files to the dbspaces they refer to by checking the
bar_act log and the ixbar file. So far so hoopy.

But there are always a couple of extra files created after the backup
(and numbered consecutively with the dbspace and logfile file numbers)
which I assume are necessary for restore purposes that I can't seem to
find referred to in any of the log files I mentioned.
Any idea what they might be and how I can script something to record
their names to ensure they're not left out when I save everything to
tape?
Cheers

Reply With Quote
  #2  
Old   
Malc
 
Posts: n/a

Default Re: ISM backups query - 07-26-2010 , 08:36 AM






On Jul 26, 2:25*pm, Malc <mal... (AT) googlemail (DOT) com> wrote:
Quote:
Can't seem to find the info anywhere for this one.
I'm testing ISM for many obscure reasons; I've got it configured
(eventually!) for backup to disk, which will be used as a staging area
from whence the resulting files (and the bootstrap files, of course)
will be sent to tape.

I have actually managed to get some level 0 backups to run using a
dbspace list file to define which dbspaces to back up; on completion,
there is a file in the DiskData path for each dbspace backed up, the
filename for each dbspace having a unique identifier, and I can cross-
reference the files to the dbspaces they refer to by checking the
bar_act log and the ixbar file. So far so hoopy.

But there are always a couple of extra files created after the backup
(and numbered consecutively with the dbspace and logfile file numbers)
which I assume are necessary for restore purposes that I can't seem to
find referred to in any of the log files I mentioned.
Any idea what they might be and how I can script something to record
their names to ensure they're not left out when I save everything to
tape?
Cheers
Oh hang on; one of them's referred to in the bootstrap notification
email that comes out (well the email has a number in it that
corresponds to one of the file names) but the other one is still a
mystery. Still looking...

Reply With Quote
  #3  
Old   
david@smooth1.co.uk
 
Posts: n/a

Default Re: ISM backups query - 07-29-2010 , 01:54 PM



On 26 July, 14:36, Malc <mal... (AT) googlemail (DOT) com> wrote:
Quote:
On Jul 26, 2:25*pm, Malc <mal... (AT) googlemail (DOT) com> wrote:



Can't seem to find the info anywhere for this one.
I'm testing ISM for many obscure reasons; I've got it configured
(eventually!) for backup to disk, which will be used as a staging area
from whence the resulting files (and the bootstrap files, of course)
will be sent to tape.

I have actually managed to get some level 0 backups to run using a
dbspace list file to define which dbspaces to back up; on completion,
there is a file in the DiskData path for each dbspace backed up, the
filename for each dbspace having a unique identifier, and I can cross-
reference the files to the dbspaces they refer to by checking the
bar_act log and the ixbar file. So far so hoopy.

But there are always a couple of extra files created after the backup
(and numbered consecutively with the dbspace and logfile file numbers)
which I assume are necessary for restore purposes that I can't seem to
find referred to in any of the log files I mentioned.
Any idea what they might be and how I can script something to record
their names to ensure they're not left out when I save everything to
tape?
Cheers

Oh hang on; one of them's referred to in the bootstrap notification
email that comes out (well the email has a number in it that
corresponds to one of the file names) but the other one is still a
mystery. Still looking...
Run ism_show -volumes

Reply With Quote
  #4  
Old   
Malc
 
Posts: n/a

Default Re: ISM backups query - 08-17-2010 , 09:53 AM



OK what I get is this:
Start a clean instance of ISM with emtpy storage paths on disk for
Data (ISMDiskData) and logs (ISMDiskLogs).
Perform a full backup to disk of a test instance.
Result: in ISMDiskData are files numbered 180.0 to 193.0, then 195.0
and 196.0, in ISMDiskLogs is file 194.0

I can cross-correlate files 180.0 up to 192.0 using bar_act.log to
their related dbspaces.
I can cross-correlate file 194.0 using bar_act.log to a logical log.
I get an email with the text:
date time level ssid file record volume
08/16/10 16:42:05 full 196 196 0 ISMData001
So I can see that file 196.0 is the bootstrap file.

If I "strings" file 193.0 I see the text "continued save file from
ssid 192, savetime 1281973019"
This makes sense because the dbspace that file 192.0 refers to backs
up to > 2Gb.

SO: now I know which files relate to dbspaces and logical logs and I
can identify the bootstrap file from the email.

Annoyances that need resolving:
I need to be able automatically to produce a report after doing a
backup, listing all the files that are necessary if I were to want to
restore the backup. There is NOWHERE that I can see that explains that
file 192.0 is continued in 193.0, so I can't create a report
reflecting this (without doing some dodgy scripting making assumptions
regarding the backup time).
I can't see anything telling me on the source system that file 196.0
is the bootstrap file, all I have is the email telling me.
I can't see anything that refers to file 195.0, anywhere.
There's nothing in the sysutils database that gives any of this
information, and nothing in the nsr log path either.

Does anyone know of an nsradmin command that lists the paths used in
any particular backup?

Reply With Quote
  #5  
Old   
Malc
 
Posts: n/a

Default Re: ISM backups query - 08-17-2010 , 10:47 AM



Hah!
Somehow - and I'm not sure of the route I got there - I found Legato's
"mminfo" command and the online manual thereto.
It still needs some serious jiggery-pokery to find all the right info
but it CAN be made to list the files in a format which needs some grep/
sed/awk to make it useable..

It shouldn't be this difficult, surely?

Reply With Quote
  #6  
Old   
david@smooth1.co.uk
 
Posts: n/a

Default Re: ISM backups query - 08-17-2010 , 02:42 PM



On 17 Aug, 16:47, Malc <mal... (AT) googlemail (DOT) com> wrote:
Quote:
Hah!
Somehow - and I'm not sure of the route I got there - I found Legato's
"mminfo" command and the online manual thereto.
It still needs some serious jiggery-pokery to find all the right info
but it CAN be made to list the files in a format which needs some grep/
sed/awk to make it useable..

It shouldn't be this difficult, surely?
ism_show -volumes

Reply With Quote
  #7  
Old   
Malc
 
Posts: n/a

Default Re: ISM backups query - 08-17-2010 , 03:19 PM



On Aug 17, 8:42*pm, "da... (AT) smooth1 (DOT) co.uk" <da... (AT) smooth1 (DOT) co.uk> wrote:
Quote:
On 17 Aug, 16:47, Malc <mal... (AT) googlemail (DOT) com> wrote:

Hah!
Somehow - and I'm not sure of the route I got there - I found Legato's
"mminfo" command and the online manual thereto.
It still needs some serious jiggery-pokery to find all the right info
but it CAN be made to list the files in a format which needs some grep/
sed/awk to make it useable..

It shouldn't be this difficult, surely?

ism_show -volumes
Only shows paths to the backed-up files, no other info.

Reply With Quote
  #8  
Old   
TBP
 
Posts: n/a

Default Re: ISM backups query - 08-18-2010 , 04:35 AM



On 17/08/2010 21:19, Malc wrote:
Quote:
On Aug 17, 8:42 pm, "da... (AT) smooth1 (DOT) co.uk"<da... (AT) smooth1 (DOT) co.uk> wrote:
On 17 Aug, 16:47, Malc<mal... (AT) googlemail (DOT) com> wrote:

Hah!
Somehow - and I'm not sure of the route I got there - I found Legato's
"mminfo" command and the online manual thereto.
It still needs some serious jiggery-pokery to find all the right info
but it CAN be made to list the files in a format which needs some grep/
sed/awk to make it useable..

It shouldn't be this difficult, surely?

ism_show -volumes

Only shows paths to the backed-up files, no other info.
ism_show -volume "volume_name"?

Not really sure what you are trying to achieve here, but the most
salient thing to understand is :

1. ISM will back up "objects" and has no real understanding of
"dbspaces" or "logical logs"

2. Informix sends dbspaces and logical log "objects" to ISM (or whatever
storage manager is in use).

So, I would suggest that you want to look at recovering the ISM catalog,
rather than just the bits out of ISM that are required to recover a
single activity of a Level 0 archive with logical logs.

Anyway, hope it helps

Reply With Quote
  #9  
Old   
Malc
 
Posts: n/a

Default Re: ISM backups query - 08-18-2010 , 07:56 AM



For operational reasons which I'm not going to bother everyone with,
we are being tasked to run overnight level 0 backups using onbar & ISM
to disk which will then be picked up at a later, arbitrarily decided,
time by a corporate storage management system.
So it is vital that I can report with certainty that the onbar backup
that ran at 8pm last night consists of a given list of files. As far
as I can see - and maybe I'm missing something fundamental here -
there is nothing created by ISM that says which files were created by
a given backup request.
ism_show -volume <name> just lists the files on a volume, not which
backup session created them.

I suppose I'm just going to create a new volume for each backup and
then ringfence it.

Reply With Quote
  #10  
Old   
TBP
 
Posts: n/a

Default Re: ISM backups query - 08-18-2010 , 08:18 AM



On 18/08/2010 13:56, Malc wrote:
Quote:
For operational reasons which I'm not going to bother everyone with,
we are being tasked to run overnight level 0 backups using onbar& ISM
to disk which will then be picked up at a later, arbitrarily decided,
time by a corporate storage management system.
So it is vital that I can report with certainty that the onbar backup
that ran at 8pm last night consists of a given list of files. As far
as I can see - and maybe I'm missing something fundamental here -
there is nothing created by ISM that says which files were created by
a given backup request.
ism_show -volume<name> just lists the files on a volume, not which
backup session created them.

I suppose I'm just going to create a new volume for each backup and
then ringfence it.


Well have a look at :

nsrinfo -n informix localhost

which may give you something close to what you want (excluding bootstrap
info)

I suggested googling nsrinfo and have a look at the full man page.

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.