This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
Log of /trunk/vz-clone.pl
Parent Directory
| Revision Log
Revision
67 -
(
view)
(
annotate)
-
[select for diffs]
Modified
Sat Feb 28 16:32:12 2009 UTC
(15 years, 2 months ago)
by
dpavlin
File length: 4959 byte(s)
Diff to
previous 66
enlarge snapshot to 10G and add iptable rule
Revision
66 -
(
view)
(
annotate)
-
[selected]
Modified
Fri Feb 27 20:49:06 2009 UTC
(15 years, 2 months ago)
by
dpavlin
File length: 4923 byte(s)
Diff to
previous 65
remove snapshot on destroy
Revision
65 -
(
view)
(
annotate)
-
[select for diffs]
Modified
Fri Feb 27 20:05:02 2009 UTC
(15 years, 2 months ago)
by
dpavlin
File length: 4777 byte(s)
Diff to
previous 64
,
to
selected 66
implement clone on live snapshot with quota turned off
to speed up first startup (which would otherwise check
quota for whole vz logical volume)
Revision
31 -
(
view)
(
annotate)
-
[select for diffs]
Modified
Thu Oct 11 19:28:27 2007 UTC
(16 years, 7 months ago)
by
dpavlin
File length: 4656 byte(s)
Diff to
previous 30
,
to
selected 66
delete files on cloned VE which no longer exist on master to create perfect copy
Revision
27 -
(
view)
(
annotate)
-
[select for diffs]
Modified
Thu Oct 4 23:42:24 2007 UTC
(16 years, 7 months ago)
by
dpavlin
File length: 4632 byte(s)
Diff to
previous 26
,
to
selected 66
variable to skip snapshot usage,
fixed logic which machine to vzctl stop on create/destroy
Revision
26 -
(
view)
(
annotate)
-
[select for diffs]
Modified
Thu Oct 4 23:23:20 2007 UTC
(16 years, 7 months ago)
by
dpavlin
File length: 4347 byte(s)
Diff to
previous 25
,
to
selected 66
clone lv are now always named vz-clone-10VEID and not
dependent on OpenVZ lv name
Revision
23 -
(
view)
(
annotate)
-
[select for diffs]
Modified
Thu Oct 4 16:58:01 2007 UTC
(16 years, 7 months ago)
by
dpavlin
File length: 3794 byte(s)
Diff to
previous 22
,
to
selected 66
Create new logical volume for each clone of virtual machine.
That allows snapshots to actually works, because otherwise,
we would have to write content twice:
1. new cloned copy on disk
2. in snapshot (so that we see "old" copy)
This requires snapshot partition at least as big as filesystem
of cloned machine. It also slows down cloning.
The root of the problem is usage of vg logical volume both as source
(which we want to have snapshot of to achieve consistent copy)
and destination for new cloned fs. Creating new logical volume per
VE cloned allows easy management and update also.
But, this might be optional (and there is fallback in the codei
if there is no lvm for vz data) if we want to create another
persistant clone (TODO).
If possible, we will try to use ssync binary (which sadly
isn't packaged for Debian) because it's much faster than
rsync.
Revision
21 -
(
view)
(
annotate)
-
[select for diffs]
Modified
Thu Oct 4 13:12:08 2007 UTC
(16 years, 7 months ago)
by
dpavlin
File length: 2263 byte(s)
Diff to
previous 20
,
to
selected 66
prepare and use temporary lvm snapshot while coping data,
annotate changed configuration variables,
new VE will have prefix 10 and first octet of IP adress 10.
This form allows you to request diffs between any two revisions of this file.
For each of the two "sides" of the diff,
enter a numeric revision.