3 .TH LVCONVERT 8 "LVM TOOLS 2.02.44-cvs (02-17-09)" "Red Hat, Inc" \" -*- nroff -*-
5 lvconvert \- convert a logical volume from linear to mirror or snapshot
8 \-m|\-\-mirrors Mirrors [\-\-mirrorlog {disk|core}] [\-\-corelog] [\-R|\-\-regionsize MirrorLogRegionSize]
9 [\-A|\-\-alloc AllocationPolicy]
10 [\-b|\-\-background] [\-i|\-\-interval Seconds]
15 LogicalVolume[Path] [PhysicalVolume[Path]...]
20 \-s|\-\-snapshot [\-c|\-\-chunksize ChunkSize]
26 OriginalLogicalVolume[Path] SnapshotLogicalVolume[Path]
28 lvconvert will change a linear logical volume to a mirror
29 logical volume or to a snapshot of linear volume and vice versa.
30 It is also used to add and remove disk logs from mirror devices.
32 See \fBlvm\fP for common options.
34 Exactly one of \-\-mirrors or \-\-snapshot arguments required.
37 .I \-m, \-\-mirrors Mirrors
38 Specifies the degree of the mirror you wish to create.
39 For example, "-m 1" would convert the original logical
40 volume to a mirror volume with 2-sides; that is, a
41 linear volume plus one copy.
43 .I \-\-mirrorlog {disk|core}
44 Specifies the type of log to use.
45 The default is disk, which is persistent and requires
46 a small amount of storage space, usually on a separate device
47 from the data being mirrored.
48 Core may be useful for short-lived mirrors: It means the mirror is
49 regenerated by copying the data from the first device again every
50 time the device is activated - perhaps, for example, after every reboot.
53 The optional argument "--corelog" is the same as specifying "--mirrorlog core".
55 .I \-R, \-\-regionsize MirrorLogRegionSize
56 A mirror is divided into regions of this size (in MB), and the mirror log
57 uses this granularity to track which regions are in sync.
59 .I \-b, \-\-background
60 Run the daemon in the background.
62 .I \-i, \-\-interval Seconds
63 Report progress as a percentage at regular intervals.
67 Create a snapshot from existing logical volume using another
68 existing logical volume as its origin.
70 .I \-c, \-\-chunksize ChunkSize
71 Power of 2 chunk size for the snapshot logical volume between 4k and 512k.
74 Controls zeroing of the first KB of data in the snapshot.
75 If the volume is read-only the snapshot will not be zeroed.
78 "lvconvert -m1 vg00/lvol1"
80 converts the linear logical volume "vg00/lvol1" to
81 a two-way mirror logical volume.
83 "lvconvert --mirrorlog core vg00/lvol1"
85 converts a mirror with a disk log to a
86 mirror with an in-memory log.
88 "lvconvert --mirrorlog disk vg00/lvol1"
90 converts a mirror with an in-memory log
91 to a mirror with a disk log.
93 "lvconvert -m0 vg00/lvol1"
95 converts a mirror logical volume to a linear logical
100 "lvconvert -s vg00/lvol1 vg00/lvol2"
102 converts logical volume "vg00/lvol2" to snapshot of original volume "vg00/lvol1"