From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,9515e2b6af8a1920 X-Google-Attributes: gidfee84,public From: Alex Nord Subject: Re: Understanding backup and advfs clonefset Date: 1997/02/17 Message-ID: <330892CE.2059@jabil.com>#1/1 X-Deja-AN: 219408976 References: Content-Type: text/plain; charset=us-ascii Organization: Jabil Circuit, Inc. Mime-Version: 1.0 Reply-To: alex_nord@jabil.com Newsgroups: comp.unix.osf.osf1 X-Mailer: Mozilla 3.0Gold (WinNT; I) 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.