Storage Issue: 2TB Disk Mounted but Web App Only Shows 15GB Available

Hello, I want Immich to use a 2TB external disk as the storage location for uploaded photos. But when checking on the web app it's telling me that I'm at "1.6 GiB of 15.6 GiB used". This disk is mounted on: /dev/sda1 1.8T 48K 1.7T 1% /disk1 My .env variable seems to correctly setup to "UPLOAD_LOCATION=/disk1/photo/" . The permissions for the folder are: drwxr-xr-x My docker-compose.yml has not been changed and still uses the UPLOAD_LOCATION variable for the volume: volumes: - ${UPLOAD_LOCATION}:/usr/src/app/upload Docker seems to be able to get that info since it's displayed when I run "docker inspect immich_server | grep -A10 Mounts" "Mounts": [ { "Type": "bind", "Source": "/disk1/photo", "Destination": "/usr/src/app/upload", "Mode": "rw", "RW": true, "Propagation": "rprivate" }, { "Type": "bind", So everything is running smoothly but I don't understand why there is this discrepancy. I feel like it's something obvious that I'm missing but I can't wrap my head around why 😄 .
18 Replies
Immich
Immich19h ago
:wave: Hey @឵឵឵Deredeld, Thanks for reaching out to us. Please carefully read this message and follow the recommended actions. This will help us be more effective in our support effort and leave more time for building Immich :immich:. References - Container Logs: docker compose logs docs - Container Status: docker ps -a docs - Reverse Proxy: https://immich.app/docs/administration/reverse-proxy - Code Formatting https://support.discord.com/hc/en-us/articles/210298617-Markdown-Text-101-Chat-Formatting-Bold-Italic-Underline#h_01GY0DAKGXDEHE263BCAYEGFJA Checklist I have... 1. :blue_square: verified I'm on the latest release(note that mobile app releases may take some time). 2. :blue_square: read applicable release notes. 3. :blue_square: reviewed the FAQs for known issues. 4. :blue_square: reviewed Github for known issues. 5. :blue_square: tried accessing Immich via local ip (without a custom reverse proxy). 6. :blue_square: uploaded the relevant information (see below). 7. :blue_square: tried an incognito window, disabled extensions, cleared mobile app cache, logged out and back in, different browsers, etc. as applicable (an item can be marked as "complete" by reacting with the appropriate number) Information In order to be able to effectively help you, we need you to provide clear information to show what the problem is. The exact details needed vary per case, but here is a list of things to consider: - Your docker-compose.yml and .env files. - Logs from all the containers and their status (see above). - All the troubleshooting steps you've tried so far. - Any recent changes you've made to Immich or your system. - Details about your system (both software/OS and hardware). - Details about your storage (filesystems, type of disks, output of commands like fdisk -l and df -h). - The version of the Immich server, mobile app, and other relevant pieces. - Any other information that you think might be relevant. Please paste files and logs with proper code formatting, and especially avoid blurry screenshots. Without the right information we can't work out what the problem is. Help us help you ;) If this ticket can be closed you can use the /close command, and re-open it later if needed.
឵឵឵Deredeld
឵឵឵DeredeldOP19h ago
.env # You can find documentation for all the supported env variables at https://immich.app/docs/install/environment-variables # The location where your uploaded files are stored UPLOAD_LOCATION=/disk1/photo/ # The location where your database files are stored. Network shares are not supported for the database DB_DATA_LOCATION=./postgres # To set a timezone, uncomment the next line and change Etc/UTC to a TZ identifier from this list: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List # TZ=Etc/UTC # The Immich version to use. You can pin this to a specific version like "v1.71.0" IMMICH_VERSION=release # Connection secret for postgres. You should change it to a random password # Please use only the characters A-Za-z0-9, without special characters or spaces DB_PASSWORD= # The values below this line do not need to be changed ################################################################################### DB_USERNAME=postgres DB_DATABASE_NAME=immich
Mraedis
Mraedis15h ago
Can you tell us a little more about your host computer @឵឵឵Deredeld Also what is the output of df -T and lsblk
឵឵឵Deredeld
឵឵឵DeredeldOP10h ago
I dont know which information you are looking for particularly but I'm on a Ubuntu Server "Ubuntu 22.04 LTS" with Docker version 28.0.4 (build b8034c0) and Docker Compose version v2.34.0. I have a 1TB SSD and 2 2TB HDD. The system is installed on the SDD and the two disks are mounted on /disk1/ and /disk2/. The immich folders are in /disk1/immich-app. df -T:
Filesystem Type 1K-blocks Used Available Use% Mounted on
tmpfs tmpfs 3262772 2488 3260284 1% /run
efivarfs efivarfs 192 88 100 47% /sys/firmware/efi/efivars
/dev/nvme0n1p2 ext4 959218776 199467048 710952396 22% /
tmpfs tmpfs 16313848 0 16313848 0% /dev/shm
tmpfs tmpfs 5120 0 5120 0% /run/lock
/dev/nvme0n1p1 vfat 1098632 6284 1092348 1% /boot/efi
/dev/sdb1 ext4 1921723584 28 1824031552 1% /disk2
/dev/sda1 ext4 1921723584 48 1824031532 1% /disk1
shm tmpfs 65536 0 65536 0% /var/snap/microk8s/common/run/containerd/io.containerd.grpc.v1.cri/sandboxes/93e93ba7a16192e79b97b0aae2af023dcdd5bad0b18f0cb5acaed34b89ecfa75/shm
shm tmpfs 65536 0 65536 0% /var/snap/microk8s/common/run/containerd/io.containerd.grpc.v1.cri/sandboxes/9e1b4c2dbca48a76c2a858e0feda4c5a2aae79438428d04d4763e0154324ffa4/shm
shm tmpfs 65536 0 65536 0% /var/snap/microk8s/common/run/containerd/io.containerd.grpc.v1.cri/sandboxes/3317f411b99d3e476a3b8e70041a6616442a7aa30e69ce3466a653ae8f721b8d/shm
tmpfs tmpfs 3262768 28 3262740 1% /run/user/1000
Filesystem Type 1K-blocks Used Available Use% Mounted on
tmpfs tmpfs 3262772 2488 3260284 1% /run
efivarfs efivarfs 192 88 100 47% /sys/firmware/efi/efivars
/dev/nvme0n1p2 ext4 959218776 199467048 710952396 22% /
tmpfs tmpfs 16313848 0 16313848 0% /dev/shm
tmpfs tmpfs 5120 0 5120 0% /run/lock
/dev/nvme0n1p1 vfat 1098632 6284 1092348 1% /boot/efi
/dev/sdb1 ext4 1921723584 28 1824031552 1% /disk2
/dev/sda1 ext4 1921723584 48 1824031532 1% /disk1
shm tmpfs 65536 0 65536 0% /var/snap/microk8s/common/run/containerd/io.containerd.grpc.v1.cri/sandboxes/93e93ba7a16192e79b97b0aae2af023dcdd5bad0b18f0cb5acaed34b89ecfa75/shm
shm tmpfs 65536 0 65536 0% /var/snap/microk8s/common/run/containerd/io.containerd.grpc.v1.cri/sandboxes/9e1b4c2dbca48a76c2a858e0feda4c5a2aae79438428d04d4763e0154324ffa4/shm
shm tmpfs 65536 0 65536 0% /var/snap/microk8s/common/run/containerd/io.containerd.grpc.v1.cri/sandboxes/3317f411b99d3e476a3b8e70041a6616442a7aa30e69ce3466a653ae8f721b8d/shm
tmpfs tmpfs 3262768 28 3262740 1% /run/user/1000
lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
loop0 7:0 0 10.7M 1 loop /snap/canonical-livepatch/286
loop1 7:1 0 104.2M 1 loop /snap/core/17200
loop2 7:2 0 55.4M 1 loop /snap/core18/2855
loop3 7:3 0 63.7M 1 loop /snap/core20/2496
loop4 7:4 0 63.8M 1 loop /snap/core20/2501
loop5 7:5 0 73.9M 1 loop /snap/core22/1802
loop6 7:6 0 73.9M 1 loop /snap/core22/1908
loop7 7:7 0 66.2M 1 loop /snap/core24/739
loop8 7:8 0 66.8M 1 loop /snap/core24/888
loop9 7:9 0 144.5M 1 loop /snap/docker/3064
loop10 7:10 0 43.9M 1 loop /snap/doctl/2005
loop11 7:11 0 25.2M 1 loop /snap/etcd/249
loop12 7:12 0 95.7M 1 loop /snap/kata-containers/2446
loop13 7:13 0 114.4M 1 loop /snap/lxd/33110
loop14 7:14 0 164.2M 1 loop /snap/microk8s/7964
loop15 7:15 0 164.3M 1 loop /snap/microk8s/8148
loop16 7:16 0 332.1M 1 loop /snap/nextcloud/47362
loop17 7:17 0 333.3M 1 loop /snap/nextcloud/47611
loop18 7:18 0 38.7M 1 loop /snap/postgresql10/47
loop19 7:19 0 73.7M 1 loop /snap/powershell/283
loop20 7:20 0 71M 1 loop /snap/prometheus/86
loop21 7:21 0 13.9M 1 loop /snap/slcli/2957
loop22 7:22 0 44.4M 1 loop /snap/snapd/23771
loop23 7:23 0 4.4M 1 loop /snap/tree/54
loop24 7:24 0 43.9M 1 loop /snap/doctl/2030
sda 8:0 0 1.8T 0 disk
└─sda1 8:1 0 1.8T 0 part /disk1
sdb 8:16 0 1.8T 0 disk
└─sdb1 8:17 0 1.8T 0 part /disk2
nvme0n1 259:0 0 931.5G 0 disk
├─nvme0n1p1 259:1 0 1G 0 part /boot/efi
└─nvme0n1p2 259:2 0 930.5G 0 part /
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
loop0 7:0 0 10.7M 1 loop /snap/canonical-livepatch/286
loop1 7:1 0 104.2M 1 loop /snap/core/17200
loop2 7:2 0 55.4M 1 loop /snap/core18/2855
loop3 7:3 0 63.7M 1 loop /snap/core20/2496
loop4 7:4 0 63.8M 1 loop /snap/core20/2501
loop5 7:5 0 73.9M 1 loop /snap/core22/1802
loop6 7:6 0 73.9M 1 loop /snap/core22/1908
loop7 7:7 0 66.2M 1 loop /snap/core24/739
loop8 7:8 0 66.8M 1 loop /snap/core24/888
loop9 7:9 0 144.5M 1 loop /snap/docker/3064
loop10 7:10 0 43.9M 1 loop /snap/doctl/2005
loop11 7:11 0 25.2M 1 loop /snap/etcd/249
loop12 7:12 0 95.7M 1 loop /snap/kata-containers/2446
loop13 7:13 0 114.4M 1 loop /snap/lxd/33110
loop14 7:14 0 164.2M 1 loop /snap/microk8s/7964
loop15 7:15 0 164.3M 1 loop /snap/microk8s/8148
loop16 7:16 0 332.1M 1 loop /snap/nextcloud/47362
loop17 7:17 0 333.3M 1 loop /snap/nextcloud/47611
loop18 7:18 0 38.7M 1 loop /snap/postgresql10/47
loop19 7:19 0 73.7M 1 loop /snap/powershell/283
loop20 7:20 0 71M 1 loop /snap/prometheus/86
loop21 7:21 0 13.9M 1 loop /snap/slcli/2957
loop22 7:22 0 44.4M 1 loop /snap/snapd/23771
loop23 7:23 0 4.4M 1 loop /snap/tree/54
loop24 7:24 0 43.9M 1 loop /snap/doctl/2030
sda 8:0 0 1.8T 0 disk
└─sda1 8:1 0 1.8T 0 part /disk1
sdb 8:16 0 1.8T 0 disk
└─sdb1 8:17 0 1.8T 0 part /disk2
nvme0n1 259:0 0 931.5G 0 disk
├─nvme0n1p1 259:1 0 1G 0 part /boot/efi
└─nvme0n1p2 259:2 0 930.5G 0 part /
It feels more like a mounting problem than something coming from immich but I have run out of things to try 😄
឵឵឵Deredeld
឵឵឵DeredeldOP10h ago
Here is also the logs for the docker compose up
Mraedis
Mraedis10h ago
Are you using snap docker @឵឵឵Deredeld ? Because it seems like you are 👀
឵឵឵Deredeld
឵឵឵DeredeldOP10h ago
I think those come from some options I checked from the installation of the ubuntu server .
឵឵឵Deredeld
឵឵឵DeredeldOP10h ago
I couldn't find a screen from the documentation but here is what I'm talking about: https://youtu.be/zs2zdVPwZ7E?t=790
SavvyNik
YouTube
Ubuntu Server 22.04 LTS Install - Step by Step Guide - (Beginners T...
Ubuntu Server 22.04 Linux Install Tutorial is a 2022 Tutorial on How to Install Ubuntu Server 22.04 Linux on a computer/server. Run through this Step by Step Tutorial to install Ubuntu 22.04 the Server Version on a system. Ubuntu Server 22.04 Linux Install Tutorial is intended for beginner users and shows all necessary steps to get your server r...
Mraedis
Mraedis10h ago
Should be easy to check with sudo snap list If docker is in there, you have snap docker
឵឵឵Deredeld
឵឵឵DeredeldOP10h ago
Name Version Rev Tracking Publisher Notes canonical-livepatch 10.9.0 286 latest/stable canonical✓ - core 16-2.61.4-20240607 17200 latest/stable canonical✓ core core18 20250123 2855 latest/stable canonical✓ base core20 20250213 2501 latest/stable canonical✓ base core22 20250315 1908 latest/stable canonical✓ base core24 20250318 888 latest/stable canonical✓ base docker 27.5.1 3064 latest/stable canonical✓ - doctl v1.125.0 2030 latest/stable digitalocean✓ - etcd 3.4.36 249 latest/stable canonical✓ - kata-containers 2.4.2 2446 latest/stable katacontainers✓ classic lxd 5.21.3-c5ae129 33110 5.21/stable canonical✓ - microk8s v1.32.3 8148 1.32/stable canonical✓ classic nextcloud 31.0.4snap1 47611 latest/stable nextcloud✓ - postgresql10 10.4 47 latest/stable cmd✓ - powershell 7.5.0 283 latest/stable canonical✓ classic prometheus 2.37.0 86 2/stable canonical✓ - slcli 6.2.6 2957 latest/stable softlayer - snapd 2.67.1 23771 latest/stable canonical✓ snapd tree 2.1.3+pkg-5852 54 latest/stable brlin - it's there.... 😄
Mraedis
Mraedis10h ago
Yeah you really don't want snap docker 😛 No idea why canonical keeps pushing it
឵឵឵Deredeld
឵឵឵DeredeldOP10h ago
I'm guessing I can try again by removing it. Should be easier then Thank you so much for all you help 🙂
Mraedis
Mraedis10h ago
It happens when you sudo apt install docker because it defaults to snap
឵឵឵Deredeld
឵឵឵DeredeldOP10h ago
What a great way to implement things... Lets hope and can come back with some good news in a few hours 😉
Mraedis
Mraedis10h ago
Just sudo apt remove docker --purge (assuming you've gotten all the data from your containers you need, this will WIPE all things docker) And then sudo apt install docker-ce And you'll also need sudo apt install docker-compose-plugin
឵឵឵Deredeld
឵឵឵DeredeldOP10h ago
Wow thank you so much I can't believe how knowledgeable you are to come up with solutions this fast this is great 😁
No description
Mraedis
Mraedis10h ago
My job is literally linux server administration 👀

Did you find this page helpful?