From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,18af55fd7a4410eb X-Google-Attributes: gidfee84,public From: nsoley@ibm.net (Norm Soley) Subject: Re: AdvFS advantage Date: 1997/01/24 Message-ID: <5c989d$1hqs$1@news-s01.ny.us.ibm.net>#1/1 X-Deja-AN: 211836153 references: <01bc016d$c3a1dfc0$dd1fdec2@liteyear> <5bo924$ar0@camel4.mindspring.com> <32E2A1D2.762B@cao.mts.dec.com> organization: Just me and Marge reply-to: nsoley@ibm.net newsgroups: comp.unix.osf.osf1 Peter Mayne wrote: >Doug Anderson wrote: >> "Graham Jones" 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