Hi there,
I have a newbie question about backing up our database on our
Solaris
system. I was reading the "Data Recovery and High Availability
Guide
and Reference", but didn't see any references to using filesystem
snapshots
to backup a database.
Is using a filesystem snapshot (and then backing up that snapshot
to
tape or other media) a reasonable approach to backing up a DB2
database?
I was thinking of using the "set write suspend" command to quiesce
the
database before the snaphot is taken.
If this is a reasonable approach, how would one make sure that any
unwritten
system memory buffers are written to the disk subsystem before the
snapshot
is taken? The "sync" command would flush the buffers, but I think
it's an
asynchronous operation and returns before guaranteeing that the
buffers have
been flushed.
Thanks for any help,
Bill 3 2445
This is cool stuff. I can't really answer your questions, since my SAN
doesn't want to do this for me.. However, here's a good article: http://www-128.ibm.com/developerwork...azi/index.html
hth
aj wi************* *******@gmail.c om wrote:
Hi there,
I have a newbie question about backing up our database on our
Solaris
system. I was reading the "Data Recovery and High Availability
Guide
and Reference", but didn't see any references to using filesystem
snapshots
to backup a database.
Is using a filesystem snapshot (and then backing up that snapshot
to
tape or other media) a reasonable approach to backing up a DB2
database?
I was thinking of using the "set write suspend" command to quiesce
the
database before the snaphot is taken.
If this is a reasonable approach, how would one make sure that any
unwritten
system memory buffers are written to the disk subsystem before the
snapshot
is taken? The "sync" command would flush the buffers, but I think
it's an
asynchronous operation and returns before guaranteeing that the
buffers have
been flushed.
Thanks for any help,
Bill
Thanks for the info. I appreciate it.
Bill
On Feb 8, 10:23 am, aj <ron...@mcdonal ds.comwrote:
This is cool stuff. I can't really answer your questions, since my SAN
doesn't want to do this for me.. However, here's a good article:
http://www-128.ibm.com/developerwork...rticle/dm-0508...
hth
aj
william.david.a nder...@gmail.c om wrote:
Hi there,
I have a newbie question about backing up our database on our
Solaris
system. I was reading the "Data Recovery and High Availability
Guide
and Reference", but didn't see any references to using filesystem
snapshots
to backup a database.
Is using a filesystem snapshot (and then backing up that snapshot
to
tape or other media) a reasonable approach to backing up a DB2
database?
I was thinking of using the "set write suspend" command to quiesce
the
database before the snaphot is taken.
If this is a reasonable approach, how would one make sure that any
unwritten
system memory buffers are written to the disk subsystem before the
snapshot
is taken? The "sync" command would flush the buffers, but I think
it's an
asynchronous operation and returns before guaranteeing that the
buffers have
been flushed.
Thanks for any help,
Bill
Warning: Windows server 2003 specific information.
We use this approach in production since a few years for backup of DB2/
UDB (SAP central inst w. DB on Windows server 2003)
You need enough free space on each drive for this to work with Windows
2003 Volume Shadow Copy.
Alternatively you could have a single drive with enough freespace for
the /on parameters below.
We use a script like db2cmd -c -i -w snapshot.cmd where snapshot.cmd
contains
for %%a in (C D E F G) do vssadmin add shadowstorage /for=%%a: /on=%
%a:
db2 connect to mydb
db2 set write suspend for db
vshadow -p -script=set_vol_ var.cmd C: D: E: F: G:
db2 set write resume for db
call set_vol_var.cmd
.... mount VSC snapshot id's as drives or subdirs ...
.... backup mounted drives/subdirs at your leisure ...
Feel free to inquire more details here or by email: an************* **************@ spamgourmet.com This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: L. Bertolini |
last post by:
We're considering purchasing an application,
which stores some data in the filesystem, and
some data (meta data and links to files) in
MS-SQL.
We need to be able to create a backup wherein
the database and files are "in synch" (in other words,
in a consistent state). We need to maintain the
"referential integrity" between database and files.
|
by: nt |
last post by:
I am having a problem with a regular backup of an SQL Server (MSDE
2000) database to a local drive. I initiate the backup once a week, by
issuing the required T-SQL, via ADO. In this case, the T-SQL is:
BACKUP DATABASE GPRS_Dimensioning_Archive TO local_backup WITH
RETAINDAYS=21, NAME='GDA_20040706'
Note that "local_backup" is a file sitting on the same physical drive
as the database itself, and has > 80 GB free. It is not a RAID...
|
by: DBA |
last post by:
I start a full backup on a database at 5pm. The backup job takes 3
hours to complete. While the backup job is running, someone inserts
records to the db. Will the backup include the new records? Or in
other words, are the contents of a SQL Server backup a snapshot of the
database at the start time of the backup?
|
by: 21novembre |
last post by:
Hi all,
I made a question several days before to describe my strange trouble of
mysqldump. But I still can't figour it out. Well, I just want to ask
another question whether I could just backup my databases by copying
the data folder to some place? Then if I meet some disaster, could I
just copy the backup folder back to recover my databases?
Thank you.
Zh.y
|
by: Ember |
last post by:
I'm trying to take an offline backup on Linux to an NFS mounted
filesystem. I have no trouble creating files or directories manually
in this filesystem. Here's the df -h for it:
Filesystem Size Used Avail Use% Mounted on
<IPaddressHere - ommitted>:/db2backup
84G 677M 82G 1% /mnt1
Each time I try the backup, no matter what buffer size I use, I get:
SQL2025N An I/O error "" occurred on media "6".
No return code, and a...
| |
by: Ray |
last post by:
Is there a simple way of selecting the last backup timestamp of a
database from a table? Something like
select last_backup_timestamp from tablename where
database_name='WHATEVER'
Or am I forced to check the backup history with
list history backup all for WHATEVER
|
by: Kums |
last post by:
How much time does it take to backup a datbase of size 2 terra byte?
Can you specify the tool you use, technique and registry variables
with values for your system, so that I get an idea?
How many tablespaces, and what are the sizes of those(rough figures
would suffice).
logbufsiz
|
by: hsimon |
last post by:
Hi,
I have no DB2 or SAP knowledge, but would like to know if someone has
done Quickshadow Space optimised snapshot of SAP/DB2 and did a restore
from the snapshots.
We try to backup SAP/DB2, by bring the DB2 database in online backup
mode and to a Quickshadow space optimised snapshot, by issuing a HDS
Quick Shadow command, after this
we bring DB2 out of online (hot backup) mode and split the shadow copy
of and mounting it on the backup...
|
by: Bernard Dhooghe |
last post by:
Suppose a running database (DB2 UDB) with all containers being SMS
based (file system as JFS or JFS2 on AIX).
How to make a backup (online) by doing a file system backup and not a
database backup?
Could this be done with:
db2 set write suspend for db
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |