Size on disk much larger than Immich reports #1851

Open
opened 2026-02-05 04:11:35 +03:00 by OVERLORD · 3 comments
Owner

Originally created by @bo0tzz on GitHub (Dec 20, 2023).

Discussed in https://github.com/immich-app/immich/discussions/5884

Originally posted by mpfl December 20, 2023

When looking in Immich-> Administration, it reports that it has 88GB of photos stored.

However, in library:

$ du -sh
152G .

I feel like a ~70GB discrepancy is a fair bit to be explained by filesystem overhead.

Anyone know what's going on?

It seems like the statistics query only counts assets that are marked isVisible:
947c053c15/server/src/repositories/user.repository.ts (L177-L185)

Originally created by @bo0tzz on GitHub (Dec 20, 2023). ### Discussed in https://github.com/immich-app/immich/discussions/5884 <div type='discussions-op-text'> <sup>Originally posted by **mpfl** December 20, 2023</sup> > When looking in Immich-> Administration, it reports that it has 88GB of photos stored. > > However, in `library`: > > ``` > $ du -sh > 152G . > ``` > > I feel like a ~70GB discrepancy is a fair bit to be explained by filesystem overhead. > > Anyone know what's going on? </div> It seems like the statistics query only counts assets that are marked `isVisible`: https://github.com/immich-app/immich/blob/947c053c159cdfa6a520587b606740a7193d86fc/server/src/repositories/user.repository.ts#L177-L185
OVERLORD added the 🗄️server label 2026-02-05 04:11:35 +03:00
Author
Owner

@danieldietzler commented on GitHub (Dec 20, 2023):

Yeah I've been recently talking with @jrasm91 about this in a different context and it's a little weird either way. I believe showing the total of all assets can also be confusing because then you upload e.g. 20GB and it shows you 22GB or something (live photos and stuff).

@danieldietzler commented on GitHub (Dec 20, 2023): Yeah I've been recently talking with @jrasm91 about this in a different context and it's a little weird either way. I believe showing the total of all assets can also be confusing because then you upload e.g. 20GB and it shows you 22GB or something (live photos and stuff).
Author
Owner

@JustEnoughDucks commented on GitHub (Dec 22, 2023):

@danieldietzler

Especially when you bring zpools into the equation. Total disk space is always weird there. My photo library shows 51.1GB used of 139.3GB total while my photo directory is 25GB and by total free disk space in the pool has 204GB free. Though I suspect the "used" comes from a du -h type listing of the root mounted folder of the external + root of upload folder size as that correlates to the 51GB.

@JustEnoughDucks commented on GitHub (Dec 22, 2023): @danieldietzler Especially when you bring zpools into the equation. Total disk space is always weird there. My photo library shows 51.1GB used of 139.3GB total while my photo directory is 25GB and by total free disk space in the pool has 204GB free. Though I suspect the "used" comes from a du -h type listing of the root mounted folder of the external + root of upload folder size as that correlates to the 51GB.
Author
Owner

@coltenkrauter commented on GitHub (Jul 5, 2024):

Perhaps immich should go the path that Apple went... Showing the whole story, but possibly use other or unkown when things are not photo/video media.

Screenshot 2024-07-04 at 3 12 44 PM

@coltenkrauter commented on GitHub (Jul 5, 2024): Perhaps immich should go the path that Apple went... Showing the whole story, but possibly use `other` or `unkown` when things are not photo/video media. ![Screenshot 2024-07-04 at 3 12 44 PM](https://github.com/immich-app/immich/assets/18080897/d4810d11-2002-4afe-aff9-2dc306640356)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: immich-app/immich#1851