[SOLVED]
I had for some reason (probably just being ignorant) set the Minimum Free Space on the share to 1.6TB which is way past the capacity of the 500GB NVMe cache.
So naturally Unraid went straight to the Secondary storage on the 16TB HDDs.
I set the Minimum Free Space to 100GB (having ~450GB on the cache), tested an image upload, and the disks did not spin up.
Success.
--------
Hey everyone
Tbh I'm not sure if this is an Immich issue or an Unraid issue. Please bear with me.
TL:DR
When the Immich phone app syncs media to Immich on Unraid, the 16TB drives spin up instead of the photos going to 500GB NVMe cache first, and then Mover action later.
I have set up Immich with a PostgreSQL container on the side as per the instructions. Created a share called Photos with Primary storage: Cache (500GB NVMe pool) and Secondary storage: Personal (16TB HDD pool).
I'm expecting the phone to back up photos to the NVMe cache first, not spinning any drives up, and then later when the Mover action is scheduled, I expect the drives to spin up and the NVMe cache transferring to the HDDs.
But this doesn't seem to happen. Whenever my phone backs up photos to Immich on Unraid, the drives spin up, leading me to believe that there is nothing being cached, and the data going straight to spinning disks.
I probably misconfigured something, but I'm kinda clueless where to start. Is this a common issue? And more importantly, is someone able to help me with the configuration? :-)
----
EDIT: Immich environmental variables below
DB_HOSTNAME=[REDACTED IP ADDRESS]
DOCKER_MODS=imagegenius/mods:universal-redis
UMASK=022
TZ=America/Los_Angeles
HOST_HOSTNAME=Unraid
MACHINE_LEARNING_HOST=0.0.0.0
MACHINE_LEARNING_PORT=3003
MACHINE_LEARNING_WORKER_TIMEOUT=120
PUID=99
HOST_OS=Unraid
HOST_CONTAINERNAME=immich
DB_USERNAME=postgres
DB_PASSWORD=[REDACTED PASSWORD]
SERVER_PORT=8080
SERVER_HOST=0.0.0.0
MACHINE_LEARNING_WORKERS=1
PGID=100
DB_DATABASE_NAME=immich
REDIS_HOSTNAME=localhost
DB_PORT=5433
REDIS_PORT=6379
REDIS_PASSWORD=
PATH=/lsiopy/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
HOME=/root
LANGUAGE=en_US.UTF-8
LANG=en_US.UTF-8
TERM=xterm
S6_CMD_WAIT_FOR_SERVICES_MAXTIME=0
S6_VERBOSITY=1
S6_STAGE2_HOOK=/docker-mods
VIRTUAL_ENV=/lsiopy
IMMICH_BUILD_DATA=/app/immich/data
IMMICH_ENV=production
IMMICH_MACHINE_LEARNING_URL=http://127.0.0.1:3003
IMMICH_MEDIA_LOCATION=/photos
MACHINE_LEARNING_CACHE_FOLDER=/config/machine-learning/models
NVIDIA_DRIVER_CAPABILITIES=compute,video,utility
SHARP_FORCE_GLOBAL_LIBVIPS=true
TRANSFORMERS_CACHE=/config/machine-learning/models
UV_PYTHON=/usr/bin/python3.11
MISE_TRUSTED_CONFIG_PATHS=/app/immich/plugins/mise.toml
MISE_DATA_DIR=/buildcache/mise
NODE_OPTIONS=--max-old-space-size=8192
NODE_ENV=production