linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
* [linux-lvm] LVM generates wrong low_water_mark value in thin-pool's table
@ 2016-02-01  9:17 M.H. Tsai
  2016-02-01 14:19 ` Zdenek Kabelac
  2016-02-12 12:43 ` Zdenek Kabelac
  0 siblings, 2 replies; 3+ messages in thread
From: M.H. Tsai @ 2016-02-01  9:17 UTC (permalink / raw)
  To: LVM general discussion and development

[-- Attachment #1: Type: text/plain, Size: 353 bytes --]

Hi,

I found that the <low_water_mark> parameter of thin-pool's table might be
wrong. In kernel, the this parameter is the number of free blocks. However,
LVM commit 99237f0908d87592815f4bdf3c239e8a108e835c sets this value as the
number of USED blocks, according
to activation_thin_pool_autoextend_threshold_CFG. Is that a bug?


Thanks,
Ming-Hung Tsai

[-- Attachment #2: Type: text/html, Size: 456 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [linux-lvm] LVM generates wrong low_water_mark value in thin-pool's table
  2016-02-01  9:17 [linux-lvm] LVM generates wrong low_water_mark value in thin-pool's table M.H. Tsai
@ 2016-02-01 14:19 ` Zdenek Kabelac
  2016-02-12 12:43 ` Zdenek Kabelac
  1 sibling, 0 replies; 3+ messages in thread
From: Zdenek Kabelac @ 2016-02-01 14:19 UTC (permalink / raw)
  To: LVM general discussion and development

Dne 1.2.2016 v 10:17 M.H. Tsai napsal(a):
> Hi,
>
> I found that the <low_water_mark> parameter of thin-pool's table might be
> wrong. In kernel, the this parameter is the number of free blocks. However,
> LVM commit 99237f0908d87592815f4bdf3c239e8a108e835c sets this value as the
> number of USED blocks, according
> to activation_thin_pool_autoextend_threshold_CFG. Is that a bug?

Ok - looks like my fault when translating lvm2 threshold usage to thin-pool 
target threshold usage.

Thanks for noticing

Zdenek

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [linux-lvm] LVM generates wrong low_water_mark value in thin-pool's table
  2016-02-01  9:17 [linux-lvm] LVM generates wrong low_water_mark value in thin-pool's table M.H. Tsai
  2016-02-01 14:19 ` Zdenek Kabelac
@ 2016-02-12 12:43 ` Zdenek Kabelac
  1 sibling, 0 replies; 3+ messages in thread
From: Zdenek Kabelac @ 2016-02-12 12:43 UTC (permalink / raw)
  To: linux-lvm

Dne 1.2.2016 v 10:17 M.H. Tsai napsal(a):
> Hi,
>
> I found that the <low_water_mark> parameter of thin-pool's table might be
> wrong. In kernel, the this parameter is the number of free blocks. However,
> LVM commit 99237f0908d87592815f4bdf3c239e8a108e835c sets this value as the
> number of USED blocks, according
> to activation_thin_pool_autoextend_threshold_CFG. Is that a bug?
>


Hi again


Yep bug on lvm2 size - fix has been upstreamed by this commit:

https://www.redhat.com/archives/lvm-devel/2016-February/msg00005.html


There is also some ongoing work on better lvresize support for more then 1 
single LV. This will also implement better approach to resize of lvmetad which 
is using different mechanism in kernel.

Lvm2 will try to follow the users wish but also be complaint with kernel 
policy for free space in metadata device.

Regards

Zdenek

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-02-12 12:43 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-01  9:17 [linux-lvm] LVM generates wrong low_water_mark value in thin-pool's table M.H. Tsai
2016-02-01 14:19 ` Zdenek Kabelac
2016-02-12 12:43 ` Zdenek Kabelac

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).