Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
From: Bob Harris <harris@zk3.dec.com>
Subject: Re: Clone File Syetm
Date: Wed, 01 Aug 2001 09:37:02 -0400	[thread overview]
Message-ID: <010820010937029107%harris@zk3.dec.com> (raw)
In-Reply-To: 3b67b424$0$12225$4d4efb8e@news.be.uu.net

[[ This message was both posted and mailed: see
   the "To," "Cc," and "Newsgroups" headers for details. ]]

In article <3b67b424$0$12225$4d4efb8e@news.be.uu.net>, MIKA
<mika@robot.cvo> wrote:

X  Hy gy,
X  Does anoyone know how Cloning Works cause i have create
X  a clone of a root file system, and when i do a modification
X  on the original root file system i don't show the repercussion on the root
X  clone file
X  system. Is this normal ?
X  If yes why they say Copy on write ?

The first time part of a file is modified, a new Mcell is allocated for
the clone and this is attached to the original file's Mcell.  Then
storage is allocated and attached to the clone's Mcell, then the pages
about to be modified are copied to the newly allocated clone storage.

Any additional modifications to the same pages, will _NOT_ be copied to
the clone, since it is only the first modifications to any given page
that are copied to the clone.

If the file is deleted or truncated, then all the deleted pages are
given to the clone Mcell.

If a file is renamed, this is actually a modification to a directory,
and the directory pages are copied to its clone Mcell.

Creating new files only affects the clone in that, creating file is a
directory modification.

The domain should show less free space over time as modifications to
previously untouched pages are made.

The way to see the clone is to mount the cloned fileset.  This will
present an image of the fileset at the time the clone was snapped.  If
a file was not changed, then the original file will be displayed.  If
only some of a file's pages were changed, then the unchanged pages will
come from the original file, and the modified pages will come from the
clone Mcell.

                                        Bob Harris


  reply	other threads:[~2001-08-01 13:37 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-08-01  7:56 Clone File Syetm MIKA
2001-08-01 13:37 ` Bob Harris [this message]
2001-08-01 14:25   ` MIKA
2001-08-02 12:52     ` Bob Harris
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