* Clone File Syetm
@ 2001-08-01 7:56 MIKA
2001-08-01 13:37 ` Bob Harris
0 siblings, 1 reply; 4+ messages in thread
From: MIKA @ 2001-08-01 7:56 UTC (permalink / raw)
Hy gy,
Does anoyone know how Cloning Works cause i have create
a clone of a root file system, and when i do a modification
on the original root file system i don't show the repercussion on the root
clone file
system. Is this normal ?
If yes why they say Copy on write ?
Thanks
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Clone File Syetm
2001-08-01 7:56 Clone File Syetm MIKA
@ 2001-08-01 13:37 ` Bob Harris
2001-08-01 14:25 ` MIKA
0 siblings, 1 reply; 4+ messages in thread
From: Bob Harris @ 2001-08-01 13:37 UTC (permalink / raw)
[[ 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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Clone File Syetm
2001-08-01 13:37 ` Bob Harris
@ 2001-08-01 14:25 ` MIKA
2001-08-02 12:52 ` Bob Harris
0 siblings, 1 reply; 4+ messages in thread
From: MIKA @ 2001-08-01 14:25 UTC (permalink / raw)
Thanks Bob for your explication
but sorry may be for this stupid question
What is Mcell mean ?
"Bob Harris" <harris@zk3.dec.com> wrote in message
news:010820010937029107%harris@zk3.dec.com...
> [[ 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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Clone File Syetm
2001-08-01 14:25 ` MIKA
@ 2001-08-02 12:52 ` Bob Harris
0 siblings, 0 replies; 4+ messages in thread
From: Bob Harris @ 2001-08-02 12:52 UTC (permalink / raw)
[[ This message was both posted and mailed: see
the "To," "Cc," and "Newsgroups" headers for details. ]]
In article <3b680f61$0$7117$4d4efb8e@news.be.uu.net>, MIKA
<mika@robot.cvo> wrote:
X Thanks Bob for your explication
X but sorry may be for this stupid question
X What is Mcell mean ?
Metadata Cell. Metadata is the term we use to describe all the
information the file system needs to keep about a file so that it can
keep track of where the file is on the disk, its size, data
information, etc... Metadata is also the other file system information
such as the storage bitmap used to find free space, metadata to
maintain the domain information, metadata to maintain the individual
fileset information, metadata to maintain the frag file inforamtion,
etc...
In the UFS world the closest analog to the Mcell would be the inode,
except that in UFS a file gets only 1 inode, but the UFS inode may have
any number of indirect pages for mapping the storage of larger files.
In AdvFS the Mcell is a generic bucket where some Mcells are the
primary Mcell holding most of the same kind of information as a UFS
inode, or additional Mcells may be chained to the primary Mcell to
contain additional file information, such as storage extent maps,
property lists, clone information, etc...
Mcells do _NOT_ contain all the metadata for the file system, just
information related to individual files.
X"Bob Harris" <harris@zk3.dec.com> wrote in message
Xnews:010820010937029107%harris@zk3.dec.com...
X> [[ This message was both posted and mailed: see
X> the "To," "Cc," and "Newsgroups" headers for details. ]]
X>
X> In article <3b67b424$0$12225$4d4efb8e@news.be.uu.net>, MIKA
X> <mika@robot.cvo> wrote:
X>
X>X Hy gy,
X>X Does anoyone know how Cloning Works cause i have create
X>X a clone of a root file system, and when i do a modification
X>X on the original root file system i don't show the repercussion on
the
Xroot
X>X clone file
X>X system. Is this normal ?
X>X If yes why they say Copy on write ?
X>
X> The first time part of a file is modified, a new Mcell is allocated
for
X> the clone and this is attached to the original file's Mcell. Then
X> storage is allocated and attached to the clone's Mcell, then the
pages
X> about to be modified are copied to the newly allocated clone storage.
X>
X> Any additional modifications to the same pages, will _NOT_ be copied
to
X> the clone, since it is only the first modifications to any given page
X> that are copied to the clone.
X>
X> If the file is deleted or truncated, then all the deleted pages are
X> given to the clone Mcell.
X>
X> If a file is renamed, this is actually a modification to a directory,
X> and the directory pages are copied to its clone Mcell.
X>
X> Creating new files only affects the clone in that, creating file is a
X> directory modification.
X>
X> The domain should show less free space over time as modifications to
X> previously untouched pages are made.
X>
X> The way to see the clone is to mount the cloned fileset. This will
X> present an image of the fileset at the time the clone was snapped.
If
X> a file was not changed, then the original file will be displayed. If
X> only some of a file's pages were changed, then the unchanged pages
will
X> come from the original file, and the modified pages will come from
the
X> clone Mcell.
X>
X> Bob Harris
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2001-08-02 12:52 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-08-01 7:56 Clone File Syetm MIKA
2001-08-01 13:37 ` Bob Harris
2001-08-01 14:25 ` MIKA
2001-08-02 12:52 ` Bob Harris
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox