This message was deleted.
# longhorn-storage
a
This message was deleted.
p
what is the size of the replica img file?
c
where do i find it?
Inside the node?
p
here
c
one second
p
when hovering inside a replica
c
Copy code
du -sh /var/lib/longhorn/replicas/pvc-5d58f8f1-f982-43a5-8900-fccc9fc15851-8eb03f92/
28G     /var/lib/longhorn/replicas/pvc-5d58f8f1-f982-43a5-8900-fccc9fc15851-8eb03f92/
p
oof.
I myself am using a scheduled trim, i hope it will work
c
the thing is i'm trying to manually trim it
but it doesn't go down
p
Manually trimming never did anything for me yes
👀 1
c
should i try to fstrim from the node directly?
p
I'm not sure it's a great idea
c
interesting..
yeah i don't understand why there it's 28 when longhorn shows 1gb less
p
rounding error probably
c
also
i'm on 1.4.3
not the latest indeed so i can't add a trim recurring job, i added it manually like this:
Copy code
apiVersion: longhorn.io/v1beta1
kind: RecurringJob
metadata:
  name: trim-1
  namespace: longhorn-system
spec:
  cron: "29,59 * * * ?"
  task: "filesystem-trim"
  retain: 1
  concurrency: 1
  groups:
    - default
    - group1
the thing is, it spawns in the ui but doesn't come up in the rancher job page
i suspect it won't work ...
p
No clue, i just added a default trim
Btw, df and du sometimes says different results, if you du inside the mountpoint, what does du says?
c
i will check
one sec
Copy code
/var/lib/longhorn/replicas/pvc-5d58f8f1-f982-43a5-8900-fccc9fc15851-8eb03f92# du -sh
28G     .
like this ?
p
no, at the mointpoint
/prometheus
according to your earlier screenshot
c
that is inside the pod
the prometheus pod mounting the pv
p
Could you try mounting the volume your node?
mount /dev/longhorn/pvc-xxxxxx /mnt (or somewhere else)
c
one sec
Copy code
df -h | grep temp
/dev/longhorn/pvc-5d58f8f1-f982-43a5-8900-fccc9fc15851                                                                                                                   30G  3.6G   26G  13% /home/service/temp-mnt
it's the correct sizing
p
du, not dh
c
Copy code
du -sh /home/service/temp-mnt/
3.6G    /home/service/temp-mnt/
p
RIP
c
i think this is a bug isn't it
p
trim again, just in case? 🥺
c
trim from the node
or the longhorn ui?
tried from the ui freed up like 1gb
i wonder if i fstrim from the node
this path
what will happen
Copy code
/var/lib/longhorn/replicas/pvc-5d58f8f1-f982-43a5-8900-fccc9fc15851-8eb03f92
brb im gonna go eat fast
p
yeah me too
c
back
p
Hey mate. Experiencing the exact same problem now --'
Gitlab volume, with heavy artififacts that were eventually deleted. Filesystem size view by gitlab : 102gb Longhorn volume size : 140gb 😞
c
@powerful-librarian-10572 i opened an issue on github
but they moved it to 'discussion'
and now they are completely ignoring it
what version of longhorn are you using?
p
1.6.1