mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-02 01:18:26 +03:00
Avoid error when --corelog is provided without --mirrorlog. (2.02.28)
Correct --mirrorlog argument name in man pages (not --log).
This commit is contained in:
parent
98e542d718
commit
2b849ab4d1
@ -1,6 +1,8 @@
|
|||||||
Version 2.02.29 -
|
Version 2.02.29 -
|
||||||
==================================
|
==================================
|
||||||
Clear MIRROR_NOTSYNCED lv flag when converting from mirror to linear.
|
Avoid error when --corelog is provided without --mirrorlog. (2.02.28)
|
||||||
|
Correct --mirrorlog argument name in man pages (not --log).
|
||||||
|
Clear MIRROR_NOTSYNCED LV flag when converting from mirror to linear.
|
||||||
Modify lvremove to prompt for removal if LV active on other cluster nodes.
|
Modify lvremove to prompt for removal if LV active on other cluster nodes.
|
||||||
Add '-f' to vgremove to force removal of VG even if LVs exist.
|
Add '-f' to vgremove to force removal of VG even if LVs exist.
|
||||||
|
|
||||||
|
@ -47,7 +47,7 @@ regenerated by copying the data from the first device again every
|
|||||||
time the device is activated - perhaps, for example, after every reboot.
|
time the device is activated - perhaps, for example, after every reboot.
|
||||||
.TP
|
.TP
|
||||||
.I \-\-corelog
|
.I \-\-corelog
|
||||||
The optional argument "--corelog" is the same as specifying "--log core".
|
The optional argument "--corelog" is the same as specifying "--mirrorlog core".
|
||||||
.TP
|
.TP
|
||||||
.I \-R, \-\-regionsize MirrorLogRegionSize
|
.I \-R, \-\-regionsize MirrorLogRegionSize
|
||||||
A mirror is divided into regions of this size (in MB), and the mirror log
|
A mirror is divided into regions of this size (in MB), and the mirror log
|
||||||
@ -71,12 +71,12 @@ If the volume is read-only the snapshot will not be zeroed.
|
|||||||
converts the linear logical volume "vg00/lvol1" to
|
converts the linear logical volume "vg00/lvol1" to
|
||||||
a two-way mirror logical volume.
|
a two-way mirror logical volume.
|
||||||
|
|
||||||
"lvconvert --log core vg00/lvol1"
|
"lvconvert --mirrorlog core vg00/lvol1"
|
||||||
.br
|
.br
|
||||||
converts a mirror with a disk log to a
|
converts a mirror with a disk log to a
|
||||||
mirror with an in-memory log.
|
mirror with an in-memory log.
|
||||||
|
|
||||||
"lvconvert --log disk vg00/lvol1"
|
"lvconvert --mirrorlog disk vg00/lvol1"
|
||||||
.br
|
.br
|
||||||
converts a mirror with an in-memory log
|
converts a mirror with an in-memory log
|
||||||
to a mirror with a disk log.
|
to a mirror with a disk log.
|
||||||
|
@ -102,7 +102,7 @@ data being mirrored. Using core means the mirror is regenerated
|
|||||||
by copying the data from the first device again each time the
|
by copying the data from the first device again each time the
|
||||||
device is activated, for example, after every reboot.
|
device is activated, for example, after every reboot.
|
||||||
|
|
||||||
The optional argument --corelog is equivalent to --log core.
|
The optional argument --corelog is equivalent to --mirrorlog core.
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
.I \-n, \-\-name LogicalVolumeName
|
.I \-n, \-\-name LogicalVolumeName
|
||||||
@ -161,7 +161,7 @@ with 2 sides with a useable size of 500 MiB. This operation would
|
|||||||
require 3 devices - two for the mirror devices and one for the disk
|
require 3 devices - two for the mirror devices and one for the disk
|
||||||
log.
|
log.
|
||||||
|
|
||||||
"lvcreate -m1 --log core -L 500M vg00" tries to create a mirror logical volume
|
"lvcreate -m1 --mirrorlog core -L 500M vg00" tries to create a mirror logical volume
|
||||||
with 2 sides with a useable size of 500 MiB. This operation would
|
with 2 sides with a useable size of 500 MiB. This operation would
|
||||||
require 2 devices - the log is "in-memory".
|
require 2 devices - the log is "in-memory".
|
||||||
|
|
||||||
|
@ -275,7 +275,8 @@ static int lvconvert_mirrors(struct cmd_context * cmd, struct logical_volume * l
|
|||||||
if (arg_count(cmd, corelog_ARG))
|
if (arg_count(cmd, corelog_ARG))
|
||||||
corelog = 1;
|
corelog = 1;
|
||||||
|
|
||||||
mirrorlog = arg_str_value(cmd, mirrorlog_ARG, DEFAULT_MIRRORLOG);
|
mirrorlog = arg_str_value(cmd, mirrorlog_ARG,
|
||||||
|
corelog ? "core" : DEFAULT_MIRRORLOG);
|
||||||
if (!strcmp("disk", mirrorlog)) {
|
if (!strcmp("disk", mirrorlog)) {
|
||||||
if (corelog) {
|
if (corelog) {
|
||||||
log_error("--mirrorlog disk and --corelog "
|
log_error("--mirrorlog disk and --corelog "
|
||||||
|
@ -288,7 +288,9 @@ static int _read_mirror_params(struct lvcreate_params *lp,
|
|||||||
if (arg_count(cmd, corelog_ARG))
|
if (arg_count(cmd, corelog_ARG))
|
||||||
lp->corelog = 1;
|
lp->corelog = 1;
|
||||||
|
|
||||||
mirrorlog = arg_str_value(cmd, mirrorlog_ARG, DEFAULT_MIRRORLOG);
|
mirrorlog = arg_str_value(cmd, mirrorlog_ARG,
|
||||||
|
lp->corelog ? "core" : DEFAULT_MIRRORLOG);
|
||||||
|
|
||||||
if (!strcmp("disk", mirrorlog)) {
|
if (!strcmp("disk", mirrorlog)) {
|
||||||
if (lp->corelog) {
|
if (lp->corelog) {
|
||||||
log_error("--mirrorlog disk and --corelog "
|
log_error("--mirrorlog disk and --corelog "
|
||||||
|
Loading…
Reference in New Issue
Block a user