Another SMB mount thread

wolframio

Member
Dec 15, 2021
87
16
13
42
And yes, I already did a search on the forum.

I have the following scenario:
1 server machine running Proxmox 24/7.
1 NAS machine that shares files via SMB and is manually turned on and off by the user (to save electricity).

I need to achieve:

That an LXC container running Debian should have access to the NAS files via SMB when the NAS is on, and that LXC or Proxmox doesn't have a heart attack if the NAS is turned off.

So, I need to mount the NAS in Proxmox/LXC when it's on and then maintain the mount path when it's turned off (obviously I won't be able to access the files, but programs running on the LXC will be able to access the path when the NAS is available).

Suggestions? Thanks!