Immich LXC / NFS external drive

ThierryIT69

Member
Mar 28, 2024
43
4
8
Hello,

There is something I am missing.
I have read documentation on how to add an external NFS drive to Immich LXC, when testing, my photos are not going where they should go.

What I have done so fare:

On the host (node):
- create the mount host directory with: mkdir -p /mnt/immich/photos
- On the NAS adding the NFS share drive with the right permissions
- mount it
- add in /etc/pve/lxc/106.conf: mp0: /mnt/immich/photos,mp=/mnt/fotos
- reboot the LXC

On the LXC container:
- create the mount LXC directory with: mkdir -p /mnt/fotos

When adding photos to Immich as test, the size of the NFS folder in my NAS doesn't increase at all. When checking on my proxmox cluster/Immich LXC, I see that the size of the bootdisk increase ....

Ideas ?

Thx
 
Are you sure the share is actually mounted and writable from inside of the lxc? You can rest this by creating a new small file and check whether it appear on the nas or not
 
After a "mount" in the LXC:

Code:
/mnt/pve/unaspro.nfs/images/106/vm-106-disk-0.raw on / type ext4 (rw,relatime)

ip_nas:/var/nfs/shared/shared_photos on /mnt/fotos type nfs (rw,noexec,relatime,vers=3,rsize=1048576,wsize=1048576,namlen=255,hard,fatal_neterrors=none,proto=tcp,timeo=600,retrans=2,sec=sys,mountaddr=ip_nas,mountvers=3,mountport=53198,mountproto=udp,local_lock=none,addr=ip_nas)
 
Last edited:
After testing, the pictures are not going to the folder /mnt/fotos.
I do not understand why ... The mount path on the Unas is correct, the mount path on the Immich is correct to.
I have mounted the Unas drive on my PC, the shared_photos is still empty.

Ideas ?
 
Put something in the share on the NAS side to see if it's actually mounted. Does anything appear into the directory in the LXC? If so, then try to run

Code:
touch /mnt/fotos/test

inside the LXC terminal to see if the container has write permission into the directory. If not, then you can fix the permissions with the
Code:
chmod
command.
 
Last edited:
  • Like
Reactions: Johannes S