﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc
68	LVM log. volumes are not resized using factor which creates problems when restoring	hanscees@…	Bruno Cornec	"When mondorestore finds a new disk geometry:
{{{
[Main] libmondo-devices.c->get_phys_size_of_drive#1259: /dev/hda --> -1 or 8192 --> 8192
Expanding entries to suit drive /dev/hda (8192 MB)
[Main] mondo-prep.c->create_mountlist_for_drive#2777: Creating list of partitions for drive /dev/hda
Disk /dev/hda was 38162 MB; is now 8192 MB; factor = 0.214664
Changing /dev/hda2 from 38973690 KB to 8366240 KB
Changing /dev/hda1 from 104391 KB to 22408 KB
}}}

it computes a factor which is then applied to all physical partitions. 
But it's NOT applied to Logical volumes, which create a problem if disks are smaller only.

{{{
lvm vgchange -a y main --> 0
    lvcreate -L 36864m -r 0 -n root main --> 1280
    [Main] mondo-prep.c->do_my_funky_lvm_stuff#486: echo ""lvm vgchange -a y main"" >> /tmp/out.sh... so I'll get creative.
    lvcreate -L 36864m -r 0 -n root main --> 1
lvm lvcreate -L 960m -r 0 -n swap main --> 0
lvm vgscan --> 0
[Main] mondo-prep.c->do_my_funky_lvm_stuff#549: Closed i-want-my-lvm. Finished doing funky stuff.
}}}"	enhancement	closed	normal	3.2.2	mondo	2.0.9	normal	fixed		andree@…
