1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-09 01:18:39 +03:00

tweak split/track/merge

How do you discover the value of N?
This commit is contained in:
Alasdair Kergon 2011-08-19 17:36:13 +00:00
parent 37086f40a1
commit 8f6b060e7f

View File

@ -125,12 +125,12 @@ a mirror logical volume.
.TP .TP
.I \-\-trackchanges .I \-\-trackchanges
This argument is used along with \-\-splitmirrors when the intention Used with \-\-splitmirrors on a raid1 device, this tracks changes so that the
is to use the split-off image temporarily in a read-only fashion. Splitting read-only detached image can be merged efficiently back into the mirror later.
off an image in this way allows it to be merged back into the mirror later Only the regions of the detatched device where the data changed get resynchronized.
- only resynchronizing those portions of the image that have changed since
the split occurred. This option is only available to the "raid1" segment Please note that this feature is only supported with the new md-based mirror
type. implementation and not with the original device-mapper mirror implementation.
.br .br
.TP .TP
@ -146,7 +146,7 @@ Controls zeroing of the first KB of data in the snapshot.
If the volume is read-only the snapshot will not be zeroed. If the volume is read-only the snapshot will not be zeroed.
.TP .TP
.I \-\-merge .I \-\-merge
Merges a snapshot into its origin volume or merges a RAID1 image that has Merges a snapshot into its origin volume or merges a raid1 image that has
been split from its mirror with \-\-trackchanges back into its mirror. been split from its mirror with \-\-trackchanges back into its mirror.
To check if your kernel supports the snapshot merge feature, look To check if your kernel supports the snapshot merge feature, look
@ -164,7 +164,6 @@ be specified on the commandline or a @tag may be used to specify
multiple snapshots be merged to their respective origin. multiple snapshots be merged to their respective origin.
.br .br
.TP .TP
.I \-\-repair .I \-\-repair
Repair a mirror after suffering a disk failure. The mirror will be brought back Repair a mirror after suffering a disk failure. The mirror will be brought back
@ -238,20 +237,20 @@ volume will be linear.
.br .br
"lvconvert --splitmirrors 1 --trackchanges vg00/lv_raid1" "lvconvert --splitmirrors 1 --trackchanges vg00/lv_raid1"
.br .br
A mirrored logical volume that uses the "raid1" segment type (i.e. created A mirrored logical volume created with --type raid1 can use the '\-\-trackchanges' argument when splitting
with '--type raid1') can use the '\-\-trackchanges' argument when splitting off an image.
off an image. The split-off image cannot be given a new name, as it is still
part of the original RAID1 logical volume in the sense that changes between Detach one image from the mirrored logical volume lv_raid1 as a separate
the two are being tracked for future integration upon merging. The device that read-only device and track the changes made to the mirror while it is detached.
results from the split will be read-only and will be named similarly to the The split-off device has a name of the form lv_raid1_rimage_N, where N is
original - in this case "lv_raid1_rimage_N", where 'N' is the index of the a number, and it cannot be renamed.
image that has been split.
.br .br
"lvconvert --merge vg00/lv_raid1_rimage_1" "lvconvert --merge vg00/lv_raid1_rimage_1"
.br .br
Merge an image back into the mirror it was split from when the '\-\-trackchanges' Merge an image that was detached temporarily from its mirror with
argument was used. the '\-\-trackchanges' argument back into its original mirror and
bring its contents back up-to-date.
.SH SEE ALSO .SH SEE ALSO
.BR lvm (8), .BR lvm (8),