If I write data to the filesystem and delete it, discards work on vdo layer and space is discared as expected and
vdostats --hu
reduces the usage.
VolGroupVDO-lv_data_vdo_vpool0-vpool 350.0G 4.2G 345.8G 1% 99%
If I write data to the file system, create a thin snapshot with
lvcreate -s --name lvdata_s1 VolGroupVDO/lvdata
delete the data in the original filesystem, the usage of vdo does not change as expected.
But if i delete the snapshot, with
lvremove VolGroupVDO/lvdata_s1
I would expect, that the VDO space is freed.
But this is not the case, the usage vdostats --hu does not change
I am using
Therefore the space of deleted snapshots continuously cumulate, and at some point the VDO volume runs out of space, even if I create only some data and all thin snapshots are deleted.
How can I free VDO space, when I delete an thin-snapshot of a thin volume on top of VDO.
Yep - this feature is still in devel ATM - there are more troubles along this route.
Meanwhile - until resolved - you can run 'blkdiscard /dev/vg/lv' before dropping thin volume.
Hi
I am running LVM2 2.03.24. When I create a thinpool on top of LVM using
This leads to the following LVM setup
If I write data to the filesystem and delete it, discards work on vdo layer and space is discared as expected and
vdostats --hu
reduces the usage.VolGroupVDO-lv_data_vdo_vpool0-vpool 350.0G 4.2G 345.8G 1% 99%
If I write data to the file system, create a thin snapshot with
lvcreate -s --name lvdata_s1 VolGroupVDO/lvdata
delete the data in the original filesystem, the usage of vdo does not change as expected.But if i delete the snapshot, with
lvremove VolGroupVDO/lvdata_s1
I would expect, that the VDO space is freed. But this is not the case, the usage vdostats --hu does not change I am usingtherefore discards should be passed down to VDO
Therefore the space of deleted snapshots continuously cumulate, and at some point the VDO volume runs out of space, even if I create only some data and all thin snapshots are deleted.
How can I free VDO space, when I delete an thin-snapshot of a thin volume on top of VDO.
Regards
Hansjörg