Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* Understanding backup and advfs clonefset
@ 1997-02-17  5:00 Brown, Martyn
  1997-02-17  5:00 ` Alex Nord
  1997-02-20  5:00 ` Peter Mayne
  0 siblings, 2 replies; 3+ messages in thread
From: Brown, Martyn @ 1997-02-17  5:00 UTC (permalink / raw)



Hi,

Currently we back up in the middle of the night without cloning.  My 
understanding is that if a file is active during the backup time then it will 
get backed up but may be internally inconsistent, and/or inconsistent with 
related files.  Is this true ?

OK, how do things change if I decide to make a clone and back that up ?  If a 
file is active during the cloning period, won't that mean that the clone 
"snapshot" will have the same types of internal inconsistencies ?  How does 
the cloning process remove the inconsistencies that are inherent in active 
files ?  I can see how cloning shields you from =future= activity; but what 
about activity at the time of cloning ?

thanks, Martyn (brown@lincoln.ac.nz)



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Understanding backup and advfs clonefset
  1997-02-17  5:00 Understanding backup and advfs clonefset Brown, Martyn
@ 1997-02-17  5:00 ` Alex Nord
  1997-02-20  5:00 ` Peter Mayne
  1 sibling, 0 replies; 3+ messages in thread
From: Alex Nord @ 1997-02-17  5:00 UTC (permalink / raw)



Brown, Martyn wrote:
> OK, how do things change if I decide to make a clone and back that up ?  If a
> file is active during the cloning period, won't that mean that the clone
> "snapshot" will have the same types of internal inconsistencies ?  How does
> the cloning process remove the inconsistencies that are inherent in active
> files ?  I can see how cloning shields you from =future= activity; but what
> about activity at the time of cloning ?

	When you make a cloned fileset with advfs, it doesn't actually make a
copy of the entire fileset.  Instead, it makes aset of pointers that
point to all the original data.  Then, when the original data changes,
advfs first copies the data that is ABOUT to change to the place where
the pointer is located (removing the pointer, because the actual old
data is now there), and then changes the original data.  Then, when
backups are performed and data is being backed up block by block, if the
block is a pointer, then the original data that is being pointed to is
backed up (i.e. - that block hasn't changed yet).  Or, if that block is
actually a chunk of data, (a COPY of the original), then that is backed
up instead.  In either case, you're getting the original information. 
(Please note, this is a VERY simplified version, and may not be 100%
correct, but it's close enough to get the point across. :)  
	As for your worries about internal inconsistencies, it may take 5-10
minutes to back up a file, giving that much time for the end of a file
to change, while the beginning is already written (or maybe for a
database index file to change), whereas an entire fileset may be cloned
almost instantly.



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Understanding backup and advfs clonefset
  1997-02-17  5:00 Understanding backup and advfs clonefset Brown, Martyn
  1997-02-17  5:00 ` Alex Nord
@ 1997-02-20  5:00 ` Peter Mayne
  1 sibling, 0 replies; 3+ messages in thread
From: Peter Mayne @ 1997-02-20  5:00 UTC (permalink / raw)



Brown, Martyn wrote:
> 
> Hi,
> 
> Currently we back up in the middle of the night without cloning.  My
> understanding is that if a file is active during the backup time then it will
> get backed up but may be internally inconsistent, and/or inconsistent with
> related files.  Is this true ?

Yes. This can also screw up between files. For instance, suppose you do
a newaliases while your backup is happening. The sequence of events
could go:

1) backup aliases.dir
2) newaliases writes newaliases.dir, aliases.pag
3) backup aliases.pag

So your .dir and .pag files may be "internally consistent" (whatever
that means in this case), but your backup will be completely useless.

Extend this example however you like to any kind of files/databases you
can think of.

> OK, how do things change if I decide to make a clone and back that up ?  If a
> file is active during the cloning period, won't that mean that the clone
> "snapshot" will have the same types of internal inconsistencies ?

Yes.

> How does
> the cloning process remove the inconsistencies that are inherent in active
> files ?

It doesn't.

> I can see how cloning shields you from =future= activity; but what
> about activity at the time of cloning ?

If you want a consistent backup (and you don't want to use the
appropriate database tools to do on-line backups), you have to stop all
activity. This means shutting down databases, not editing files, etc.
The difference is that normally, you would have to shut down your
databases for as long as the backup takes. With a cloneset, you only
have to shut things down for as long as it takes to do the clone (a few
seconds).
-- 
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.



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1997-02-20  5:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-02-17  5:00 Understanding backup and advfs clonefset Brown, Martyn
1997-02-17  5:00 ` Alex Nord
1997-02-20  5:00 ` Peter Mayne

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