[lvm-devel] [PATCH 0 of 2] Mirror argument changes.

Jonathan Brassow jbrassow at redhat.com
Tue Jul 31 20:13:09 UTC 2007


I've made some changes to the mirror logging arguments for lvcreate and
lvconvert.  Rather than using '--corelog' to specify in-memory logging
and relying on the fact that it wasn't specified to infer disk logging,
I've added the '--log' argument.

Examples:
$> lvcreate -m1 --log core ...
$> lvcreate -m1 --log disk ...

$> lvconvert --log core ...
$> lvconvert --log disk ...

The old ways still work.  '--corelog' is interpreted as '--log core'.
The nice thing is that you no longer need to specify a '--mirrors'
argument to lvconvert if you are not changing the number of mirrors.
Additionally, it makes it more clear when converting from core logging
to disk logging while not changing the mirror count.

Old way (two-way core mirror to two-way disk mirror):
$> lvconvert -m1 vg/lv

New way:
$> lvconvert --log disk vg/lv

I've also tried to clean-up the mirror convert code a little.

 brassow




More information about the lvm-devel mailing list