* Clone File system
@ 2001-12-19 8:35 MIKA
2001-12-19 10:04 ` Jonathan Wheeler
` (2 more replies)
0 siblings, 3 replies; 8+ messages in thread
From: MIKA @ 2001-12-19 8:35 UTC (permalink / raw)
Hy I have To clone File System To win Time On Backup
How Many Space I need To clone My FileSystem.
Did i need Exactly the same Space used By the File system
On onother Disks to Clone or less .
Thanks
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Clone File system
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 10:31 ` Jean-Yves Picard
2 siblings, 0 replies; 8+ messages in thread
From: Jonathan Wheeler @ 2001-12-19 10:04 UTC (permalink / raw)
In article <3c205060$0$12221$4d4efb8e@news.be.uu.net>,
"MIKA" <mika@robot.cvo> writes:
> Hy I have To clone File System To win Time On Backup
> How Many Space I need To clone My FileSystem.
> Did i need Exactly the same Space used By the File system
> On onother Disks to Clone or less .
A clone of an AdvFS file-system only records changes made since the
clone was created, so for file-systems that have little update activity,
you will need much less space than the original file-system (assuming
that you remove the clone once the dump has been completed).
you will not need more space than is used by the
--
Jonathan Wheeler
e-Science Centre
Rutherford Appleton Laboratory
^ permalink raw reply [flat|nested] 8+ messages in thread
* Clone File system
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 10:31 ` Jean-Yves Picard
2 siblings, 1 reply; 8+ messages in thread
From: Tobias Ernst @ 2001-12-19 10:27 UTC (permalink / raw)
Hallo MIKA!
> Hy I have To clone File System To win Time On Backup
> How Many Space I need To clone My FileSystem.
> Did i need Exactly the same Space used By the File system
> On onother Disks to Clone or less .
If you use AdvFS, which I assume, you need only as much file space, as
much the data on the original file system changes while the clone
exists, because only that DATA is duplicated that really is different
on the clone and the master. This means that when you create the clone,
you need virtually no space at all. But while the clone exists, space
requirements are growing as data is modified on the master. But if you
only create the clone right before starting the backup, and delete the
clone right afterwards, you won't need too much space for it. Depending
on what you are doing with the master in this time, of course :-).
Viele Gr��e,
Tobias
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Clone File system
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 10:31 ` Jean-Yves Picard
2 siblings, 0 replies; 8+ messages in thread
From: Jean-Yves Picard @ 2001-12-19 10:31 UTC (permalink / raw)
hello,
answers is : it depends ....
your overall strategy is
1) clone FS -> /clone/FS
at this time, space of /clone/FS is close to zero,
as time pass /clonse/FS will grow when you modify/write file on /FS
2) do a backup of /clone/FS as quickly as possible
3) delete the clone.
space use by the clone will be up to original space of FS.
but if you modify a small number of file, or the same file many times, space
consumation will not grow that much.
Jean-Yves.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Clone File system
2001-12-19 10:27 ` Tobias Ernst
@ 2001-12-19 12:40 ` MIKA
2001-12-19 14:32 ` Bob Harris
0 siblings, 1 reply; 8+ messages in thread
From: MIKA @ 2001-12-19 12:40 UTC (permalink / raw)
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1703 bytes --]
Thanks All for your quick answer,
but i still not really understand.
I just give you an example of my config.
I have 3 File Domain Where data of database are present each One equal to 9
GByte
I have Also Root_domain and Usr_domain 1 Gbyte and 2 Gbyte
When I run Clonefset data1_domain data1 CloneData1
Then Mount Clonefset data1_domain#CloneData1 on /mnt/Clone
If i do df -k
I show the CloneData1 mounted, but really
the space used by this clone file set is a new space added that means i need
another disks to clone on it or a physical copy at time T (When i have do my
clone ) or it just a pointer to my data that mean i don't need another disk
to clone on my file system.
Thanks a lot,
"Tobias Ernst" <tobi@bland.fido.de> wrote in message
news:1008760927@p15.f1.n7600.z242.fido.de...
> Hallo MIKA!
>
> > Hy I have To clone File System To win Time On Backup
> > How Many Space I need To clone My FileSystem.
> > Did i need Exactly the same Space used By the File system
> > On onother Disks to Clone or less .
>
> If you use AdvFS, which I assume, you need only as much file space, as
> much the data on the original file system changes while the clone
> exists, because only that DATA is duplicated that really is different
> on the clone and the master. This means that when you create the clone,
> you need virtually no space at all. But while the clone exists, space
> requirements are growing as data is modified on the master. But if you
> only create the clone right before starting the backup, and delete the
> clone right afterwards, you won't need too much space for it. Depending
> on what you are doing with the master in this time, of course :-).
>
> Viele Gr��e,
> Tobias
>
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Clone File system
2001-12-19 12:40 ` MIKA
@ 2001-12-19 14:32 ` Bob Harris
2001-12-19 15:34 ` MIKA
0 siblings, 1 reply; 8+ messages in thread
From: Bob Harris @ 2001-12-19 14:32 UTC (permalink / raw)
In article <3c2089df$0$12229$4d4efb8e@news.be.uu.net>, MIKA
<mika@robot.cvo> wrote:
X Thanks All for your quick answer,
X but i still not really understand.
X I just give you an example of my config.
X I have 3 File Domain Where data of database are present each One equal to 9
X GByte
X I have Also Root_domain and Usr_domain 1 Gbyte and 2 Gbyte
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
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 need
X another disks to clone on it or a physical copy at time T (When i have do my
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.
X Thanks a lot,
X
X
X "Tobias Ernst" <tobi@bland.fido.de> wrote in message
X news:1008760927@p15.f1.n7600.z242.fido.de...
X > Hallo MIKA!
X >
X > > Hy I have To clone File System To win Time On Backup
X > > How Many Space I need To clone My FileSystem.
X > > Did i need Exactly the same Space used By the File system
X > > On onother Disks to Clone or less .
X >
X > If you use AdvFS, which I assume, you need only as much file space, as
X > much the data on the original file system changes while the clone
X > exists, because only that DATA is duplicated that really is different
X > on the clone and the master. This means that when you create the clone,
X > you need virtually no space at all. But while the clone exists, space
X > requirements are growing as data is modified on the master. But if you
X > only create the clone right before starting the backup, and delete the
X > clone right afterwards, you won't need too much space for it. Depending
X > on what you are doing with the master in this time, of course :-).
X >
X > Viele Gr��e,
X > Tobias
I get the feeling you want to use the clone "As the Backup". That is
to say, all the previous replies said or suggested you should
clonefset
mount clone
vdump clone to backup media
umount clone
rmfset clone
And while the vdump was happening the amount of extra space being used
would be equal to the number of 8K pages modified in the original
fileset.
Since this didn't seem to answer your question, I am wondering if when
you said "I have To clone File System To win Time On Backup", if maybe
you were saying you could not afford the time to do the vdump and you
wanted to know if you could just use a clone "As the Backup".
Assuming this was the question, then there are problems with this
approach when using AdvFS clones. But to answer the question of how
much disk space would you need. You would need to have an equal amount
of space to what you are currently using assuming you are going to keep
the clone for an extended period of time and that over that period of
time most of the files in the original fileset are going to be
modified.
As to problems. You can only have 1 AdvFS clone per fileset at a time.
So if you do not vdump the AdvFS clone to backup media, then to clone
the fileset again, you will first need to remove the current clone.
This would leave a gap in your backup strategy. When you rmfset to
remove the clone, AdvFS has to delete all the storage used by the
clone. The longer the AdvFS clone has existed, and the more data it
has captured, the longer it will take to preform the rmfset, again
widening the gap in the badkup strategy. And while the clone is in
effect, there is extra overhead when modifications are made to the
original file while AdvFS allocates storage for the clone, copies the
original data to clone, then make the modification to the original
file.
If you want to uses clones and ONLY clones as a backup strategy for
speed reasons, then consider using LSM mirrors and splitting them or
hardware storage system mirrors, clones, or snapshots.
I hope this has answered your question.
Bob Harris
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Clone File system
2001-12-19 14:32 ` Bob Harris
@ 2001-12-19 15:34 ` MIKA
2001-12-20 8:13 ` Tobias Ernst
0 siblings, 1 reply; 8+ messages in thread
From: MIKA @ 2001-12-19 15:34 UTC (permalink / raw)
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 4720 bytes --]
Hello Bob,
Thank you for your response,
Exact, I want to make Clone for ab backup strategie.
My Problem is that i Have a Alphserver With Tru64 V5.1
With Oracle Database install on it.
And This Database Can not Be stopped Anymore
cause Some People In the World Consult This Database at anytime
This you i want to Clone My File System and restart my Oracle Databse
ASAP.
Did you think that's is the good way
Thanks a lot
"Bob Harris" <harris@zk3.dec.com> wrote in message
news:191220010932256342%harris@zk3.dec.com...
> In article <3c2089df$0$12229$4d4efb8e@news.be.uu.net>, MIKA
> <mika@robot.cvo> wrote:
>
> X Thanks All for your quick answer,
> X but i still not really understand.
> X I just give you an example of my config.
> X I have 3 File Domain Where data of database are present each One equal
to 9
> X GByte
> X I have Also Root_domain and Usr_domain 1 Gbyte and 2 Gbyte
> 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
> 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
need
> X another disks to clone on it or a physical copy at time T (When i have
do my
> 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.
> X Thanks a lot,
> X
> X
> X "Tobias Ernst" <tobi@bland.fido.de> wrote in message
> X news:1008760927@p15.f1.n7600.z242.fido.de...
> X > Hallo MIKA!
> X >
> X > > Hy I have To clone File System To win Time On Backup
> X > > How Many Space I need To clone My FileSystem.
> X > > Did i need Exactly the same Space used By the File system
> X > > On onother Disks to Clone or less .
> X >
> X > If you use AdvFS, which I assume, you need only as much file space,
as
> X > much the data on the original file system changes while the clone
> X > exists, because only that DATA is duplicated that really is different
> X > on the clone and the master. This means that when you create the
clone,
> X > you need virtually no space at all. But while the clone exists, space
> X > requirements are growing as data is modified on the master. But if
you
> X > only create the clone right before starting the backup, and delete
the
> X > clone right afterwards, you won't need too much space for it.
Depending
> X > on what you are doing with the master in this time, of course :-).
> X >
> X > Viele Gr��e,
> X > Tobias
>
> I get the feeling you want to use the clone "As the Backup". That is
> to say, all the previous replies said or suggested you should
>
> clonefset
> mount clone
> vdump clone to backup media
> umount clone
> rmfset clone
>
> And while the vdump was happening the amount of extra space being used
> would be equal to the number of 8K pages modified in the original
> fileset.
>
> Since this didn't seem to answer your question, I am wondering if when
> you said "I have To clone File System To win Time On Backup", if maybe
> you were saying you could not afford the time to do the vdump and you
> wanted to know if you could just use a clone "As the Backup".
>
> Assuming this was the question, then there are problems with this
> approach when using AdvFS clones. But to answer the question of how
> much disk space would you need. You would need to have an equal amount
> of space to what you are currently using assuming you are going to keep
> the clone for an extended period of time and that over that period of
> time most of the files in the original fileset are going to be
> modified.
>
> As to problems. You can only have 1 AdvFS clone per fileset at a time.
> So if you do not vdump the AdvFS clone to backup media, then to clone
> the fileset again, you will first need to remove the current clone.
> This would leave a gap in your backup strategy. When you rmfset to
> remove the clone, AdvFS has to delete all the storage used by the
> clone. The longer the AdvFS clone has existed, and the more data it
> has captured, the longer it will take to preform the rmfset, again
> widening the gap in the badkup strategy. And while the clone is in
> effect, there is extra overhead when modifications are made to the
> original file while AdvFS allocates storage for the clone, copies the
> original data to clone, then make the modification to the original
> file.
>
> If you want to uses clones and ONLY clones as a backup strategy for
> speed reasons, then consider using LSM mirrors and splitting them or
> hardware storage system mirrors, clones, or snapshots.
>
> I hope this has answered your question.
>
> Bob Harris
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Clone File system
2001-12-19 15:34 ` MIKA
@ 2001-12-20 8:13 ` Tobias Ernst
0 siblings, 0 replies; 8+ messages in thread
From: Tobias Ernst @ 2001-12-20 8:13 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2001-12-20 8:13 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2001-12-19 10:31 ` Jean-Yves Picard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox