Closed simonebenati closed 5 months ago
Can you elaborate more on your question?
Hello @derekbit , The issue is:
I do not understand such discrepancy between the real usage of the pv , and the actual size displayed by longhorn. I believe 40Gb difference isn't normal. It isn't trimmable, it isn't an accumulating of snapshot issue. I don't understand what these 40gbs are, and how to get rid of them.. as you see from the previous message the real usage of the pv with a df -h within the pod is 52gb... Thank you
For the actual size, please see the official document https://longhorn.io/docs/1.6.1/nodes-and-volumes/volumes/volume-size/
Yes I'm aware of that therefore I tried running trim filesystem multiple but it won't trim. And I do not understand why there is this 40Gb overhead.. that won't go away
You have a 90 GiB snapshot. That's why your actual size is larger than 90 GiB.
snapshots:
c9e8de6c-d65f-43c0-8956-80f351567267:
children:
volume-head: true
created: "2024-04-29T07:05:12Z"
labels: {}
name: c9e8de6c-d65f-43c0-8956-80f351567267
parent: "null"
removed: true
size: "97226928128"
usercreated: true
volume-head:
children: {}
created: "2024-04-29T07:05:12Z"
labels: {}
name: volume-head
parent: c9e8de6c-d65f-43c0-8956-80f351567267
removed: false
size: "319488"
usercreated: false
Describe the bug
Unclear size of my PV , when it should be around 50gb it is 90gb.
To Reproduce
Import a database dump in a longhorn backed database workload and then perform some setup operations
Expected behavior
I expect the pv to be close to the size of the database not +30/+40Gb
Support bundle for troubleshooting
supportbundle_0e2fe36f-873b-4027-bc13-635cc8f1d41c_2024-04-29T07-40-29Z.zip
Environment
pvc-97034b0b-17a5-4c6d-9629-6e7bb029c501
Additional context
Steps already tried to "shrink" the actual used size are:
tried to create a snapshot and then delete manually a snapshot without luck too..
I expect longhorn volume to be close to these values: