From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII X-Google-Thread: fa528,a435923a2fdec309 X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2001-12-20 01:10:58 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dns.phoenix-ag.de!news.uni-stuttgart.de!not-for-mail From: tobi@bland.fido.de (Tobias Ernst) Newsgroups: comp.unix.tru64 Subject: Re: Clone File system Date: Thu, 20 Dec 2001 09:13:42 MEZ Organization: Fido.De Host Baden-Wuerttemberg Message-ID: <1008839213@p15.f1.n7600.z242.fido.de> References: <3c20b294$0$7117$4d4efb8e@news.be.uu.net> NNTP-Posting-Host: holmes.physcip.uni-stuttgart.de Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-Comment-To: MIKA X-MailConverter: SoupGate-Unix v1.42 Xref: archiver1.google.com comp.unix.tru64:6223 Hallo MIKA! M> And This Database Can not Be stopped Anymore M> cause Some People In the World Consult This Database at anytime M> This you i want to Clone My File System and restart my Oracle M> Databse ASAP. M> Did you think that's is the good way M> Thanks a lot What you should do, as Bob already suggested, is to stop the database, use clonefset to make the clone, and then restart it. This takes almost NO time and almost NO disk space, as the clone is just a set of pointers back to the original data. The clone will only start to use disk space on its own, when your database starts to modify data on the original file system, because then, the data will be COPIED to the clone and then modified on the original file systems. That is, pointers in the clone are converted to real files on the fly as necessary. Again: use clonefset to create the clone and then restart your database. Then use vdump to backup the clone to a tape or to another physical disk. This works fine while your database is running, because you backup the clone and not the original filesystem. After you have done this, delete the clone. This will give you a minimal interruption time for your database, and not use too much diskspace. Well, of course, for the tape or for the OTHER physical disk you would vdump to, you'll need as much disk space as your original filesystem contains data. But for the clone, you need almost none, as long as you delete it as soon as the vdump process completes. >> X When I run Clonefset data1_domain data1 CloneData1 >> X Then Mount Clonefset data1_domain#CloneData1 on /mnt/Clone >> X If i do df -k ... you will see that in the data fileset there is still as much free space left as there was before you create the clone! >> X I show the CloneData1 mounted, but really >> X the space used by this clone file set is a new space added that >> means i No. The clone at first uses no space at all, well, just some few kilobytes for pointers. Now, when you, for example, delete an 8 MB file on data1, you will see that the free space in data1 does NOT increase, because those 8 MB would then be really copied to the clone file set. If you then recreate an 8 MB file on data1, the free space will of course drop by 8 MB, so after deleting and recreating a file, you will have fewer space as before, because that space is required by the clone. This is why the clone requires no space at the beginning, but starts to use space as you start to modify data on the original file system. >> X clone ) or it just a pointer to my data that mean i don't need >> another disk X to clone on my file system. You basically don't need another disk, as long as the clone keeps living only for some hours until you have vdumped it to elsewhere. For that "elsewhere", you need either a big tape or another disk. Viele Gr��e, Tobias