Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
From: tobi@bland.fido.de (Tobias Ernst)
Subject: Re: Clone File system
Date: Thu, 20 Dec 2001 09:13:42 MEZ	[thread overview]
Message-ID: <1008839213@p15.f1.n7600.z242.fido.de> (raw)
In-Reply-To: 3c20b294$0$7117$4d4efb8e@news.be.uu.net

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



  reply	other threads:[~2001-12-20  8:13 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-12-19  8:35 Clone File system MIKA
2001-12-19 10:04 ` Jonathan Wheeler
2001-12-19 10:27 ` Tobias Ernst
2001-12-19 12:40   ` MIKA
2001-12-19 14:32     ` Bob Harris
2001-12-19 15:34       ` MIKA
2001-12-20  8:13         ` Tobias Ernst [this message]
2001-12-19 10:31 ` Jean-Yves Picard
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