@samwathegreat Hey thanks for the reply. So, I have already setup my ZFS with zraid1 (using 3 HDDs). And then I tried using that ZFS as the location to put all of my photos (is that the database?), but when I completed installing Immich the Immich UI shows 100 GB storage..meaning I did something wrong because that is the amount of storage that my PVE (local) storage is, with ISO files and such. So, now I'm needing to change where Immich should actually be saving, which should be in {my-ZFS-name}, right?
Also, I don't remember doing anything with "mp0:" or "mp="
I just used /mnt/{my-ZFS-name}/appdata/immich/...
Sounds like you didn't bind mount, then. To bind-mount you have to edit the lxc conf file as I've described (look up bind mount in the proxmox FAQs for more info). Before you do that make sure you have actually created your ZFS dataset....
For example, if your ZFS raid 1 is called "myzfs", then you would (on the proxmox HOST):
zfs create /myzfs/immich
that would create a zfs dataset for you to bind-mount to your lxc container.
Then you (on the HOST) edit the lxc conf file and add:
mp0: /myzfs/immich,mp=/mnt/immich
(change the mp to reflect the path you want the storage reflected inside the container)
Then, assuming that you used the script from proxmox helper scripts to create your immich container, your immich uid and gid should be 999:996
So you would (on the HOST):
chown -R 100999:100996 /myzfs/immich
This will set the permissions so that the container can properly access what it puts there.
Next, on the container:
cd /mnt/immich
(lets make sure you can access and write here)
mkdir /mnt/immich/upload
(this should be successful)
and
chown immich:immich /mnt/immich/upload
And FINALLY, after all of that, you will need to edit the immich CONF file at /opt/immich/.env to reflect the newly created storage location.
IMMICH_MEDIA_LOCATION=/mnt/immich/upload
reboot the container
Now it should be working as intended...immich should be saving assets to the "bind-mounted" zfs dataset you created on the host.
Hopefully you haven't started uploading stuff to immich yet or things will trickier as you'll need to move everything, verify correct permissions of the moved files, and possibly rebuild the database.
You may need to modify some or all of these instructions to fit your particular use case.
Good Luck!