[DRBD-user] drbd9: drbdmanage.storage.lvm_thinlv.LvmThinLv plugin - free space calculation still wrong (drbdmanage update-pool)

Roberto Resoli roberto at resolutions.it
Mon Oct 9 17:10:27 CEST 2017

Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.


Il 09/10/2017 16:48, Roberto Resoli ha scritto:
> Il 09/10/2017 15:35, Robert Altnoeder ha scritto:
>> On 10/09/2017 11:04 AM, Roberto Resoli wrote:
>>> I currently remove snap_percent from used space in "update_pool"
>>> function inside
>>>
>>> /usr/lib/python2.7/dist-packages/drbdmanage/storage/lvm_thinlv.py
>> It is quite interesting that you even get any values in this column that
>> could then mess up your results.> I just tested this on three different installations (Debian 8, Ubuntu
>> 16.04, CentOS 7.3), and none of them even reports any values for the
>> snap_percent field, neither for the thinpool nor for any volumes or
>> snapshots inside the pool > We are still trying to figure out what LVM is supposed to report for
>> which one of all those values.
> 
> Not that difficult, you need at least
> 
> # lvm version
>   LVM version:     2.02.168(2) (2016-11-30)
>   Library version: 1.02.137 (2016-11-30)
>   Driver version:  4.35.0
> 
> Just tried on a fresh Debian 9.0 machine, with stock lvm2 package:
> 
> # lvs --units m -o lv_name,vg_name,pool_lv,size,data_percent,snap_percent
>   LV         VG     Pool LSize    Data%  Snap%
>   ThinDataLV vgtest      8192,00m 0,00   0,00

Another example, same machine,  thin pool a thin volume inside:

# lvs --units m -o lv_name,vg_name,pool_lv,size,data_percent,snap_percent
  LV       VG     Pool     LSize    Data%  Snap%
  thinlv   vgtest thinpool 1024,00m 9,77   9,77
  thinpool vgtest          8192,00m 1,22   1,22

> bye,
> rob



More information about the drbd-user mailing list