Bug#383080: lvm2: Excessive running time and disk IO of vgs/lvs/pvs
rjg
rjg at tele2.nl
Sun Aug 20 17:42:08 UTC 2006
Hi Alasdair,
Thanks for the reply & the advise.
>> I have run each with 4 '-v' options. Log files are included.
>
> They appear truncated - the important bit at the end is missing:-)
I assume you are missing the regular (stdout) output - The log files
were just the stderr part. Stdout included in this message (for
completeness).
> But it looks like you have 15 PVs in the same VG and are maintaining
> 15 copies of the metadata which all have to be maintained in sync.
I have 15 metadata copies indeed. That may be a bit excessive... I'll
reduce their number.
However, I assume you'll agree with me that an algorithm doing O(n^3)
disk-IO where O(n) is possible, is really a bit too inefficient.
Rogier.
--------------------- vgs output -------------------------
VG #PV #LV #SN Attr VSize VFree
system 15 12 0 wz--n- 19.88G 2.88G
--------------------- lvs output -------------------------
LV VG Attr LSize Origin Snap% Move Log Copy%
data system -wimao 256.00M
home system -wimao 2.00G
linux system -wimao 2.00G
linux2 system -wi-a- 2.00G
root system -wimao 256.00M
scratch system -wimao 2.00G
scratch0 system -wi-a- 2.00G
swap system -wimao 256.00M
tmp system -wimao 256.00M
usr system -wimao 4.50G
usrlocal system -wimao 1.00G
var system -wimao 512.00M
--------------------- pvs output -------------------------
PV VG Fmt Attr PSize PFree
/dev/hda5 system lvm2 a- 640.00M 128.00M
/dev/hda6 system lvm2 a- 1.00G 0
/dev/hda7 system lvm2 a- 1.00G 0
/dev/hda8 system lvm2 a- 2.00G 0
/dev/hda9 system lvm2 a- 2.00G 0
/dev/hdb5 system lvm2 a- 640.00M 640.00M
/dev/hdb6 system lvm2 a- 1.00G 1.00G
/dev/hdb7 system lvm2 a- 1.00G 1.00G
/dev/hdb8 system lvm2 a- 2.00G 0
/dev/hdb9 system lvm2 a- 2.00G 0
/dev/hdc5 system lvm2 a- 640.00M 128.00M
/dev/hdc6 system lvm2 a- 1.00G 0
/dev/hdc7 system lvm2 a- 1.00G 0
/dev/hdc8 system lvm2 a- 2.00G 0
/dev/hdc9 system lvm2 a- 2.00G 0
----------------------------------------------------------
More information about the pkg-lvm-maintainers
mailing list