Hi,
> > The question is: why LVRoot in the raw image is that big, when only 18%
> > fraction is utilized?
>
> Thanks for the details, yes this sounds weird. I will reproduce this
> with your setup and see what happens
This problem should be fixed in the next version of kiwi.
Here the commit:
commit 3560ead05525f851fd107ff1f1d797223a828cc7
Author: Marcus Schäfer <
m...@suse.de>
Date: Mon May 20 19:16:45 2013 +0200
- fixed and optimized disk size calculation
* I had by default 40% spare space on the root path which seems to
be too much, I have 20% spare on each volume so I adapted that
to the root path as well.
* for the size estimation I now use the --apparent-size option in
du, which works better on files with holes and other or other
attributes which makes a difference when copying those data.
* Use a fixed value for the filesystem overhead each volume adds
to the disk. It is wrong to calculate and add a 20% spare/volume
according to the size of the data in the volume to the disk,
because that value has already been taken into account with
the data spare calculation of the entire tree
by intention I want each volume to have ~20% of free space.
This is an empiric number which worked for me. Unfortunately
it is really hard to exactly precalculate the needed filesystem
size and even harder to precalculate the needed disk size
I will submit a new kiwi version by the end of this week latest
Would be nice if you can give it a test too
I got these values with a similar setup as yours:
lvs
LV VG Attr LSize Pool Origin Data% Move Log Copy% Convert
LVRoot vg00 -wi-a---- 356.00m
LVhome vg00 -wi-a---- 32.00m
LVopt vg00 -wi-a---- 32.00m
LVtmp vg00 -wi-a---- 32.00m
LVusr vg00 -wi-a---- 4.00g
LVusr_sap vg00 -wi-a---- 32.00m
LVvar vg00 -wi-a---- 52.00m
LVvar_crash vg00 -wi-a---- 32.00m
LVvar_log vg00 -wi-a---- 36.00m
LVvar_opt vg00 -wi-a---- 32.00m
mount /dev/mapper/vg00-LVRoot /mnt
/dev/mapper/vg00-LVRoot 321M 227M 77M 75% /mnt
mount /dev/mapper/vg00-LVusr /mnt
/dev/mapper/vg00-LVusr 3.9G 3.5G 180M 96% /mnt
...