From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,a90342090af6a45b X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2001-08-01 06:37:02 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!paloalto-snf1.gtei.net!news.gtei.net!news.compaq.com!news.cpqcorp.net!harris Subject: Re: Clone File Syetm From: Bob Harris Newsgroups: comp.unix.tru64 Posted-And-Mailed: yes Message-ID: <010820010937029107%harris@zk3.dec.com> References: <3b67b424$0$12225$4d4efb8e@news.be.uu.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-transfer-encoding: 8bit User-Agent: YA-NewsWatcher/5.0.1 Date: Wed, 01 Aug 2001 09:37:02 -0400 NNTP-Posting-Host: 16.140.32.194 X-Complaints-To: abuse@Compaq.com X-Trace: news.cpqcorp.net 996673021 16.140.32.194 (Wed, 01 Aug 2001 06:37:01 PDT) NNTP-Posting-Date: Wed, 01 Aug 2001 06:37:01 PDT Organization: Compaq Computer Corporation Xref: archiver1.google.com comp.unix.tru64:4012 [[ 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 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