![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
IDS9.30HC5, HP-UX 11i We've moved to backing up our databases using "onbar -b -L 0 -f dbspacelist_file>" using ISM, whereas before we used "onbar -b -L 0 - w". We used to do a regular simple imported physical restore of the -w backups to our test server and obviously only needed the dbspaces and the logical log that was current at the start of the backup. Doing the new backup using a dbspace list file, I'm a little uncertain of the entire chain of events with regard to restoring; we'll obviously need the dbspaces and logical logs but I'm trying to work out exactly what will happen. It may be the case that several logical logs fill during the database backup process (we stop all processing at the start of the backup and allow it to restart once the backup is confirmed as running). This means that some later dbspaces are being backed-up when a couple of logical logs have been filled since rootdbs was backed up. ixbar shows us the log required to restore each particular dbspace (which may be a couple of logs later than the one active when rootdbs was backed up) but I'm wondering which point-in-time I can use for the restore - we'd rather the restore restored the database to the point-in-time that the backup was started; is this possible? It looks to me like the later dbspaces can't be restored to that time, and we can't hold off system processing for the whole duration of the backup... I supoose I should have paid more attention in the onbar training course! |
#3
| |||
| |||
|
#4
| |||
| |||
|
|
may have to revert to -w (which disallows point-in-time). |
#5
| |||
| |||
|
|
may have to revert to -w (which disallows point-in-time). |
|
Woops - I said may have to revert to -w (which disallows point-in-time). Yes you can. onbar -r -w -t or onbar -r -w -n. OK; so if logical logs 1000 to 1005 were filled after the backup completed, I can do onbar -r -w -n 1003 and it'll restore to that log; or if the backup finished at 13:00 I can do onbar -r -w -t "2010-11-09 14:00" if I have the logical logs from that time. More reading required... |
#6
| |||
| |||
|
|
Woops - I said may have to revert to -w (which disallows point-in-time). Yes you can. onbar -r -w -t or onbar -r -w -n. OK; so if logical logs 1000 to 1005 were filled after the backup completed, I can do onbar -r -w -n 1003 and it'll restore to that log; or if the backup finished at 13:00 I can do onbar -r -w -t "2010-11-09 14:00" if I have the logical logs from that time. More reading required... _______________________________________________ Informix-list mailing list Informix-list (AT) iiug (DOT) org http://www.iiug.org/mailman/listinfo/informix-list |
#7
| |||
| |||
|
|
SB, thanks. All databases are log mode U or B. Looking back at my OnBar course notes, they go on at length about backup consistency being guaranteed such that a backup "Contains all pages required to restore the system to [the time the backup was started]". Note it says "the system" and "the time the backup was started". No mention of dbspaces that may occur later in the process, or whether this is only valid for a type -w backup. It also says "A level 0 backup contains a copy of all data in the server system as of the time the backup was started"; this seems to conflict with your analysis but I'd tend to go with an experienced user's POV, I think... Decided to go to "-f" to take advantage of point-in-time as a banker option (in case of anyone stuffing up critical data) but looks like we may have to revert to -w (which disallows point-in-time). |
#8
| |||
| |||
|
|
Hi, an ON-Bar whole system backup (done with the "-w" command line parameter) should offer all functionality just like an ON-Bar backup without "-w". (In older versions of Informix whole system backups used to be serial, whereas *only non-whole system backups were parallel ... but this restriction has been *lifted in a past release.) The real difference is that a whole system backup *can* be restored without restoring logical log files. Whereas a non-whole system backup always needs logical log files for a complete restore. Therefore a whole system backup can also be used for long term archiving (e.g. for legal reasons) - without needing to worry that the corresponding logical log file backups do not get deleted. If I remember correctly, then a point in time (PIT) for a restore can be even in the intervall between backup start and backup end (not only after the backup end). Logical log records should be rolled back correctly (or before images will be applied) to get to the correct and consistent state. Thus with ON-Bar backups and logical log backups done regularly, basically any PIT can be given for a restore - ON-Bar will find the corresponding backup needed (given that it still exists) and the needed logical log file backups and restore them accordingly. [ For reasons of common sense restore PITs that would be before the * first available backup or too far in the future are ... not really supported. ]Regards, Martin -- Martin Fuerderer IBM Informix Development Munich, Germany Information Management IBM Deutschland Research & Development GmbH Chairman of the Supervisory Board: Martin Jetter Board of Management: Dirk Wittkopp Corporate Seat: Boeblingen, Germany Reg.-Gericht: Amtsgericht Stuttgart, HRB 243294 informix-list-boun... (AT) iiug (DOT) org wrote on 11/09/2010 02:26:43 PM: Woops - I said may have to revert to -w (which disallows point-in-time). Yes you can. onbar -r -w -t or onbar -r -w -n. OK; so if logical logs 1000 to 1005 were filled after the backup completed, I can do onbar -r -w -n 1003 and it'll restore to that log; or if the backup finished at 13:00 I can do onbar -r -w -t "2010-11-09 14:00" if I have the logical logs from that time. More reading required... _______________________________________________ Informix-list mailing list Informix-l... (AT) iiug (DOT) org http://www.iiug.org/mailman/listinfo/informix-list |
#9
| |||
| |||
|
|
Then you should do normal archvie (level 0/1/2) and log archives.and use parallel backups with onconfig parameter BAR_MAX_BACKUP controlling parallelism from the database server side. You can then restore to current time (onbar -r) or a given point in time (onbar -r -t time). If however your database are unlogged or you do not take log backups then you will need to run level 0/1/2 with -w (whole system) option and log backups will not be required for restores (as you do not have any!). Ignoring version 11.10 then prior to version 11.50 your backups with -w option will be single threaded and NOT be parallel. Assuming you backup logs then what is stoppiing you from allowing processing whilst the backup runs? |
#10
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |