https://rancher.com/ logo
m

magnificent-vr-88571

01/16/2023, 3:13 AM
Kubernetesversion: v1.22.15+rke2r1 Longhorn version: 1.3.1 I have following persistent volume and in Longhorn dashboard actual size shows 658Gi. Initially volume created with 400Gi, latter expanded to 800Gi.
Copy code
NAME                                       CAPACITY   ACCESS MODES   RECLAIM POLICY   STATUS   CLAIM                                                                                                             STORAGECLASS   REASON   AGE
pvc-38d9351f-8f48-435e-bc92-e796031a92ef   800Gi      RWO            Delete           Bound    kubeflow/minio-pvc                                                                                                longhorn                108d
In actuals 800Gi as allocated and 415Gi is used being shown in the volume mounted server
Copy code
>> lsblk
sdc    8:32   0  800G  0 disk /var/lib/kubelet/pods/d4ea8ad2-6cc9-4e00-bd29-25ff5e8678bc/volume-subpaths/pvc-38d9351f-8f48-435e-bc92-e796031a92ef/minio/0
Copy code
>> /var/lib/kubelet/plugins/kubernetes.io/csi/pv/pvc-38d9351f-8f48-435e-bc92-e796031a92ef/globalmount/minio# du -sh
415G	.
on the replica server 658G in the replica created server.
Copy code
>>/var/lib/longhorn/replicas/pvc-38d9351f-8f48-435e-bc92-e796031a92ef-2dbe6c38# du -sh
658G	.
I would like to know how we can reduce the 658G in the replica server to the actual usage as 415Gi.
g

great-bear-19718

01/17/2023, 2:33 AM
m

magnificent-vr-88571

01/17/2023, 2:35 AM
thank you, let me check it. sorry for wrongly posting it in harvester.
g

great-bear-19718

01/17/2023, 2:40 AM
no problem.. hope it helps
1
m

magnificent-vr-88571

01/17/2023, 8:32 AM
yes, document helped to fix the issue.
6 Views