1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-22 17:35:59 +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:
Alasdair Kergon 2007-08-30 19:34:19 +00:00
parent 0ee5743d75
commit 58def149aa
5 changed files with 13 additions and 8 deletions

View File

@ -1,6 +1,8 @@
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.
Add '-f' to vgremove to force removal of VG even if LVs exist.

View File

@ -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.
.TP
.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
.I \-R, \-\-regionsize MirrorLogRegionSize
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
a two-way mirror logical volume.
"lvconvert --log core vg00/lvol1"
"lvconvert --mirrorlog core vg00/lvol1"
.br
converts a mirror with a disk log to a
mirror with an in-memory log.
"lvconvert --log disk vg00/lvol1"
"lvconvert --mirrorlog disk vg00/lvol1"
.br
converts a mirror with an in-memory log
to a mirror with a disk log.

View File

@ -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
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
.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
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
require 2 devices - the log is "in-memory".

View File

@ -275,7 +275,8 @@ static int lvconvert_mirrors(struct cmd_context * cmd, struct logical_volume * l
if (arg_count(cmd, corelog_ARG))
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 (corelog) {
log_error("--mirrorlog disk and --corelog "

View File

@ -288,7 +288,9 @@ static int _read_mirror_params(struct lvcreate_params *lp,
if (arg_count(cmd, corelog_ARG))
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 (lp->corelog) {
log_error("--mirrorlog disk and --corelog "