Using a SMB share with an app

burnt.board

Cadet
Joined
Apr 16, 2023
Messages
7
Hello together,

I've set up a VM on my server and I connected it with a bridge to my server, so it can do some stuff and then transfer it to a SMB file on a regular basis. But now I also want to implement this SMB folder in an App (Jellyfin (truecharts) in this instance, but that shouldn't matter I guess) so I can stream those files. I read in a recent post above here in this forum that disabling "hostPathPermissons" isn't a good idea.

Does someone has a different idea how I could solve this issue? Is there a possibility to automatically transfer those files from the smb to another folder on my server which then could be accessed through host path?

I would appreciate some help
burnt.board
 

asap2go

Patron
Joined
Jun 11, 2023
Messages
228
I am not sure if I've understood your intention correctly. Is it not possible to add the folder by specifying it as a mount path to the container?
 

burnt.board

Cadet
Joined
Apr 16, 2023
Messages
7
Hi,

so my VM records some radio and it stores the files in a SMB. As far as I know, you can't mount an SMB to a container/app. I read that you could disable a setting in the advanced settings to do so, but that's apparently not a great idea.
 

asap2go

Patron
Joined
Jun 11, 2023
Messages
228
Ah, so it records to an external SMB share outside of TrueNAS?
Then I've misunderstood your question.
 

burnt.board

Cadet
Joined
Apr 16, 2023
Messages
7
No, it does record to a smb share on my truenas server, but it still doesn't want to mount it.

SMB share, VM and container are all ony the same machine
 

burnt.board

Cadet
Joined
Apr 16, 2023
Messages
7
Okay, thanks. I thought that you couldn't allocate SMB shares with hist path to an app. I thought it failed as I tried last time, but I'll try again and also try it with nfs shares...
 

LarsR

Guru
Joined
Oct 23, 2020
Messages
719
you *can*, if you disable the hostpath validation.
But it's really easy to setup nfs for the app and use smb for your other machines. There's no performance hit doing it.
I'm doing the same for plex and some other apps.
 
Top