Re: FILE-SAVE versus AIX mksysb tape
- From: Brian Coles <AIXpert5L-cdp@xxxxxxxxx>
- Date: Thu, 23 Mar 2006 23:41:26 GMT
Here's a potential novel way you could maybe consider to do this by using AIX software mirroring and using 3 mirror copies on all your D3/AIX logical volumes:
See below for an excerpt from an IBM Redbook using the splitlvcopy command on how it splits off a mirrored copy complete with contents and then renames the Logical Volume for you.
D3 can have more than 1 invocation of databases co-residing on the same box, so once you have successfully split off your database copy, you could startup a single user D3 version to co-exist and "save" your data.
Before anyone starts with all the "noise" about the database over multiple LV's (all with 3 copies) and inconsistency of the multi LV contents, I am almost sure that the primary D3 application will probably have to be quiesed (shutdown even) in order to ensure memory and disk buffer flushing, even tho D3 disk I/O goes directly physical because it's RAW I/O.
This was just an idea (way out there) that came to me, and I thought I'd just bounce it off the wall.
If you did contemplate something of this nature, I am sure you would have to be extremely rigid in how the process was constructed and driven.
This should work for AIX 5.1/5.2/5.3, but I think not for 4.3 (that's even if the concept was even workable in the first place)
I guess I'm using my imagination far too much again, Brian.
<quote>
Excerpt from IBM Redbook sg246187 ~ IBM Certification Study Guide - pSeries HACMP for AIX
Split-mirror backups
No file system can be safely backed up while update activity is occurring. If you
are going to have any assurance as to which updates are on the backup and
which updates are not, you need to be able to mark exactly where the backup
was made. Therefore, it may be difficult to do a good backup on systems that
have applications or data that must be online continuously or offline for only a
very short time. In some installations, the time required to do a full backup to an
archival device, or even to another, might be longer than the availability
requirements of the application will allow it to be offline. The mirroring capability
of the AIX Logical Volume Manager (LVM) can be used to address this issue.
How to do a split-mirror backup
This same procedure can be used with just one mirrored copy of a logical
volume. If you remove a mirrored copy of a logical volume (and file system), and
then create a new logical volume (and file system) using the allocation map from
that mirrored copy, your new logical volume and file system will contain the same
data as was in the original logical volume.
Now, you can mount this new file system (read-only is recommended), back it
up, and you are really backing up a mirrored copy of the data in the original file
system, as it was when we removed the mirror copy. Since this file system,
created from the mirror copy, is mounted read-only, no inconsistency in the file
system from the point at which you removed the mirror originally is created
during the backup. After that, you can delete the new file system to release the
physical partitions back to the free pool. Finally, you can add and synchronize a
mirror back onto the original file system, and you are back to a mirrored mode of
operation, with fully updated data.
The splitlvcopy command of AIX does much of the work required to implement
this solution.
We can summarize the steps to do a split-mirror backup of a file system as
follows:
1. Use the lsvg -l VGNAME command to take note of the logical volume name
that contains the file system you want to back up.
2. Stop any application using the file system and unmount the file system.
3. Use the splitlvcopy command to break off one mirror of the logical volume,
and create a new logical volume with its contents. For example, if the existing
logical volume is named fslv, the command would be splitlvcopy -y newlv
fslv.
4. It is important to note that there is now one less mirror copy available to the
user in fslv.
5. Remount the file system and restart the application that was using it.
6. You can see that the application and data are offline for only a very short time.
7. Create a file system on your new logical volume and mount it read-only. This
is to ensure that no update activity will occur in the new logical volume, and
the consistency of the file system is guaranteed.
8. Perform the backup on the new file system by any means desired, such as
backup, tar, cpio, and pax.
9. After the backup is complete and verified, unmount and delete the new file
system and the logical volume you used for it.
10.Use the mklvcopy command to add back the logical volume copy you
previously split off to the fslv logical volume.
11.Resynchronize the logical volume.
Once the mirror copy has been recreated on the logical volume, the syncvg
command will resynchronize all physical partitions in the new copy, including any
updates that have occurred on the original copy during the backup process.
<unquote>
Brian Coles wrote:
I believe there's a simple answer here, which will also explain why you lost your other database too !.
D3 AIX writes its' database to RAW Logical Volumes and NOT to a filesystem (there is no AIX/D3 filesystem) ~ mksysb writes its' output based on input files from an AIX filesystem in backup format (use restore to restore) for AIX 4.3/5.1/5.2/5.3 and tar format for pre 4.3 systems.
Even doing savevg, cpio or tar won't help you because these all need to access regular *nix files in a filesystem.
You might want to try using Virtual Tapes (I think that's the terminology) in D3 to write data to regular AIX files so you can mksysb, or savevg, or cpio or tar the output files (and compress too), which will be restorable back into D3 (famous last words there ~ don't sue me when it fails though).
Help that gives some insight, Brian.
chrismac2 wrote:
I'm hoping here that maybe someone could settle a debate that I'm having
with my coworkers here about d3 FILE-SAVE versus AIX mksysb tapes.
We have a very large d3 (7.4.2) system here running on AIX 5.3
We have over 100GB on our system. We used to run full FILE-SAVE
backups every night. Eventually those started taking longer and
longer until we could no longer get file save done over night. If
there is no activity on the system, a file-save plus verify takes 24
hours. But we have jobs that are scheduled to run at night so a
file-save during the week probalby will take several days.
We tried incrementals, but those took just as long.
So we implemented transaction logging to tape and it's a
nightmare....it slows down our end users with all the locks, but we
keep it running during the week and do full file-saves on fridays.
Anyways, the purpose of this post is to find out whether it's possible
to to a mksysb image backup at the UNIX level and have it restorable to
a usable state as far as d3 database is concerned. I realize we would
not have item/file restore capability, but we're just concerned about
disaster recovery at this point. We could still do weekly pick
file-saves.
I've been trying to tell people that I didn't believe that a unix level
backup of the appropriate volume group would not result in a usable d3
database if it was restored. I think it has something to do with the
pick partitions being raw partitions or something like that. At my
previous job, we needed to replace a failing hard drive.......we
elected to do a mksysb backup instead of a pick file-save due to the
faster speed. After restoring it, all our pick database gone and we
lost a whole days work.
So what's the consensus, can we backup the whole system with mksysb,
restore it and have a usable d3 system, or do we HAVE to do pick
file-save?
thanks
Chris
- References:
- FILE-SAVE versus AIX mksysb tape
- From: chrismac2
- Re: FILE-SAVE versus AIX mksysb tape
- From: Brian Coles
- FILE-SAVE versus AIX mksysb tape
- Prev by Date: Re: FILE-SAVE versus AIX mksysb tape
- Next by Date: Re: D3 Proplus Printer Problem
- Previous by thread: Re: FILE-SAVE versus AIX mksysb tape
- Next by thread: Universe Programmers needed in San Diego, CA.
- Index(es):
Relevant Pages
|
|