Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: nsoley@ibm.net (Norm Soley)
Subject: Re: AdvFS advantage
Date: 1997/01/24	[thread overview]
Message-ID: <5c989d$1hqs$1@news-s01.ny.us.ibm.net> (raw)
In-Reply-To: 32E2A1D2.762B@cao.mts.dec.com


Peter Mayne <Peter.Mayne@cao.mts.dec.com> wrote:
>Doug Anderson wrote:
>> "Graham Jones" <graham@liteyear.demon.co.uk> wrote:
>> 
>> >The original posting seemed to be wether or not to use AdvFS from an Oracle
>> >DBA's point of view, not Sys Admins.
>> 
>> >If we're talking about AdvFS with Oracle then the main advantage is a huge
>> >one - backups.
>> 
>> >You can shutdown Oracle, Clone your filesets and then Bring Oracle back up
>> >all in about 30 seconds.
>> >The clones give you a snapshot of your database at a point in time. You can
>> >backup the cloned filesets in you're own good time, whilst your users
>> >continue working on the database.
>> 
>> WOAH!  Hey, can you give me the specifics on how to do this?  This
>> sounds too good to be true.

As usual the reason for this is because it IS too good to be true.
Frankly I've never understood the desire to do this except DBA 
laziness, the "fuzzy" backup Oracle provides works fine with no
downtime but you need to exercise your nuerons a little to implement
it. AdvFS is a winner just for quick startups (I'd love to see the
fsck time on a couple hundred GB of ufs filesystems, NOT) and you NEED
AdvFS Utilities for the defragmentation (not for Oracle, Oracle
databases on AdvFS shouldn't fragment, but for the other filesystems)

This can minimize risk with careful planning but there is a failure
mode for this style of backup that is very messy to clean up. 

Say you have an AdvFS domain that is 80% full, each block that gets
written while the cloneset exists gets duplicated so over the course
of the backup the domain gradually gets fuller until the cloneset is
removed at which time it goes back to 80%. Now say that someone comes
along and schedules a big update job during your backup, part way
through the backup the domain fills up, the next write fails with a
ENOSPACE error which Oracle finds a little confusing since it thought
it was just updating a block in place, Oracle panics since this is an
error it should never see and declares the file corrupt and takes the
tablespace offline or shuts itself down. The backup continues to run
happily to completion which is a good thing because the only way to 
get the database back is to use it to do a restore. 

Obviosly the more free space in your domain the lower your risk but
the only way to 100% guarentee that this won't happen is to keep all
domains at 50% or less utilization, which to me seems a little silly
when there are other approaches that work and don't have a dangerous
failure mode and don't make you toss out all those lovely performance
enhancing cached blocks in the SGA. For my money any number less than
99.9% when your talking backups is pretty scary.  

>This is from memory, use the man pages.

>Assume your Oracle directory (/ora) is in the ora_dmn#ora fileset.

>Shut down the database in /ora.
>clonefset ora ora2
># This makes a snapshot of the ora_dmn#ora fileset, takes no time.
>Start your database.
>mount -t advfs ora_dmn#ora2 /mnt
>Backup /mnt
>umount /mnt
>-- 
>PJDM
>Digital Equipment Corporation (Australia), Canberra, ACT
>-------------------------------------------------------------------------------
>These are my opinions, and have nothing to do with Digital.
>This was typed by an infinite number of monkeys.

----
Would you please call my lawyers, tell 'em that I'm nsoley@ibm.net




  parent reply	other threads:[~1997-01-24  5:00 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-01-13  5:00 AdvFS advantage Graham Jones
1997-01-17  5:00 ` Doug Anderson
1997-01-20  5:00   ` Peter Mayne
1997-01-20  5:00     ` T.Osborn
1997-01-24  5:00       ` User
1997-01-21  5:00     ` Michael Matthews
1997-01-23  5:00       ` Peter Mayne
1997-01-24  5:00     ` Norm Soley [this message]
1997-01-20  5:00   ` Steve Strange USG
1997-01-20  5:00   ` Dan Duncan
  -- strict thread matches above, loose matches on Subject: below --
1997-01-09  5:00 Advfs advantage Nik Pallatroni
1997-01-09  5:00 ` Curt Smith
1997-01-10  5:00 ` Peter Mayne
1997-01-10  5:00   ` James A Conz Jr
1997-01-20  5:00     ` Peter Mayne
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox