Trying to add an sshfs mounted location as a regular file system volume type in Cloudron
-
Trying to add an sshfs mounted location as a regular filesystem volume type in Cloudron.
I have a working SSHFS mount in /mnt/folder
When trying to I am trying to add the /mnt/folder to Cloudron as a filesystem volume type, I am getting this error: hostPath must be a realpath without symlinks
The reason I want to do this, is because Cloudron will not let me use an SSHFS volume as a data-volume for my (immich) Cloudron-app.
debug:
sshfs mount works perfectly
permissions are lax, set to 777 on the mountpoint foldermore background of why I want to do this here: https://forum.cloudron.io/topic/12239/storage-management-in-immich/46
Thanks for any suggestions!
-
-
Following this topic for the same reasons
-
Hello @makemrproper
Let me repeat what I understood.
You have a workingsshfs
mount at/mnt/folder
.
You want to useregular file
as a Cloudron volume type? This type does not exist. Did you mean filesystem volume type? -
I meant Filesystem Volume type, yes. Will update original post to reflect this.
-
I will look into solving this at the hypervisor level and exposing folders to the guest vm that way.
-
I'm facing the same issue with Nextcloud and trying to tune the performance of SSHFS (https://forum.cloudron.io/topic/13852/sshfs-read-speed-significantly-slower-than-scp-with-the-same-target/9) . The answer, at least for Nextcloud, is to adjust the configuration file. Instead of trying to "trick" Cloudron into accepting an SSHFS mount point as the primary storage, just adjust the applications config file to point to the mount point. Not sure if it will work for Immich, but it works for Nextcloud.
Also, I'm doing this with Nextcloud for the exact same reason - I want to manage my pictures. I'm trying the "Memories" plugin in Nextcloud which has prettty good reviews. I'll probably move on to Immich next for testing.
-
Sounds like the case is identical, yes :).
Great workaround! I will try it.
Solving it at the hypervisor level is not any better than directly on the cloudron vm. There is no way to share a folder to a vm. Only nfs, cifs, sshfs or direct block device.
The reason is that our phones are growing, and at current I need to sync 5x family members phones at 1tb. Not insane anounts of course, but way beyond the m2.ssd cloudron is running on.
-
Sounds like the case is identical, yes :).
Great workaround! I will try it.
Solving it at the hypervisor level is not any better than directly on the cloudron vm. There is no way to share a folder to a vm. Only nfs, cifs, sshfs or direct block device.
The reason is that our phones are growing, and at current I need to sync 5x family members phones at 1tb. Not insane anounts of course, but way beyond the m2.ssd cloudron is running on.
@makemrproper said in Trying to add an sshfs mounted location as a regular file system volume type in Cloudron:
or direct block device
https://linbit.com/drbd/ is the gold standard.